vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Please help: making alternating row background color in threadbit? (https://vborg.vbsupport.ru/showthread.php?t=236441)

Lynne 02-22-2010 10:05 PM

Have you tried printing out the variables so you can see what is going on?

way2xtreme 02-23-2010 01:30 PM

hmm, how do I do that ;)
(My skill is limited)

Lynne 02-23-2010 02:00 PM

{vb:raw thread.altrow} and {vb:raw thread.altclass}

way2xtreme 02-23-2010 10:31 PM

Hi Lynne,

I put the following before Each thread title

Code:

1, {vb:raw $post['altclass'] } 2, {vb:raw thread.altrow} 3, {vb:raw thread.altclass}
and got the following for each row in the list (all same):
Code:

1, alt1 2, 3,
I think we are not getting anything for {vb:raw thread.altrow} and {vb:raw thread.altclass}


Thanks :)

forumthemes 02-24-2010 04:47 AM

Hey,

I ran into the same problem with the release of vBulletin 4 and after seeing this post I decided to figure out how to get this to work as I used it quite heavily in developing skins for vBulletin 3.x.

I have tested the code I came up with and works perfect in vBulletin 4. I have now posted a new helpful tip and trick document on my support forums for all of you to be able to use.

Alternating Row Color for vBulletin 4 Skins [NON-Plugin Method]

way2xtreme 02-24-2010 04:33 PM

Thank you very much. It seems to work now! Hope you will build a vb4 skin soon (and keep me posted)

Also thanks to Lynne again!

forumthemes 02-24-2010 05:11 PM

Your very welcome :) New skins will start coming out I hope by this weekend, I wanted to cleanup a lot of the code to make things cleaner and a touch more like vb3 so i can convert all skins :)


All times are GMT. The time now is 02:54 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.01092 seconds
  • Memory Usage 1,727KB
  • 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
  • (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
  • (7)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