The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Conditional Templates
Good Day,
I am trying to display a different Header logo in a single forum. Could this be done using the conditionals commands? Would this be done in the forums Display Template? I tryed using the entry below but it failed to work.. <if condition="($forumid,== 32))"><scr="images/Mustanglogo.jpg" </if> any help would be great Regards, Cmedic101 |
#2
|
|||
|
|||
Try
Code:
<if condition="THIS_SCRIPT = 'forumdisplay' AND $forumid == 32"> <image scr="images/Mustanglogo.jpg" /> <else /> <image src="linktosecondimage" /> </if> |
#3
|
||||
|
||||
Code:
<if condition="$foruminfo['forumid'] == 32"><img scr="images/Mustanglogo.jpg" border="0" /></if> |
#4
|
|||
|
|||
Quote:
The following error occurred when attempting to evaluate this template: Parse error: parse error, unexpected '=' in /vb/includes/adminfunctions_template.php(3716) : eval()'d code on line 15 |
#5
|
|||
|
|||
Quote:
any ideas? thanks for your help cmedic101 |
#6
|
||||
|
||||
Code:
<if condition="$foruminfo['forumid'] == 32"><img scr="images/Mustanglogo.jpg" border="0" /><else />YOUR DEFAULT CODE HERE</if> |
#7
|
|||
|
|||
Quote:
should I be putting the code in another tepmplate? thank you cmedic101 |
#8
|
|||
|
|||
The missing graphics box means its a problem with your HTML not the condition or anything like that. Check the image is there e.t.c.
You have the condition now, so just look into the HTML code and see why it is not working. |
#9
|
|||
|
|||
Quote:
when i click properties there is no information avilable regarding an image path thank you cmedic101 |
#10
|
|||
|
|||
Whats the code you are using? (Copy and paste it from your template)
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|