vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Alternating Thread Rows (https://vborg.vbsupport.ru/showthread.php?t=78678)

AlienSector 03-23-2005 10:00 PM

Alternating Thread Rows
 
Just as the title says, this will allow you to alternate the thread row colors when viewing each forums' thread display (i.e. have each thread row alternate instead of having each cell alternate). I noticed this was requested a while back on vBulletin.com and had been asked before, so here it is :).

I don't believe the same modification has been released for vBulletin 3.0 that I have been made aware of, though if such has been released, please feel free to make notice.

Installation takes all of 2 minutes and requires modification to only 1 file and 1 template.

nexialys 03-24-2005 10:13 AM

good thing that someone make it finally... i've added it myself for some clients, in a different structure (even smaller!) and to make it using less variables, let's play with it:
PHP Code:

$altclass = ($row_count 2) ? $color1 $color2

can be transformed in
PHP Code:

$altclass = ($row_count 2) ? 'alt1' 'alt2'

with this, you don't need the first identification...

also, this hack can be applyed in showthread to make posts having alternate colors, and in search results too... it's not always activated, but it works already... i found many styles that were not using the alternate colors at all...

also, it would be good to have the threadbit modified in the instructions instead of a complete replace, because MANY guys here have modified theirs with the time...

Marco van Herwaarden 03-24-2005 10:21 AM

Sounds nice AlienSector.

1 Remark, would it be possible to give instructions on how to change the threadbit Template instead of only a replacement of the full Template. Some members might have already modified their threadbit template and don't want to replace it.

Edit: Crossposted with Nexialys, who beat me in this :D

AlienSector 03-24-2005 06:15 PM

Quote:

Originally Posted by MarcoH64
Sounds nice AlienSector.

1 Remark, would it be possible to give instructions on how to change the threadbit Template instead of only a replacement of the full Template. Some members might have already modified their threadbit template and don't want to replace it.

Edit: Crossposted with Nexialys, who beat me in this :D

The ZIP file has been updated with the new coding updates, thanks to Nexialys. I've also included instructions for Stock & Modified installations.

Please keep in mind, I do not have an overly modified threadbit template, so if you do encounter a problem with the display, please report it through this thread. Please also include the hack(s) you have installed that required you to modify the threadbit template.

Installation still should take only 2-3 minutes max.

AlienSector 03-24-2005 06:19 PM

Just added a screenshot as well, for those that may not fully understand what this does based off the description.

TheComputerGuy 03-24-2005 08:23 PM

sweet addon!

AlienSector 03-25-2005 03:21 AM

Quote:

Originally Posted by TheComputerGuy
sweet addon!

Thanks much :)

Viks 03-27-2005 03:00 PM

super!

Deska 03-30-2005 05:45 AM

How to get this hack work on Forum Home?
I want my forum list look like this.

Btw, nice hack...

AlienSector 03-30-2005 03:39 PM

Quote:

Originally Posted by Deska
How to get this hack work on Forum Home?
I want my forum list look like this.

Btw, nice hack...

I've not actually looked at that part of vBulletin's coding, though there is a way to do it by template conditionals, which has been explained in the thread below over at vBulletin.com.

http://www.vbulletin.com/forum/showthread.php?t=100759

Be sure to note all instructions within the thread as there was confusion among some members :).


All times are GMT. The time now is 10:00 PM.

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.01118 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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