PDA

View Full Version : Please help


SpotMe
08-20-2002, 02:30 AM
How do I change the default style to something else? What I mean is how do I make vbulletin think the default style is one of my other style sets. I tried to overwrite my default style and it came up with an error message and now all users are on the original default style set, even though it doesnt appear as an option in the admin cp, so, how can I edit that original "invisable" style?

SpotMe
08-20-2002, 04:11 AM
In other words...

Can someone tell me what sql query to run or what file to modify to change the default style ID # from 1 (current default) to say "ID 15" in vbulletin?

SpotMe
08-20-2002, 04:24 AM
Got it!!!! Thank God :D


It was this line of code in the forums/global file:

// Will look in the user info for a style
if ($bbuserinfo['styleid']!=0) { //style specified
$styleid=$bbuserinfo['styleid'];
} else { //no style
$styleid=15;
}

if ($style=$DB_site->query_first("SELECT templatesetid,replacementsetid,userselect FROM style WHERE styleid='$styleid'")) {
if (!$style['userselect']) {
unset($style);
$styleid=15;
}
} else {
unset($style);
$styleid=15;
}


Just changed $styleid=1, to $styleid=15 (my desired style set).

Shawn