MyBB Central

Full Version: Plugin Creating Templates
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I would like my plugin to create a template, does anyone here know the code for this?
PHP Code:
$template = array(
    
"tid"            => "NULL",
    
"title"        => "template_name",
    
"template"    => "code goes here",
    
"sid"            => "-1",
    
"version"    => "0.1",
    
"status"    => "",
    
"dateline"    => "1263075439",
);
$db->insert_query("templates"$template); 
http://www.mybbcentral.com/thread-76.html

Taken from a sticky in this section z.z