![]() |
Conditional For <if script =="script">
Ok can some one show me the if conditional for showing something only on showthread.php and forumdisplay.php
<if this_script == showthread.php AND forumdisplay.php>code</if> That didn't look write but looked close, if some one could show me the correct version it would be very helpful. :) |
THIS_SCRIPT == 'showthread'
THIS_SCRIPT == 'forumdisplay' |
Code:
<if condition="THIS_SCRIPT == 'forumdisplay' OR THIS_SCRIPT == 'showthread'"> nvm... I think AND is what you want if you're excluding all pages but those scripts. I think?? |
Quote:
|
Quote:
Code:
<if condition="THIS_SCRIPT == 'forumdisplay'"> Code:
<if condition="THIS_SCRIPT != 'forumdisplay'"> |
Yeah, sorry.. I was right the first time I guess. :) But I thought you could use "AND" if you also used "!==" such as
Code:
<if condition="THIS_SCRIPT !== 'forumdisplay' AND THIS_SCRIPT !== 'showthread'"> |
Quote:
|
What Dismounted said. :p
|
All times are GMT. The time now is 07:55 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:
|