The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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. |
#2
|
||||
|
||||
THIS_SCRIPT is a variable defined at the top of a php page such as this in index.php:
PHP Code:
|
#3
|
||||
|
||||
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. |
#4
|
||||
|
||||
PHP Code:
|
#5
|
||||
|
||||
Damn... was hoping you weren't going to say that b/c then my code isn't working... oh well... thanks for the confirmation.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|