OK....i am not only trying to help here...but also trying to test whether or not i am actually learning or not......
TRY this in global.php:
Right above:
PHP Code:
if (isset($codestyleid) and $codestyleid!=0) {
Put this:
PHP Code:
if ($bbuserinfo['userid']<1){
$styleid=1;
}else {
Then, Replace this:
PHP Code:
if ($style=$DB_site->query_first("SELECT templatesetid,replacementsetid,userselect FROM style WHERE styleid='$styleid'")) {
if (!$style['userselect']) {
unset($style);
$styleid=1;
}
} else {
unset($style);
$styleid=1;
}
}
With This:
PHP Code:
if ($style=$DB_site->query_first("SELECT templatesetid,replacementsetid,userselect FROM style WHERE styleid='$styleid'")) {
if (!$style['userselect']) {
unset($style);
$styleid=1;
}
} else {
unset($style);
$styleid=1;
}
}
}