Previous Thread
Next Thread
Print Thread
Hop To
Alternate row colors on forum home page?
#233615 01/11/2010 3: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?
Sagar #233630 01/11/2010 9:52 AM
Joined: Jan 2010
Posts: 34
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?
Scott Young #233920 01/18/2010 8:01 PM
Joined: Apr 2007
Posts: 3,940
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,940
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


Link Copied to Clipboard
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
[NOTABUG] Report Post bug..
by Morgan - 07/05/2020 1:48 PM
Trial Subscription question.
by Ruben - 07/03/2020 2:34 PM
Unread posts no longer tracked per user...
by KirkW - 06/16/2020 12:21 AM
Max Image file size upload
by jjjjj - 06/10/2020 10:25 PM
Error on Inert into POSTS
by jjjjj - 06/07/2020 8:09 PM
Who's Online Now
3 members (JAISP, Morgan, 1 invisible), 107 guests, and 38 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
3D Creations
3D Creations
by JAISP, December 30
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