Gossamer Forum
Home : Products : Gossamer Forum : Pre Sales :

Template header by forum?

Quote Reply
Template header by forum?
I am consudering updrading to Gossamer from UBB 6.x

I can't figure out how to have different headers or footers unique to each forum. All I can find is the global templates include_header.html and include_footer.html

Is there a way to do this in version 1.1.8?

Linux Red Hat 7.3, Apache, and MySql

Thanks

Mike

----------
Michael J. Challis - CRUZN8R - PT Cruiser Club - http://www.ptcruiserclub.org

http://www.ptcruiserclub.org/forum
Quote Reply
Re: [CRUZN8R] Template header by forum? In reply to
Hi,

There are a couple different ways to do this. If you just want a different logo for each header, you could do:

<img src="/images/header_<%forum_id%>.gif">

and have images header_1.gif, header_2.gif, etc for each forum.

If you only want one or two forums to have special html, and the rest to be the same you could do:

<%if forum_id == 1%>
.. custom html
<%elsif forum_id == 2%>
.. custom html
<%else%>
regular html
<%endif%>

If you have a lot of different forums, that might get a bit long, and instead, you could do dynamic includes. See:

http://www.gossamer-threads.com/...i?post=223053#223053

Hope that helps,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Template header by forum? In reply to
I will probably use different templates on just one or two forums.

Thanks for the suggestion, this will work.

Mike

----------
Michael J. Challis - CRUZN8R - PT Cruiser Club - http://www.ptcruiserclub.org

http://www.ptcruiserclub.org/forum