PDA

View Full Version : Conditional needed for ForumHome and Threadview



Marvin Hlavac
Thu 16th Jul '09, 12:01pm
I would like my Guest Notice not to appear on ForumHome and Threadview. What would be the conditional to use to prevent some code to appear on ForumHome and Threadview?

Marvin Hlavac
Thu 16th Jul '09, 5:52pm
Mistake... Sorry... I meant ForumHome & ForumDisplay (not ThreadView)

Lynne
Thu 16th Jul '09, 6:02pm
You can wrap a condition around it:


<if condition="THIS_SCRIPT != 'index' AND THIS_SCRIPT != 'forumdisplay'">
guest notice
</if>

(Not tested, but I think it should work.)

Marvin Hlavac
Thu 16th Jul '09, 6:06pm
Lynne, yes, I'm sure this is it! Thanks so much. I'm going to add it to my navbar template now!

Marvin Hlavac
Thu 16th Jul '09, 6:13pm
I just added the code to my navbar template. It does exactly what I wanted. I thank you again very much, Lynne.