The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to Check for Page Type
I've been trying to figure out the best method for displaying a modified footer only on certain pages (only on showthread.php, as it happens).
Usually I'd just set a variable in global_start, then display it, but I can't figure out how to tell what page I'm on when I'm in global_start. As an alternative I thought about trying to change my GLOBALS variable down in an appropriate hook (say, postbit_display_start), but that doesn't seem to work either. (The change is never seen when I get to the footer.) Any ideas on the best way to do this? |
#2
|
||||
|
||||
check the THIS_SCRIPT variable is usually the best way.
|
#3
|
|||
|
|||
Thanks.
if (THIS_SCRIPT == "showthread") { did the trick! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|