The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
vB4 Template Conditionals
Hello , im trying to add 2 banners banner1 & banner 2 with this method:
banner 1 showing every where but no in forum id 1 + 2 banner 2 showing only in forum id 1+2 and not in other forums. i have read in the articels the bellow topic but the code works not. https://vborg.vbsupport.ru/showthread.php?t=231525 I have added: <vb:if condition="$forum[forumid] == 1,2">Show this if forum id is x</vb:if> <vb:if condition="$forum[forumid] != 1,2">Show this if forum id is not x</vb:if> but is works not.Ihave tryed with one id too but worked not. Anyone who can help about? Thanks. |
#2
|
||||
|
||||
Try to use this instead:
HTML Code:
<vb:if condition="in_array($forum['forumid'], array(1,2))">Banner code here</vb:if> Whereas this below will show it to every forum but 1 and 2. HTML Code:
<vb:if condition="!in_array($forum['forumid'], array(1,2))">Banner code here</vb:if> |
#3
|
|||
|
|||
Thanks for the help!
|
#4
|
||||
|
||||
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|