vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   [Release] Alternating Row Colors Instead of Columns (https://vborg.vbsupport.ru/showthread.php?t=88342)

amykhar 06-16-2003 12:43 PM

[Release] Alternating Row Colors Instead of Columns
 
1 Attachment(s)
Rather have your rows alternate colors instead of your columns on your forumhome?

No prob.

If you do not wish to replace the entire template, what you should do conceptually is to change any instance of the class=alt1 or class=alt2 to the conditional:

Code:

<if condition="$forum['displayorder'] % 2 == 0">class="alt2"<else />class="alt1"</if>
The KEY to this working right is to make sure your forumdisplay orders are set correctly.

Amy

Tony G 06-16-2003 12:46 PM

I think the alternating colors look alot better this way, nice mod amy! Good to see you here at vBT! :D

amykhar 06-16-2003 12:48 PM

Than you :) I had help with the mechanics of it from Ed Sullivan last night. Once he told me math was possible in the conditionals, I realized that we are going to be able to have a lot of fun without ever having to install any hacks.

Amy

Tony G 06-16-2003 12:56 PM

Definently, Template modifying is just as much fun as hacking can be, and easier to save on upgrades. Has all the plus's. :D

nuno 06-16-2003 08:40 PM

Thanks Amy. :)

imported_Synicide 06-19-2003 06:17 PM

Yes, that does look a whole lot better than the alternating columns, better readibility. Great job Amy, looking forward to seeing more from you.

filburt1 06-19-2003 06:21 PM

Quote:

Originally Posted by amykhar
Than you :) I had help with the mechanics of it from Ed Sullivan last night. Once he told me math was possible in the conditionals, I realized that we are going to be able to have a lot of fun without ever having to install any hacks.

Amy

Indeed, I'm tricking out my forumhome everywhere to make the descriptions half-automated :D

Bad Bunny 07-03-2003 06:56 AM

Supersweet. Gonna try this out once I am awake. Much easier on the eyes.

Icheb 07-27-2003 04:59 PM

How would this be possible for the forums and threads on forumdisplay?

Zachery 07-28-2003 09:31 AM

1 Attachment(s)
i want to do this in my post bit, i want it to show the oppisite alt color.

like i used to have it in my at my vb2.x forums

any idea?


All times are GMT. The time now is 09:21 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.01166 seconds
  • Memory Usage 1,735KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete