Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Alternating Thread Rows Details »»
Alternating Thread Rows
Version: 1.00, by AlienSector AlienSector is offline
Developer Last Online: Jun 2005 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 03-23-2005 Last Update: Never Installs: 10
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 03-31-2005, 12:54 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great hack, but unfortunately now it makes my "new posts" results shaded in, instead of the old way or alternating
Reply With Quote
  #13  
Old 03-31-2005, 01:41 PM
venomx's Avatar
venomx venomx is offline
 
Join Date: Apr 2002
Location: Pennsylvania USA
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Am I the only one who doesnt understand what this does? I looked at the images... they look the same to me color wise...
Reply With Quote
  #14  
Old 04-01-2005, 08:14 AM
AlienSector AlienSector is offline
 
Join Date: Oct 2004
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by venomx
Am I the only one who doesnt understand what this does? I looked at the images... they look the same to me color wise...
It will alternate row colors (via alt1 and alt2) instead of alternating every other cell in the row. One row will be set to alt1, the next alt2, the following alt1 and so forth.
Reply With Quote
  #15  
Old 04-01-2005, 08:26 AM
venomx's Avatar
venomx venomx is offline
 
Join Date: Apr 2002
Location: Pennsylvania USA
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Unless I am blind it already does that...
Reply With Quote
  #16  
Old 04-10-2005, 08:17 AM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by venomx
Unless I am blind it already does that...

rows
-----------
alt1
-----------
alt2
-----------



default is column's

| alt1 | alt2 | alt1 |
Reply With Quote
  #17  
Old 07-08-2005, 04:33 PM
albireo albireo is offline
 
Join Date: May 2005
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for great hack. It works nicely in the forumdisplay. But in search result (of threadbit style), every class="$altclass" tag is changed as follows:

every class=" " [empty]

How can I solve this problem?
Reply With Quote
  #18  
Old 07-10-2005, 02:58 AM
Mythotical Mythotical is offline
 
Join Date: Jun 2004
Location: Booneville, AR, USA
Posts: 1,428
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you can try it as class="$altclass" and see what happens or just leave it alone and wait for someone else to reply.
Reply With Quote
  #19  
Old 08-09-2005, 08:58 PM
fribs fribs is offline
 
Join Date: Jul 2005
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by albireo
Thanks for great hack. It works nicely in the forumdisplay. But in search result (of threadbit style), every class="$altclass" tag is changed as follows:

every class=" " [empty]

How can I solve this problem?
Here's what I did (3.0.8)- but be warned! I am no coder so this may trade one problem for another. At the moment though it is working for me:

In search.php
find:

Code:
// get info from thread
$thread = process_thread_array($thread, $lastread["$thread[forumid]"]);

			$itemcount++;
and below it add:

Code:
$altclass = ($row_count % 2) ? 'alt1' : 'alt2';
Then a few lines down find:

Code:
exec_switch_bg();
eval('$searchbits .= "' . fetch_template('threadbit') . '";');
and below it add:

Code:
$row_count++;
This fixed the search results for me, but like I wrote earlier, this may cause problems that I am not farsighted enough to see - but since it's been a good month since you asked the question then this should cause someone with more experience to speak up if it is problematic.

In my novice understanding adding the code to search.php populates the variable where before it was empty. In any case, thank you AlienSector for taking the time to release this, it's a really nice touch to have for those of us who don't speak fluent PHP.

Fribs
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:50 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.04660 seconds
  • Memory Usage 2,282KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete