Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Re: [davidnavigator] coloured background

Quote Reply
Re: [davidnavigator] coloured background In reply to
You can use the "post_user_is_moderator" template tag to identify whether the post was made by a moderator (NOT an administrator, unless the administrator is also entered in the list of forum moderators). Edit the 'include_post_display.html' template, and look near the top (about three lines after the end of the description) for the <table... tag - it contains:

bgcolor="<%odd_color%>"

Change this to:

bgcolor="<%if post_user_is_moderator%>red<%else%><%odd_color%><%endif%>"

Obviously, change red to whatever background colour you want. If you want the changed colour for administrators' posts as well, change the '<%if ...%>' to '<%if post_user_is_moderator or user_status == 3%>'.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Subject Author Views Date
Thread coloured background davidnavigator 3111 Apr 23, 2004, 3:32 PM
Thread Re: [davidnavigator] coloured background
Jagerman 3006 Apr 27, 2004, 3:41 PM
Post Re: [Jagerman] coloured background
davidnavigator 3004 Apr 28, 2004, 2:33 AM