Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Different logo for each forum?

Quote Reply
Different logo for each forum?
Hey all,

I'd like to place a different logo in each forum (where the GossamerForum logo is in top right). I'm considering getting sponsors and would like to display their logos there.

What would be the best / easiest way to do this?

Safe swoops
Sangiro
Quote Reply
Re: [sangiro] Different logo for each forum? In reply to
The easiest thing would be customization of the include_logo.html template. Right now, it's pretty simple, just a link and an image. However, you'd change it to something like this:

Quote:


<%if forum_id = 1%>
<a href="http://www.sponser1.com"><img src="/pics/sponser1.gif"></a>
<%elsif forum_id = 2%>
<a href="http://www.sponser2.com"><img src="/pics/sponser2.gif"></a>
..... etc.
<%else%>
<img src="<%image_url%>/<%logo%>">
<%endif%>

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [sangiro] Different logo for each forum? In reply to
You could also add two columns to the Forum table, which holds the url of the sponsor and the name of the image. Then you could just have the following in your templates:

Code:
<%if forum_sponsor and forum_sponsor_image%>
<a href="<%forum_sponsor_url%>"><img src="<%forum_sponsor_image%>"></a>
<%else%>
<a href="http://www.default-url.com"><img src="/url/of/default/image.gif"></a>
<%endif%>

That may save you a lot writing...

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [sangiro] Different logo for each forum? In reply to
Or you could name your images /pic/logo1.gif, /pics/logo2.gif, ... etc. One for every forum, and then just do:

<img src="/pics/logo<%forum_id%>.gif">

to save even more typing. =)

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Jagerman] Different logo for each forum? In reply to
Hey Jason,



Can this same code be used in conjunction with adcycle?

Lets say I create a group for each main category in adcycle.

Then would I just use the adcycle code for each in replacement of the:
<a href="http://www.sponser1.com"><img src="/pics/sponser1.gif"></a>

Seems like that would be a very big piece of code though... There is roughly 4 lines per adcycle code.

The other part I was wondering is how to insert the sponsor button on the main page "in the line" of the specific forum. Or if this can be done.



Thanks

Brian