Previous Thread
Next Thread
Print Thread
Hop To
Joined: Oct 2006
Posts: 66
S
journeyman
journeyman
S Offline
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

Joined: Jan 2010
Posts: 34
newbie
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.

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
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
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
1 members (Nightcrawler), 963 guests, and 210 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)