The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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 |
#2
|
||||
|
||||
![]()
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> |
#3
|
|||
|
|||
![]()
what do you mean by
THIS_SCRIPT ??? |
#4
|
|||
|
|||
![]()
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.) |
#5
|
|||
|
|||
![]()
okej
but how to do it vice versa show code on all pages besides index ? in_array it solve the problem ? |
#6
|
||||
|
||||
![]() Quote:
Code:
<if condition="THIS_SCRIPT == 'index'"> Code if on index page <else /> Code on all pages except index page </if> Code:
<if condition="THIS_SCRIPT <> 'index'"> Code for all pages except index page </if> |
#7
|
||||
|
||||
![]()
I've always seen "!=". I don't know why.
|
#8
|
||||
|
||||
![]()
Because != is for negative comparison; doesn't equal.
|
#9
|
||||
|
||||
![]()
And what does <> stand for?
|
#10
|
||||
|
||||
![]()
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.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|