You guys are forgetting that each forum has it's own styleid. If set not to override user defaults, it will still be used whenever a guest is logged in. You'll have to change those forums to whatever your forum default is if you want it to function in there.
I've written a quick alternative to this.....
make these changes in admin/forum.php:
find
PHP Code:
// ###################### Start add #######################
replace with
PHP Code:
// ################## Start defaultstyle ###################
if ($HTTP_POST_VARS['action']=="defaultstyle") {
if ($defaultstyle=="" AND $loo_default_style=="") {
echo "<b>YOU DO NOT HAVE A RECOGNIZED DEFAULT STYLE HACK INSTALLED!<BR>
You need to have installed Avalon Site Manager or
<a href=\"https://vborg.vbsupport.ru/showthread.php?s=&threadid=50491\">
Anime-Loo's Default Style Hack</a> in order to change the default style of
all of your site's forums to the default set by those hacks/add-ons.<br><br>";
} else {
$newstyle=$loo_default_style;
//Since Avalon Site Manager includes a default style changer for both the forums and the site content,
//we need to override Anime-Loo's hack if installed to preserve ASM's functionality.
//Sorry, Anime-Loo.
if ($defaultstyle!="") {
$newstyle=$defaultstyle;
}
$DB_site->query("UPDATE forum SET styleid='$newstyle' WHERE styleoverride='0'");
echo "Default Forum Styles changed to $newstyle!<br><br>";
}
}
// ###################### Start add #######################
find
PHP Code:
echo "<p>If you change the orders, please be sure to submit the form using the buttons at the bottom of the page</p>";
replace with
PHP Code:
if ($defaultstyle OR $loo_default_style) {
doformheader("forum","defaultstyle");
maketableheader("Default Style Modification Detected!");
makedescription("You have installed either Avalon Site Manager or
<a href=\"https://vborg.vbsupport.ru/showthread.php?s=&threadid=50491\">Anime-Loo's Default Style Hack</a>.<br>
Would you like to change all forums here that do not override a user's selected style to the forum default?");
doformfooter("Yes, Fix the Default Style of my Forums","");
}
echo "<p>If you change the orders, please be sure to submit the form using the buttons at the bottom of the page</p>";
This should solve all your troubles if you use this everytime you change your default style.