The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
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 |
#2
|
|||
|
|||
![]()
try $stylevar but thats just a guess
|
#3
|
||||
|
||||
![]()
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? |
#4
|
|||
|
|||
![]()
is it a template edit or a plugin?
|
#5
|
||||
|
||||
![]()
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. |
#6
|
||||
|
||||
![]()
FWIW I used
Code:
if ($foruminfo['styleid'] <> 3) |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|