Previous Thread
Next Thread
Print Thread
Hop To
Alternate row colors on forum home page? #233615 01/11/2010 2:07 AM
Joined: Oct 2006
Posts: 66
Sagar Offline OP
journeyman
OP Offline
journeyman
Joined: Oct 2006
Posts: 66
Is there any way to bgcolor alternate rows on the forum home page? I understood columns could be done, but couldn't find anything about rows.

Thanks

Re: Alternate row colors on forum home page? [Re: Sagar] #233630 01/11/2010 8:52 AM
Joined: Jan 2010
Posts: 34
Scott Young Offline
newbie
Offline
newbie
Joined: Jan 2010
Posts: 34
Had to look myself. Right now there is no way to do so without actually modifying the template itself.

Re: Alternate row colors on forum home page? [Re: Scott Young] #233920 01/18/2010 7:01 PM
Joined: Apr 2007
Posts: 3,938
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,938
would be simple to add to the forum.tpl

basically, you add something like

{if $smarty.section.fora.iteration is odd} alt-forum-bg{/if}

to the <td class="xxxx".... > elements inside the fora, section

example:
Code
<td class="forumtitle{if $smarty.section.fora.iteration is odd} alt-forum-bg{/if}" valign="top" align="left">


do that for each column td and bada bing..

then add the .alt-forumlist-bg class to style the alternate BG background-color:#xxx; in the Extra CSS section smile


Forum Search
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Mobile app?
by Baldeagle - 12/06/2019 9:32 PM
How do you change Text Line spacing?
by jorb - 11/23/2019 12:14 AM
What happened to FAQ or Forum Help
by Ruben - 11/20/2019 11:58 AM
Search feature encountering an Error message
by jorb - 11/20/2019 12:06 AM
Followed List v7.7.2 Question
by Ruben - 11/12/2019 12:22 PM
Who's Online Now
1 registered members (JAISP), 69 guests, and 390 spiders.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Amusing Terain Scenics
Amusing Terain Scenics
by isaac, August 19
Sky places
Sky places
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20191023)