1
This hack has probably been posted before but I think that its quite a useful one.
if (!empty($_GET['theme_select']) && in_array($_GET['theme_select'], $xoopsConfig['theme_set_allowed'])) {
$xoopsConfig['theme_set'] = $_GET['theme_select'];
$_SESSION['xoopsUserTheme'] = $_GET['theme_select'];
} elseif (!empty($_SESSION['xoopsUserTheme']) && in_array($_SESSION['xoopsUserTheme'], $xoopsConfig['theme_set_allowed'])) {
$xoopsConfig['theme_set'] = $_SESSION['xoopsUserTheme'];
}
Its found in common.php in the include folder.
I changed it from POST to GET so that it would allow more creative ways of switching themes.
Like you could simply use a
and anything can go here, an image, w/e