vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Alternating Row Color for Forums / Search Results / Thread Listings (https://vborg.vbsupport.ru/showthread.php?t=125654)

magnus 09-27-2007 01:51 AM

Quote:

Originally Posted by needaltuna (Post 1343644)
Well it turned out that this hack didn't work so well in 3.6.8. In the memberslist page, I got the following error message.



Anyway, I had to replace the new code with the old.

It'd be nice if somebody came up with a updated version of this hack for the latest version of vBulletin. Got a feeling, though, that everybody but me has abandoned this thread. Pity.

The method in my previous post(s) works fine (tested in 3.6.8). I'd check for typos.

bulletinboard 10-25-2007 01:01 AM

Excellent, just what I was looking for.

NicholasMarshal 11-02-2007 11:46 AM

Quote:

Originally Posted by magnus (Post 1207465)
I was using this modification up until I read PayBas's post. To accomplish this without the need for plugins or extra functions simply uninstall the product (leaving the template changes in place) and re-edit the templates listed in the instructions, adding the following to the top of each template:

HTML Code:

<if condition="$altrow =& $GLOBALS['altrow']"></if>
<if condition="!isset($altrow)">
        <if condition="$altrow = 0"></if>
</if>
<if condition="++$altrow % 2 == 0">
        <if condition="$rowClass = 'alt1'"></if>
<else />
        <if condition="$rowClass = 'alt2'"></if>
</if>


That's it. :)

Well done, works like a treat

MichaelJohnston 03-24-2008 11:36 PM

Sweet man, this is the way it should be. Thanks a MILLION!

brendanc 05-04-2008 04:17 AM

Would like to point out that this works with 3.7.0 as well. Thanks!

karp2381 07-08-2008 01:24 AM

This code is great! Thanks a bunch.

ringleader 11-01-2008 03:22 PM

Works great with 3.7.3 PL1.

Thanks so much for making it!

Uneek 01-07-2009 10:38 PM

Is this method still safe for vbulletin 3.8.0?

ddurazo 02-18-2009 06:09 PM

it does work for 3.8.0 however one of the templates u have to modifiy is slightly different, it has a few lines of code above the first <tr> so be careful with that and you should be good to go

escavern 12-08-2011 03:28 PM

Doesnt work with Internet Explorer.. and im googling it and there are many people says alternate row color is not compatible with IE8+IE9.. any solutions ?


All times are GMT. The time now is 09:12 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.01060 seconds
  • Memory Usage 1,737KB
  • 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_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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