View Full Version : Force styleid
reefland
10-04-2005, 09:36 PM
I have some pages outside of vB that use vB's functions via an unmodified index.php file (the only modification is eval()'ing different templates). What I am interested in doing to forcing a different styleid to be used on some of these pages. For instance my forum only has 1 available styleid (1) and users cannot change this, I want this to remain. However on these other pages I want to create a new style and force those pages to use it. I don't see anything in the index.php file that looks for the styleid (guessing it's in global) but was wondering if anyone knew of a way to go about this....easily.
Marco van Herwaarden
10-05-2005, 06:14 PM
$vbulletin->userinfo['styleid']
reefland
10-05-2005, 09:13 PM
$vbulletin->userinfo['styleid']
I know this calls the users set styleid but I want to force another styleid to be used (one that is not selectable) for only these pages that use the standard index.php file.
Marco van Herwaarden
10-06-2005, 03:39 AM
So put in those scripts a:
$vbulletin->userinfo['styleid'] = 999
reefland
01-08-2006, 08:07 PM
$vbulletin->userinfo['styleid'] = 999
I know this is an old thread but I am still trying to get this going. I have tried to include that inside of my file (which again includes global.php) however the style does not change? Any other others how I can force a vb styleid to be used on non-vb pages?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.