View Full Version : Quick question - style cookies
antialiasis
03-27-2006, 08:22 PM
Okay, I'm pretty much finished with this style mod I'm making that makes vBulletin use the cookies from my main website for the skin selector. Now I've run into an unfortunate problem: I absolutely can't find where vBulletin sets the cookies when the style has been changed with the quick style switcher (or manual addition of ?styleid=whatever to the URL). Exactly which file has that code and where? Any help would be greatly appreciated.
RS_Jelle
03-28-2006, 02:27 PM
It's in /includes/init.php ;)
// Set up user's chosen style
if ($vbulletin->GPC['styleid'])
{
$styleid =& $vbulletin->GPC['styleid'];
vbsetcookie('styleid', $styleid);
}
else if ($vbulletin->GPC[COOKIE_PREFIX . 'styleid'])
{
$styleid = $vbulletin->GPC[COOKIE_PREFIX . 'styleid'];
}
else
{
$styleid = 0;
}
antialiasis
03-28-2006, 05:10 PM
It's working perfectly now. Thanks a lot! :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.