vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Alternating row colors with vB 3.09? (https://vborg.vbsupport.ru/showthread.php?t=100049)

miner2049er 11-04-2005 06:22 AM

Alternating row colors with vB 3.09?
 
After many search engine, and vb.com/vb.org searches, and also editing templates, I still can't seem to get alternating row colors to work with my vBulletin 3.0.9 (all the solutions seem to be for earlier versions.)

The effect is that seen in the sitepoint.com forums.

There are three areas I would like to change:

(1) The list of forum titles, like:

http://www.sitepoint.com/forums/forumindex.php

(2) The list of thread titles displayed on a regular page, like:

http://www.sitepoint.com/forums/forumdisplay.php?f=71
(if you notice, the vertical icon column is a single color, not alternating.)

(3) and very similar to (2), the list of thread titles displayed as the result of a search.

Thanks in advance for any replies, and have a good weekend,

Miner2049er.

themovieinsider 11-11-2005 12:38 AM

Anybody ever figure this out?

I'm not sure what the appropriate variable would be for Forumhome as the aforementioned poster requested...

class="<if condition="$SOMEVARIABLE % 2 == 0">alt1<else />alt2</if>"

got it
Quote:

try

Code:
class="<if condition="$forum['displayorder'] % 2 == 0">alt2<else />alt1</if>"

make sure your forum display order is in ORDER eg. 1,2,3,4
NOTE: you will have to replace all the 'class' instances


All times are GMT. The time now is 02:58 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01086 seconds
  • Memory Usage 1,711KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete