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)

aceofspades 09-10-2006 09:18 AM

Thanks nevetS, you were right. Fixed and working perfectly, thank you

Ascor 09-12-2006 10:55 AM

Just installed the update, all working nice, thank's again nevest :)

Smoothie 11-27-2006 01:57 AM

Have a quick question. I added a template and a modification that shows another row on forum home, but the alt1 and alt2 in the new template isn't looking quite right. Is it possible to get this new template to work with this mod?

PayBas 01-01-2007 11:17 PM

I used this product/plugin but now I found this other way that doesnt require plugins, and can be modified super easy for each template it is used in.

http://www.vbulletin-styles.com/showthread.php?t=23841

its basically does the exact same thing :)

PennylessZ28 01-18-2007 04:00 AM

Quote:

Originally Posted by PayBas (Post 1148799)
I used this product/plugin but now I found this other way that doesnt require plugins, and can be modified super easy for each template it is used in.

http://www.vbulletin-styles.com/showthread.php?t=23841

its basically does the exact same thing :)

that link is invalid.

PennylessZ28 01-18-2007 04:15 AM

Oh BTW: If you wanted to make your stickies stand out after doing this, try this little trick:

Code:

<if condition="$thread['sticky'] == 1">
<tr class="sticky">
<else />
<tr class="$rowClass">
</if>

Code:

.sticky {background-color: pink;        color: #000000}

stek2006 02-21-2007 01:42 PM

Thanks so much for this mod - it's exactly what I needed.

I've also modified my templates to use a simpler table row based display on showthread.php - which works fine, but I'd like to use the alternating background colours.

I tried just creating a copy of the 'Alternating Row Color Search Threadbit' plug in and set this to start with the correct postbit hook... changed the tr class to $rowClass but each row seems to show the .alt2 class regardless.

Any suggestions?

maxicep 03-13-2007 11:53 AM

nice hack, installed.

magnus 03-19-2007 05:16 PM

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. :)

maxicep 03-21-2007 12:02 PM

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. :)

this hack work with without a product, with your way?


All times are GMT. The time now is 07:47 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.01105 seconds
  • Memory Usage 1,746KB
  • 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_code_printable
  • (2)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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