------------------
Open maincore.php and find:
---
define("THEMES", BASEDIR."themes/");
Directly after that paste this code
//THEME switcher
if (isset($_COOKIE['fusion_theme']) && $_COOKIE['fusion_theme']!='') {
if (file_exists(THEMES.$_COOKIE['fusion_theme']."/theme.php")) {
define ("THEME_SWITCH", $_COOKIE['fusion_theme']);
}
}
if (isset($_POST['theme_switch'])) {
if (file_exists(THEMES.$_POST['theme_switch']."/theme.php")) {
setcookie("fusion_theme", $_POST['theme_switch'], time() + 3600*24*365, "/", "", "0");
redirect (FUSION_SELF);
} else {
redirect (FUSION_SELF);
}
}
//THEME switcher
Then on or about line 253 find:
if ($userdata['user_theme'] != "Default" && file_exists(THEMES.$userdata['user_theme']."/theme.php") && ($settings['userthemes'] == 1 || $userdata['user_level'] >= 102)) {
if (!theme_exists($userdata['user_theme'])) {
echo "".$settings['sitename']." - ".$locale['global_300'].".
\n";
echo $locale['global_301']
die();
}
} else {
if (!theme_exists($settings['theme'])) {
echo "".$settings['sitename']." - ".$locale['global_300'].".
\n";
echo $locale['global_301']
die();
}
}
and replace with this.
if ($userdata['user_theme'] != "Default" && file_exists(THEMES.$userdata['user_theme']."/theme.php")) {
if (!defined("THEME_SWITCH")) {
define("THEME", THEMES.$userdata['user_theme']."/");
} else {
define("THEME", THEMES.THEME_SWITCH."/");
}
} else {
if (!defined("THEME_SWITCH")) {
define("THEME", THEMES.$settings['theme']."/");
} else {
define("THEME", THEMES.THEME_SWITCH."/");
}
}