PDA

View Full Version : How do I stop a plugin from running on tag pages?


SteamyLightning
04-21-2009, 06:55 AM
I'm making a modification that calls to hooks to threadbit_display. The only problem though, is that threadbit_display is also shown on the Tags Search, and I'm wondering if there's a way for me to exclude the tags search page from the plugin.

For example, if I wanted to exclude the plugin from working on showthread, I would use the following:

THIS_SCRIPT != 'showthread'

I'm wondering what's the equivalent script title for the tag_search template.

j883376
04-21-2009, 07:08 AM
This can be found in tags.php

It's just the word tags

SteamyLightning
04-21-2009, 07:11 AM
I'm an idiot.

Thank you. That did the trick.

j883376
04-21-2009, 07:35 AM
You're not an idiot. Here's a tip: In most cases, the script name is whatever the PHP file name is. I'm not sure if that holds true in every single case, but you can always just double check by opening it and looking at the top of the file.