MyBB Community Forums

Full Version: Getting plugin to NOT run an custom page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,

I got another question again Angel

I currently have my custom page running and everything is going better then expected (thank you, euantor). Anyways i have a plugin running that is hooked to global_start. All fine and dandy, but i don't want that critter to run on my custom page. Is there anyway i can add something to my page or the plugin to prevent the function from running?

Thx in advance
~Karin
Add the following in your plugin;
if (THIS_SCRIPT != "yourpagename.php")
{
   // plugin code that runs on global_start hook.
}
Saved me, thank you <3