The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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. |
#2
|
|||
|
|||
What he wants to know is is there some way to get the currently active style id.
|
#3
|
|||
|
|||
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'] |
#4
|
|||
|
|||
Quote:
--------------- Added [DATE]1227596983[/DATE] at [TIME]1227596983[/TIME] --------------- Quote:
|
#5
|
||||
|
||||
If something doesn't work and you need help with it, you need to post the code (including the code location).
|
#6
|
|||
|
|||
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:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|