PDA

View Full Version : styleid in global.php?


Fury Diamond
01-16-2010, 02:32 PM
In 3.8, there was the following code, which sets the current style in global.php.

// ################################################## ###########################
// ######################## START TEMPLATES & STYLES ###########################
// ################################################## ###########################

$userselect = false;

// is style in the forum/thread set?
if ($codestyleid)
{
// style specified by forum
$styleid = $codestyleid;
$vbulletin->userinfo['styleid'] = $styleid;
$userselect = true;
}


Where is this code in 4.0?

Lynne
01-16-2010, 02:45 PM
Doing a Search in the vB files for "$vbulletin->userinfo['styleid']" gives me class_bootstrap.php - function fetch_style_record

Fury Diamond
01-17-2010, 08:51 PM
Where is the global $style variable saved? I want to add another variable in the same level.

Lynne
01-17-2010, 11:33 PM
I do not know. Do a search in your files for the variable and you should find what you are looking for.