Alternating shades of gray [message #26497] |
Fri, 22 July 2005 21:34 |
BobB
Messages: 165 Registered: April 2005 Location: Tucson, AZ
Karma: 0
|
Senior Member |
|
|
A couple of users recently suggested that table rows within each forum in the listing of topics alternate between shades of gray to make it easier to see what information on the right applies to each topic on the left.
Looking at the thread_row template, it's columns that alternate RowStyleA, RowStyleB and RowStyleC. The way it is now, the cells of each row go (in RowStyles):
BBABBC
Could this template be edited so every other row would go something like:
AABCCA
If so, how could this be accomplished?
Thanks.
|
|
|
Re: Alternating shades of gray [message #26499 is a reply to message #26497] |
Fri, 22 July 2005 21:48 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
You would add something like this to the <tr> tag for each row:
class="{ALT-VAR: search_alt RowStyleA RowStyleB}"
and be sure to add {REF: alt_var.tmpl} to the ref list in the template.
FUDforum Core Developer
|
|
|
|
Re: Alternating shades of gray [message #26501 is a reply to message #26500] |
Fri, 22 July 2005 22:02 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
<Td> tags would stay the same, you could of course modify them too... up to you really...
I am just showing you how to do color alternation using FUD's templating system.
FUDforum Core Developer
|
|
|
|
Re: Alternating shades of gray [message #26516 is a reply to message #26499] |
Sun, 24 July 2005 02:23 |
BobB
Messages: 165 Registered: April 2005 Location: Tucson, AZ
Karma: 0
|
Senior Member |
|
|
Ilia wrote on Fri, 22 July 2005 16:48 | and be sure to add {REF: alt_var.tmpl} to the ref list in the template.
|
By "ref list", do you mean:
<a href="{TEMPLATE: reg_user_link_lnk}">{VAR: r[8]}</a>{ELSE}{GVAR: ANON_NICK}{END} <a href="{TEMPLATE: last_msg_in_thread_lnk}"><img src="{THEME_IMAGE_ROOT}/goto.gif" title="{MSG: last_thread_msg}" alt="" /></a>
one or both of these? That is, inside the <a href...> tags?
OR, are you referring to another template, one other than thread_row?
[Updated on: Sun, 24 July 2005 02:35] Report message to a moderator
|
|
|
Re: Alternating shades of gray [message #26518 is a reply to message #26516] |
Sun, 24 July 2005 04:24 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
No, its something template editor does not display, you'll see it if you open the file manually.
FUDforum Core Developer
|
|
|