
06-17-2004, 04:34 PM
|
 |
|
|
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Via an SQL query.
PHP Code:
Assuming you are requiring global.php on the page.
$DB_site->query("
INSERT INTO template
(
styleid, title, template, template_un, templatetype,
dateline, username, version
)
VALUES
(
{your_style_id}, 'some_name', '".addslashes($your_template)."',
'$your_template', 'template', ".time().",
'".addslashes($bbuserinfo['username'])."', '{vBulletin version}'
)
");
It's not recommended to add templates this way. Also, I think you'll need to rebuild the style (with the $debug=1) via AdminCP.
|