The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Installing mods stopping templates changes in all styles?
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|