View Full Version : How to? Different header image per forum?


Okiewan
1st March 2004, 04:16 PM
I'd like to be able to assign different headers per forum, ie; a different header template possibility for each forum.

Any ideas on the best way to accomplish this?

BTW: Different styles per forum isn't an option, I'd have to make 50 or so styles.

Using this:
<img src="http://www.myforum.com/images/<if condition="$forumid == 3">bannerurl.

It's easy to specify a banner (for example) to a specific forum, but what would that conditional look like to address several forums. Th idea:

image if forum id=X, otherwise default, or
image if forum id=XX, otherwise default, or...
and so on.

HiDeo
2nd March 2004, 05:27 PM
I'll use :


<if condition="$forumid == 3"><img src="http://www.myforum.com/images/bannerurl3 /></if>
<if condition="$forumid == 5"><img src="http://www.myforum.com/images/bannerurl5 /></if>
<if condition="$forumid == 6"><img src="http://www.myforum.com/images/bannerurl6 /></if>

Wayne Luke
2nd March 2004, 05:48 PM
Why not simply name your header images after the forumid?
Then you can use:

<if condition="THIS_SCRIPT == 'forumdisplay'">
<img src="http://www.myforum.com/images/banner$forumid.gif">
<else />
<img src="default logo path">
</if>

This way when you add a new forum, you don't have to go and change templates. Just upload a new image.

Okiewan
2nd March 2004, 07:10 PM
Thanks!
Wayne's solution is exactly what I am looking for. :)
Only problem is; every forum now has to have a banner... but that can be done.

HiDeo
2nd March 2004, 09:45 PM
Use my solutionto have a different header on each forums !