![]() |
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 |
All times are GMT. The time now is 06:05 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:
|