PDA

View Full Version : Different Headers for Each Forum


tlev
12-16-2005, 02:54 PM
I would like to assign a different header for each forum so the graphic could be sponsor related. What is required to do this? Do I have to set up a different style template for each forum, or can I just change the header file so it can handle displaying different graphics?

Thanks

derekivey
12-17-2005, 12:10 AM
You could add conditionals to accomplish this:


<if condition="THIS_SCRIPT == 'forumdisplay'">
<if condition="$_GET[f] == forum id">
header for that forum
</if>
<if condition="$_GET[f] == forum id">
header for that forum
</if>
<else />
Main header Code (for the index page and all other pages).
</if>


Replace forum id with id of the forum you want to show that header on. You can keep adding


<if condition="$_GET[f] == forum id">
header for that forum
</if>


for more than one forum.

Hope that helps.

Derek