![]() |
hide some part of code in header template FORUMHOME
hi
i would like to placed some html code in header template but also i wish to do in such way that it doesn't appear only in forumhome template its possible ? maybe it need to use something like that <if condition="in_array($show['forumhome'])"> BLABLABLA </if> its correct ? please help me .... thank you |
Do you want it displayed only in your ForumHome page? If yes, this is your code:
Code:
<if condition="THIS_SCRIPT == 'index'">Your code here!</if> |
what do you mean by
THIS_SCRIPT ??? |
Just copy the code he gave and try it :P
If you really want to know, its a PHP constant which set by vB for most scripts so you can compare it to a set value to identify the script. (You don't need to edit anything within the double quotes, just edit between the opening and closing if conditionals.) |
okej
but how to do it vice versa show code on all pages besides index ? in_array it solve the problem ? |
Quote:
Code:
<if condition="THIS_SCRIPT == 'index'"> Code:
<if condition="THIS_SCRIPT <> 'index'"> |
Quote:
|
Quote:
|
And what does <> stand for?
|
I've never seen that operator... and I don't see how it could logically exist. It'd be "is greater than and less than" - which isn't possible.
|
All times are GMT. The time now is 01:54 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:
|