The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I'm currently working on a new look and want to release some new mods alongside my new theme. So when I install a mod how can I stop the template changes affecting all my styles? I only wnt them to apply to my secret style at the moment as otherwise there is no surprise!
|
|
#2
|
|||
|
|||
|
You could do something like this:
Code:
global $style;
if ($style['title'] == "My Style")
{
// do something
}
One issue is that this won't work until the style is loaded, which doesn't happen until a template is rendered, but if you can do what you need to do using hook parse_templates then it should always work. |
![]() |
|
|