The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Can't seem to figure out how to exclude styles from showing a code
Maybe I'm tired, I dunno lol, but I can't seem to figure out how to exclude style(s) from showing a plugin code.
I've started off with this, which I know is right (I think lol) PHP Code:
PHP Code:
|
#2
|
|||
|
|||
You want to eliminate some code if a certain style is showing? I think you want
PHP Code:
|
#3
|
||||
|
||||
That doesn't work either
|
#4
|
|||
|
|||
I guess I should have asked, what is the format of the 'usml_navnet_styles' options (comma separated style ids?) and what hook locaiton are you using (hopefully it's after the style is loaded)?
|
#5
|
||||
|
||||
Yes, comma separated list. The hook location is parse_templates
|
#6
|
|||
|
|||
Hmm...then I'm stumped, seems like it should work.
|
#7
|
|||
|
|||
try this it will work
Code:
if (!in_array(STYLEID, explode(",", $vbulletin->options['usml_navnet_styles']))) { COde here } |
#8
|
||||
|
||||
Awesome, thanks Tested and working
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|