|
Re: Manual Theme Rebuild [message #27864 is a reply to message #27861] |
Wed, 28 September 2005 22:43   |
Ilia
 Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
You can write a script to do it, something a long the lines of:
<?php require "/path/to/GLOBALS.php";
fud_use('db.inc');
fud_use('compiler.inc', true);
$data = db_saq('SELECT theme, lang, name FROM mm_themes WHERE id='.$theme_id);
compile_all($data[0], $data[1], $data[2]); ?>
FUDforum Core Developer
|
|
|
|
|
|
|
Re: Manual Theme Rebuild [message #27878 is a reply to message #27877] |
Thu, 29 September 2005 01:54   |
Jivicin
 Messages: 6 Registered: September 2005
Karma: 0
|
Junior Member |
|
|
Ok well how do I determine the number for the default theme?
I tried 0, 1, and default without quotes. When I used default without quotes I got:
Quote: | Parse error: parse error, unexpected T_DEFAULT in /home/jivicin/index-html/FUDforum2/recompile.php on line 5
|
[Updated on: Thu, 29 September 2005 01:54] Report message to a moderator
|
|
|
|
Re: Manual Theme Rebuild [message #28091 is a reply to message #27879] |
Tue, 11 October 2005 01:36  |
ruzam
 Messages: 44 Registered: July 2005
Karma: 0
|
Member |
|
|
<?php
require "GLOBALS.php";
fud_use('db.inc');
fud_use('compiler.inc', true);
$theme_id = 1;
$data = db_saq('SELECT theme, lang, name FROM '. $GLOBALS['DBHOST_TBL_PREFIX'] . 'themes WHERE id='.$theme_id);
compile_all($data[0], $data[1], $data[2]);
?>
This did it for me. Don't forget the 'DBHOST_TBL_PREFIX'
|
|
|