I deleted all themes except DeepBlue. What can I do to reset all members themes to this default theme?
Note: I tried the below but got these errors...
Warning: main(config.php) [function.main]: failed to create stream: No such file or directory in /home/cz/public_html/portal/themes/fixtheme.php on line 6
Fatal error: main() [function.main]: Failed opening required 'config.php' (include_path='') in /home/cz/public_html/portal/themes/fixtheme.php on line 6
####################### BEGIN THE INSTALL #######################################
mysql_query("update ".$prefix."_config set Default_Theme='$def_theme'");
?>
disgruntledtech Site Admin
Joined: Apr 14, 2003
Posts: 991
Location: Tulsa, OK
Posted:
Sat Jun 21, 2003 12:28 am
fixtheme.php will need to be in the same directory as config.php -not in the themes dir
mFactor Nuke Soldier
Joined: Jun 11, 2003
Posts: 27
Posted:
Sat Jun 21, 2003 4:12 am
disgruntledtech wrote:
fixtheme.php will need to be in the same directory as config.php -not in the themes dir
Ok I did that and accessed the file via IE & it took me to a blank page. Is that what it is supposed to do?
disgruntledtech Site Admin
Joined: Apr 14, 2003
Posts: 991
Location: Tulsa, OK
Posted:
Sat Jun 21, 2003 9:45 am
i believe so
mFactor Nuke Soldier
Joined: Jun 11, 2003
Posts: 27
Posted:
Tue Jun 24, 2003 2:53 pm
I tested out this theory...
1) I created a test account & logged in.
2) I changed the theme to something other than my default DeepBlue then I logged out.
3) I then deleted the theme that I changed the test account to.
4) Then I logged back into the test account & low & behold the default theme was inplace.
So it looks like PHP-Nuke has a fail safe in place unless this script is what caused the above to work like it did.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum