vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Alternate posts colors (https://vborg.vbsupport.ru/showthread.php?t=209661)

Chirag patel 03-28-2009 01:54 AM

Alternate posts colors
 
Is there a way to display posts in an alternate colors?

BlueNinjaGo 03-28-2009 05:32 AM

What do you mean?

Chirag patel 03-28-2009 06:42 AM

Something like this
http://www.zatzy.com/street-racing-g...rally-car.html

see how the alternate post colors are different

BlueNinjaGo 03-28-2009 12:45 PM

Try looking at your style's main CSS code?

Lynne 03-28-2009 01:53 PM

Just change it based on the postcount. Something like:
if $postcount % 2
stuff for if even
else
stuff for if odd

(You'll have to write that correctly - I'm pre-coffee at the moment.)

Chirag patel 03-30-2009 04:36 PM

Quote:

Originally Posted by Lynne (Post 1778948)
Just change it based on the postcount. Something like:
if $postcount % 2
stuff for if even
else
stuff for if odd

(You'll have to write that correctly - I'm pre-coffee at the moment.)

Sorry Lynne,

Do you know which template I need to change for this?

Lynne 03-30-2009 04:46 PM

You would make the change in the postbit template (or postbit_legacy, depending which you use). You just need to put the condition around the "alt1" tag for the class in that <td>, I believe. If you have problems, post *exactly* what you did in the template with about three lines shown above and below your change (so we can tell where in the template you did it).


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