Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes
Author Message
Stinger
New Member
New Member



Joined: Mar 25, 2005
Posts: 5

PostPosted: Fri Mar 25, 2005 2:34 am Reply with quote

hey there

I just installed a new theme on my phpnuke site and its broken it! i cannot get into preferances to change it back

This is what comes up

Quote:

Warning: Missing argument 1 for themeheader() in /home/virtual/site164/fst/var/www/html/themes/space/theme.php on line 65


and

Quote:

Fatal error: Call to undefined function: make_sidebar() in /home/virtual/site164/fst/var/www/html/themes/space/theme.php on line 110


Any suggestions

Thanks!
 
View user's profile Send private message
dezina
Theme Guru



Joined: Dec 26, 2002
Posts: 57
Location: UK

PostPosted: Fri Mar 25, 2005 3:19 am Reply with quote

Code:
<?php 


#####################################################
#####################################################

require("config.php");

$host = $dbhost;
$database = $dbname;
$username = $dbuname;
$password = $dbpass;
$def_theme = "NukeNews";
mysql_connect($host, $username, $password);
@mysql_select_db($database);

####################### BEGIN THE INSTALL #######################################

mysql_query("update ".$prefix."_config set Default_Theme='$def_theme'");

?>


copy the code above into a file and save it as fixtheme.php
If you don't have the NukeNews theme uploaded in your site then change the value for $def_theme = "Insert_Theme_Name_Here"; so that it reflects one of your working themes, save it, upload it, then point your browser to [ Only registered users can see links on this board! Get registered or login! ]
 
View user's profile Send private message Visit poster's website
Stinger







PostPosted: Fri Mar 25, 2005 3:37 am Reply with quote

Thanks for that but it didnt seem to work for me

the site is [ Only registered users can see links on this board! Get registered or login! ]
 
dezina







PostPosted: Fri Mar 25, 2005 3:48 am Reply with quote

Code:
$def_theme = "NukeNews"; 

Which theme did you enter at that line of code above?
 
Stinger







PostPosted: Fri Mar 25, 2005 4:21 am Reply with quote

Ive tried DeepBlue, NukeNews none seem to wanna work..

Do i have to do anything in that mysql admin program? i read somewhere i have to change a value or something.
 
dezina







PostPosted: Fri Mar 25, 2005 4:26 am Reply with quote

It is also possible to change default theme by altering mysql database, using phpmyadmin
 
Stinger







PostPosted: Fri Mar 25, 2005 4:37 am Reply with quote

Very Happy i managed to get int phpmyadmin and change the value in nuke_config and its worked!

Thank you for your assitance dezina



Ryan.
 
dezina







PostPosted: Fri Mar 25, 2005 4:55 am Reply with quote

Great news, Well Done !!
 
Stinger







PostPosted: Fri Mar 25, 2005 6:03 am Reply with quote

Lol

Back again.. am i doing something wrong? is there a proper way to install a new theme? everyone i try gives me the same errors.

I upload the files to the themes folder and select it through preferances in the admin control panel.

Thanks
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes

View next topic
View previous topic
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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©