![]() |
View User's Current Style/ThemeID..
Hi.
Is there any way to check a users current style selection? We want to make a button on our forums, which will alternate between Fixed Width and Fluid Width. We have a Dark and a Light Theme. Regards, Ad1tya. |
What he wants to know is is there some way to get the currently active style id.
|
Each style/theme has its own "StyleVars" page in AdminCP > Style Manager. Within that page there is a section titled "Image Paths" where paths for various types of images can be modified for that particular style:
But if you still want to access the style id from plugins or templates, it's Code:
$vbulletin->userinfo['styleid'] |
Quote:
--------------- Added [DATE]1227596983[/DATE] at [TIME]1227596983[/TIME] --------------- Quote:
|
Quote:
|
Yup, $vbulletin is the core vbulletin registry object; you can't miss it except for one possible reason:
You tried to access it from withn a function but forgot to do "global $vbulletin;" first PHP Code:
PHP Code:
|
All times are GMT. The time now is 09:55 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|