View Full Version : Disable mods per template
betts02
04-25-2011, 06:52 AM
OK this may be simple to some but i have installed a new template
I want disable some mods for this template ONLY
How do i go about this ?
Many thanks in advance
Lynne
04-25-2011, 05:05 PM
If the mod has an on/off switch, then you can write a plugin to turn off the mod when using styleid xx. You can use the hook location style_fetch for that. If the mod doesn't have an on/off switch, then you will need to put a condition around the modification plugins themselves to turn them off for styleid xx.
betts02
04-26-2011, 12:16 PM
If the mod has an on/off switch, then you can write a plugin to turn off the mod when using styleid xx. You can use the hook location style_fetch for that. If the mod doesn't have an on/off switch, then you will need to put a condition around the modification plugins themselves to turn them off for styleid xx.
This would be great in English,lol
Too compliacted for me but will keep looking
Lynne
04-26-2011, 04:04 PM
Um, well, example.
You look in the options and see this:
Do you wish to enable This Example Mod? yes no
You look in the page source (or the product code) and see the name of this option is "example_mod_switch", or $vbulletin->options['example_mod_switch']
Then you plugin would just be something like:
if ($styleid == x){
$vbulletin->options['example_mod_switch'] = 0;
}
infnity8x3
09-24-2011, 11:28 AM
To expand on this i was wondering if there was any way to turn off the whole plugin/hooks system on a specific style.
So basically only core vbulletin will be running. This sounds great for a mobile style. Is this possible?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.