The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
We have 4 styles on our site. The site also uses plugins for a bittorrent tracker mod for VB (in our case it's VB 3.6.7)
We're some layout probs with the navbar on all the styles but only with 2 each of the styles at once. The problematic plugin uses a CSS class which is required in two of the styles, but not the other 2. So, we'd like to define 2 plugins and limit their use to the appropriate styles. Can this be done? T. Apologies in advance if I haven't posted in the correct forum. |
#2
|
||||
|
||||
![]()
Depends on the hooks.
If they are executed on/after style_fetch you can check the style like PHP Code:
|
#3
|
|||
|
|||
![]()
ahh i got ya. I am developer of the mod in question but was not able to figure out how to have the dropdown use the correct class(or not).
one other question, theres the 4 styles, 1 & 2 anre one type and 3& 4 are other, so how would i do if (STYLEID == 1,2) < like that or no? |
#4
|
|||
|
|||
![]()
That did the trick.
Many thanks, T. |
#5
|
|||
|
|||
![]()
<if condition="in_array($STYLEID, array(1,2))">
|
#6
|
|||
|
|||
![]()
thanx ragtex, learn something new everyday
![]() what about to use in the plugin? that would work fine for the template but its setting class in plugin |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|