Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
  #1  
Old 06-03-2010, 05:18 AM
trafficbrokers trafficbrokers is offline
 
Join Date: May 2010
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Alternating row colors for forums on forum home?

I had someone create a custom style for me, but now they are unreachable and I can't figure this out...

On my forum home page, the background color of the 1st row for the 1st forum is a light gray color, and all the rest are white. I would love to get this to alternate between the gray and white.

I've done lots of searching but all the solutions I came across were for vbulletin 3.x and I couldn't get any of them to work in my version 4.0.3. Can anyone point me in the right direction?

Thanks!
Reply With Quote
  #2  
Old 06-03-2010, 10:03 AM
Xencored Xencored is offline
 
Join Date: Sep 2008
Location: UK, Scuny
Posts: 1,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got a image to show us what you mean mate be alot easy for me to tell you the "Variable" name
Reply With Quote
  #3  
Old 06-03-2010, 01:54 PM
trafficbrokers trafficbrokers is offline
 
Join Date: May 2010
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sure, here you go. Sorry I had to blur it out as this is a very private forum. But basically the first row is gray and all the rest are just white. I assume they are either supposed to be all white, or ideally I'd like to get them to alternate colors. Thanks!



--------------- Added [DATE]1275622206[/DATE] at [TIME]1275622206[/TIME] ---------------

Anyone?
Reply With Quote
  #4  
Old 06-04-2010, 01:32 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Easier to make it all the same than to alternate unless you don't mind writing some code. Do a search in templates for ".forumhead + .childforum .L2:first-child .forumrow" and also ".forumbit_nopost .forumbit_nopost .forumrow" and set the background to be the same. (That will fix it on the default style, but if yours is too customized, then it may not work on yours. The only way we would be able to help would be to see the page in that case.)
Reply With Quote
  #5  
Old 06-04-2010, 04:57 PM
trafficbrokers trafficbrokers is offline
 
Join Date: May 2010
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the reply! All the same would be fine with me. Do you know the difference between forumrow_firstentry_background and forumrow_background? I can't find either of these in the stylevar "dictionary". It seems like these are the only 2 it doesn't explain LOL.

I tried googling for info but can't find anyone talking about forumrow_firstentry_background anywhere, even on vbulletin.org.

The names seem pretty self-explanatory but I can't imagine the system would be programmed to make the first row (firstentry?) a different color for some arbitrary reason?? I also notice in the default theme the first row is the same color as the rest, so I must be missing something ...
Reply With Quote
  #6  
Old 06-04-2010, 05:19 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

forumrow_firstentry_background is a stylevar. It shows up under Style Manager > find style > StyleVars

Some users like to have the first of something different than the others.
Reply With Quote
  #7  
Old 07-02-2010, 11:10 PM
virtus virtus is offline
 
Join Date: Jun 2010
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Month old but it is relevant to my interests. I'm surprised no one has come out with a mod for this yet.

I do not mind having to make some code adjustments i jsut want my alt colors for main forum and thread listing (when you click a forum)
Reply With Quote
Reply

Thread Tools
Display Modes

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 05:31 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.04636 seconds
  • Memory Usage 2,206KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete