vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Diffrent color on every other <tr> ? (https://vborg.vbsupport.ru/showthread.php?t=127648)

GriZzm0 09-26-2006 11:16 PM

Diffrent color on every other <tr> ?
 
I've noticed that every vBulletin theme I've looked at has diffrent colors on every other colum (td) on the same row (tr).
My question: How do I add diffrent colors to every other row (tr) instead? I want every other row to be light and the other one to be dark. Any easy sulution for this?

Phaedrus 09-27-2006 02:56 AM

Do you mean you wish alternate posts to have different colors?

GriZzm0 09-27-2006 12:16 PM

Quote:

Originally Posted by Phaedrus
Do you mean you wish alternate posts to have different colors?

What I meant was. While viewing forumhome or forumdisplay theres usaly one color on the icon td, post/reply count td, and last post td. And another color on the forum/topic td and thread/view count td.
And I wanted it to be like.
Icon forum posts threads lastpost <- light
Icon forum posts threads lastpost <- dark
Icon forum posts threads lastpost <- light

But, nvm. I made it the other way instead. :p

rolandogomez 10-10-2006 11:50 PM

Now it would be cool if we could have alternate posts of different color. A two color, alternating scheme. Would love to see this, thanks, rg.

Smoothie 10-11-2006 01:16 AM

If I'm understanding you guys correctly there already is a mod for this posted here.

GriZzm0 10-11-2006 06:43 AM

Already found a sulution for it. :p Atleast for posts. But I guess it should work for threads aswell. Aslong as you change the condition. It might help the next person that needs it. So I'll just post it here. ;)
<td class="threadUser"<if condition="$post[postcount] % 2 == 0"> style="background-color: #d3d5d7;"</if>>


All times are GMT. The time now is 02:42 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.02013 seconds
  • Memory Usage 1,717KB
  • 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
  • (6)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