View Full Version : Which style is being used?
sarahk
06-02-2006, 01:44 AM
I manage a forum with the default style, and two custom styles.
I want a plugin to run at all times but if one of the custom styles is being run I don't want to do a teeny part of the plugin.
How do I pick up the name of the style?
thanks
Sarah
rogersnm
06-02-2006, 06:20 AM
try $stylevar but thats just a guess
sarahk
06-02-2006, 10:00 AM
Thanks
I've been looking around for info on $stylevar which is an array and haven't found much. vB doesn't seem to let me do a var_dump on it so I'm having problems finding out just what's in it. Can you point me in the right direction please?
rogersnm
06-02-2006, 11:01 AM
is it a template edit or a plugin?
sarahk
06-02-2006, 07:18 PM
The template has been edited, no problems there
The plugin needs to know which version it's serving.
Users don't get to select the style, but we have a forum running a different style. I guess we could use the forum name but it seems safer (in the long run) to delect the style.
sarahk
06-04-2006, 07:26 PM
FWIW I used
if ($foruminfo['styleid'] <> 3)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.