Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Making sticky's more obvious

Quote Reply
Making sticky's more obvious
I'd like to make sticky's a little more obvious.
Another board I've used has a row space between all the stickys and the rest of the topics.
How easy would it be for me to implement something similar ?
Here's an example of another board which I think handles stickys well (they call them important topics)http://forums.virtualfestivals.com/...dex.php?showforum=16
Quote Reply
Re: [davidnavigator] Making sticky's more obvious In reply to
Hi,

You could do something like this in the template:

Important Messages:
<%loop post_loop%>
<%if post_sticky%>
... display post
<%endif%>
<%endloop%>

Regular Messages:
<%loop post_loop%>
<%ifnot post_sticky%>
... display post
<%endif%>
<%endloop%>

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Making sticky's more obvious In reply to
I actually have the background color different for sticky posts using the same <%if_post_sticky%> tag, and then go thru the alternating background colors as built in the forum_view.html.

Not quite as distinct as your example, but it's visually distinct.

Dave
Quote Reply
Re: [bretzke] Making sticky's more obvious In reply to
Which template do you modify to implement this, forum_view?

Thanks

CCUnet
my Christian web
Quote Reply
Re: [ccunet] Making sticky's more obvious In reply to
Yes, it's forum_view....here is the code I have:

<%loop post_loop%>
<tr bgcolor="<%if post_sticky%><%sticky_bg%><%endif%><%if not post_sticky%><%if even%><%even_color%><%else%><%odd_color%><%endif%><%endif%>">

And I have a HEX assigned to the <%sticky_bg%> global I built (#FC8DA2 in my case). A screen shot is attached.

Dave
Quote Reply
Re: [bretzke] Making sticky's more obvious In reply to
Many thanks, that does the job :)