The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Detect Style In Use
Is it possible to determine which style is in use on the forums?
The reason I ask is I want to tweak the Geek Auto-Linker code so that it is only displayed when a particular stylesheet is in use. GAL inserts code using parse_templates hook so I figure inserting an IF statement around the code would work. Thanks, Ben |
#2
|
|||
|
|||
You could take a look at this mod (Link) and see how it has been determined there and then work with it from there. That mod is actually to show the style in the postbit, but it probably uses a similar function.
|
#3
|
|||
|
|||
Thanks for the reply. I tried that code but it didn't work, but I found another mod which uses the var $styleid which works fine.
So in the hook code I now have, Code:
if ($styleid != 3) { GAL Code } Ben |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|