vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How do I stop a plugin from running on tag pages? (https://vborg.vbsupport.ru/showthread.php?t=211807)

SteamyLightning 04-21-2009 06:55 AM

How do I stop a plugin from running on tag pages?
 
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:

Code:

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.


All times are GMT. The time now is 10:17 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00912 seconds
  • Memory Usage 1,708KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete