![]() |
How to limit a plugin to a certain style?
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. |
Depends on the hooks.
If they are executed on/after style_fetch you can check the style like PHP Code:
|
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? |
That did the trick.
Many thanks, T. |
<if condition="in_array($STYLEID, array(1,2))">
|
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 |
All times are GMT. The time now is 09:00 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|