![]() |
Coding noob having trouble with <IF> tag
I am looking at using the <IF> statement in one of my templates and I am having trouble, hoping somone here can assist.
I am looking to have on navbar button do 2 different things depending on the current page. So it would look something like this Code:
<if CURRENT PAGE="index.php"> Thanks in advance |
In the vB PHP files you will find constants:
Code:
// in the index.php file near the top Code:
<if condition="THIS_SCRIPT == 'index'"> |
Brilliant!
Thank you SO much calorie. Worked like a charm. |
All times are GMT. The time now is 11:19 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:
|