![]() |
What's the plugin equivalent for THIS_SCRIPT?
I know how to use THIS_SCRIPT in a template conditional- how can I use it in a plugin...
if (something = "my_script") ? thnx. |
THIS_SCRIPT is a variable defined at the top of a php page such as this in index.php:
PHP Code:
|
I have a plugin, I only want code to execute if the page being displayed is a specific page... say showthread....
In a template I'd use: <if condition="THIS_SCRIPT == 'showthread'"> blah blah blah </if> but in a plugin : if {THIS_SCRIPT == "showthread") { blah blah blah } doesn't work... is their an equivalent condition I can use in a plugin to see what script I'm in. I understand I could use a hook location native to the script I want to use but for various reasons that is not an option. |
PHP Code:
|
Damn... was hoping you weren't going to say that b/c then my code isn't working... oh well... thanks for the confirmation.
|
All times are GMT. The time now is 07:58 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|