The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Problem: the variable $forum[forumid] is always null
I am attempting to implement the following simple conditional statement in my forum's header template: If the current forum is a sponsored one, display banner.
<if condition="$forum[forumid] == 10"> <img src="banner.gif"> </if> But it is not working because it appears that $forum[forumid] is always null, even when the current forum is forum 10. Is there any reason that $forum[forumid] would be null? Would someone provide me a quick snippet of code that *should* display the forum ID? For example, should this work: <strong>Current forum: $forum[forumid]</strong> ? Thank you very much, Will Smith I figured it out. I was using the variable $forum[forumid] when in fact it should be $foruminfo[forumid]. The final code I am using for the conditional banner display, for those interested, is: <if condition="$foruminfo[forumid] == 10"> <img src="banner1.gif"> <else /> <img src="banner2.gif"> </if> Best, Will |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|