PDA

View Full Version : How to add different banner above different forums


holwebs
02-05-2008, 09:45 PM
Hi,

I've set up my templates so that I now have a banner that appears at the top but I now want to display different banners depending on the forum being displayed. I assume that I need some kind of IF statement but cannot find a list of the variables needed. Can anyone provide the code please.

tposter1
02-05-2008, 10:18 PM
Many people have asked for similar items like this. Unique image above each forum. Unique image in forum category bars. But Alas, no one seems to know how to do this. Or not willing to share.:erm:

holwebs
02-06-2008, 06:35 AM
It's OK now - I found it on the main vbulletin.com site -see http://www.vbulletin.com/forum/showthread.php?t=239757 There are plenty of tips in that section. I simplified the example shown as I just need a banner with a link to someone else's site (for advertiising)

The main variable code appears to be:

<if condition="$foruminfo[forumid] == X">
-- put your image code here --
</if>