PDA

View Full Version : conditional hook location for a plugin


SoloX
01-31-2010, 04:08 AM
hi all,

i have a plugin that collects some info by running a few queries. right now i have it at global_start but i want to run it only when a particular forum is browsed. This is to save some queries on the front page. How can I make it so?

kh99
01-31-2010, 11:36 AM
I think you could just surround the code in your plugin by an "if" and check for the appropriate values of THIS_SCRIPT and/or $vbulletin->GPC['forumid'].