Ravens PHP Scripts: Forums
 

 

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



Joined: Apr 21, 2009
Posts: 2

PostPosted: Tue Apr 21, 2009 9:59 am Reply with quote

I went to change the theme and I ended up with a blank page and now my Preference page in the Admin section is blank. I cant change to a different theme. Any ideas how to correct this issue?

Evil or Very Mad


Last edited by mrrush101 on Tue Apr 21, 2009 4:00 pm; edited 1 time in total 
View user's profile Send private message
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Tue Apr 21, 2009 10:16 am Reply with quote

When that happens to me, I just upload a default theme that I rename as the theme that caused the issue and then you should be able to get into admin.

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website
mrrush101







PostPosted: Tue Apr 21, 2009 10:32 am Reply with quote

Thanks it worked. You saved me a lot of time and a big headache. I then switched to another theme and renamed the them I changed, back to the original theme name
 
bluerace
Regular
Regular



Joined: Apr 04, 2009
Posts: 85
Location: Behind you

PostPosted: Tue Apr 21, 2009 10:55 am Reply with quote

Primarily, as an admin, go to your phpmysqladmin.
Open your DB first and find nuke_config.

Then, clik on sql and browse your nuke_config.
In there you will find default theme.
Type in the theme name (this theme name should be equal to your <nuke-root>/theme/YOUR-NEW THEME or old theme).

That's all.
Uploading default takes time and space.
When you got such trouble that previous themes are gone off, simple type in your theme name in your nuke_config --> theme field.

_________________
Make stupid PHP-NUKE Smart, that's my favorite chore in Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Susann
Moderator



Joined: Dec 19, 2004
Posts: 3191
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Tue Apr 21, 2009 11:37 am Reply with quote

@mrrush101 please change your title to a better description. "Help" is a great song but such a title doesn´t help peoples if they search for a solution.
Thanks!
 
View user's profile Send private message
fkelly
Former Moderator in Good Standing



Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Tue Apr 21, 2009 11:41 am Reply with quote

To avoid this problem in the first place: 1. Create a test user or use a spare username. Go into YA and change their theme to the one you are testing (which is NOT the default theme for the whole site). Test it thoroughly. If the theme fails it will only affect that test user id and you can phpmyadmin change it in the users table or just trash the userid.

2. I dunno ... if there is a one there should be a 2 I suppose but I can't think of anything else.
 
View user's profile Send private message Visit poster's website
nuken







PostPosted: Tue Apr 21, 2009 3:15 pm Reply with quote

The only reason I say replace the theme is a fair amount of users are not familiar with editing mysql database and can cause a lot more damage to their site than just a bad theme.
 
grmm
New Member
New Member



Joined: Nov 15, 2008
Posts: 18
Location: Idaho, USA

PostPosted: Sat Jun 06, 2009 7:21 pm Reply with quote

nuken wrote:
When that happens to me, I just upload a default theme that I rename as the theme that caused the issue and then you should be able to get into admin.


I did exactly the same thing, I knew I should do that, but I did it anyway Embarassed I've been messing around all afternoon trying to get it back when I came across your post and had it fixed in about 5 minutes. So simple Wink

THANK YOU Exclamation
 
View user's profile Send private message Visit poster's website
horrorcode
Involved
Involved



Joined: Jan 17, 2009
Posts: 272
Location: Missouri

PostPosted: Sat Jun 06, 2009 9:52 pm Reply with quote

There is also a script our there that you can use, if anyone has a link to it?
 
View user's profile Send private message
Palbin
Site Admin



Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Sun Jun 07, 2009 9:00 am Reply with quote

Copy the following code into a file and save it as fixtheme.php

Quote:

<?php
require("config.php");
$host = $dbhost;
$database = $dbname;
$username = $dbuname;
$password = $dbpass;

$def_theme = "RavenIce";

mysql_connect($host, $username, $password);
mysql_select_db($database);
mysql_query("update ".$prefix."_config set Default_Theme='$def_theme'");
?>


If you don't have the RavenIce theme uploaded to your site then change the value for $def_theme in the code above so that it reflects one of your working themes, save it, upload it to where the config.php file is, then point your browser to http://yoursite.com/fixtheme.php

DELETE WHEN FINISHED

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
grmm







PostPosted: Sun Jun 07, 2009 10:07 am Reply with quote

Great! Thanks Palbin. I've got it all uploaded and ready to try for the next time and there will be a next time know me. Wink
 
sexycoder
Spammer and overall low life



Joined: Feb 02, 2009
Posts: 82

PostPosted: Sun Jun 07, 2009 7:12 pm Reply with quote

What about this fix?

Isnt this the same?

Code:
<?php 

require_once("mainfile.php");
$theme= "DeepBlue";
$sql = "UPDATE ".$prefix."_config SET Default_Theme = '".$theme."'";
$result = $db->sql_query($sql);
echo "Thanks for using this fix! Your theme has been reset to ".$theme."";
?>
 
View user's profile Send private message
Palbin







PostPosted: Sun Jun 07, 2009 7:34 pm Reply with quote

yes
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating 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 ©