A small problem which I'm sure will be easy to solve:
I uploaded a theme and started to use it, but I noticed I had uploaded the wrong folder so it's messed up now. My question is, how do I change the theme without using the admin panel?
elr Captain
Joined: Mar 09, 2004
Posts: 329
Posted:
Mon Aug 22, 2005 12:45 pm
If you can't change it back to a default theme in the admin panel, use PHPmyAdmin to go directly to your db and reset it there.
If you move the folders to the "correct" location, the theme might start working ok, or upload a new theme with the same name.
webshark Sergeant
Joined: Apr 21, 2005
Posts: 106
Posted:
Mon Aug 22, 2005 2:26 pm
save this as a source
Code:
Upload a theme and now your whole site is shambles? Save this as themefix.php and upload to
your root folder next to your mainfile.php and config.php then point your browser to it.
If your not using the DeepBlue theme then replace that with your theme name.(One that you know works)
http://yoursite.com/themefix.php
<?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."";
?>
_________________
Vilkku Nuke Soldier
Joined: Aug 22, 2005
Posts: 20
Posted:
Mon Aug 22, 2005 8:16 pm
Thanks, you guys are great!
Obviously it's fixed now.
Cheers.
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