![]() |
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!
|
You could do something like this:
Code:
global $style; 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. |
All times are GMT. The time now is 05:09 PM. |
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:
|