![]() |
Create a "must be this page" condition?
How can I do something like....
<if page == domain.com/forum/vbnews.php> display custom stuff here </if> ? |
Is it a vb page? If so there is a variable declared at the beginning of each page that will give you this info.
<if condition="THIS_SCRIPT == 'showthread'"> blah blah </if> |
I think vbnews is a plug-in. Any ideas?
|
If it's got a page, it's most likely got a THIS_SCRIPT constant -- and if it does not, it could always be added.
|
How can I find the contant for a THIS_SCRIPT? Is there an equivalent way of echoing it out?
|
Look in the PHP file, it's usually defined at the top. You could also create a plugin at hook location "global_complete" with the following:
Code:
echo THIS_SCRIPT; |
All times are GMT. The time now is 11:44 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|