Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
  #1  
Old 07-29-2014, 09:06 PM
409industries 409industries is offline
 
Join Date: Jan 2008
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Facebook "Be the first of your friends..." text color change?

Hello!

I have the Facebook Options turn on in my vBulletin 4 forum. However, my background is very dark and the default text appears to be a dark color as well.

I've carefully gone through most of the StyleVars to change text throughout the forum to a lighter #F2F2F2 color, but can't seem to find the CSS or variable that controls this text.

Has anyone been able to successfully change the color of the text here:



Here is an example post of this problem in action if anyone wants to see it first hand: http://www.dirtyimpreza.com/forums/s...23-test-thread

I would really like this to be visible, its a great feature of vB4.x

Any help would be greatly appreciated! Thank you.
Reply With Quote
  #2  
Old 07-29-2014, 09:09 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does the same thing happen on a unmodified default style?
Reply With Quote
  #3  
Old 07-29-2014, 09:48 PM
409industries 409industries is offline
 
Join Date: Jan 2008
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
Does the same thing happen on a unmodified default style?
Yes this happens on the default vB4 theme as well. Perhaps the color of the text is hard coded somewhere?

Reply With Quote
  #4  
Old 07-30-2014, 02:09 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If I remember right (and it's been a long time since I looked at it), it is part of the FaceBook JavaScript. You can tell FaceBook, by passing a parameter to return light lettering for a dark background. I will see if I can dig it up when I get a chance.

I might be confusing this with other FaceBook stuff I have worked on, but it should not be too hard to derive an answer.
Reply With Quote
  #5  
Old 07-30-2014, 02:43 AM
409industries 409industries is offline
 
Join Date: Jan 2008
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tbworld View Post
You can tell FaceBook, by passing a parameter to return light lettering for a dark background.
tbworld, thanks for chiming in on my latest thread (and for all your prior help).

This is definitely beyond the scope of what I know how to do. Anyone got a FAQ / blog post on how to do this?
Reply With Quote
  #6  
Old 07-30-2014, 03:07 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As soon as I get a chance, I will track it down for you. It may not be until tomorrow: I have a pretty full plate this evening.

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

So like I thought, it is one of the parameters that is sent to facebook. So you cannot style it any further through a direct method. It would be possible to style it through the DOM, after the page loads, but I have not given that a try -- as of yet.

Modify template: facebook_likebutton

Find:
Code:
colorscheme="light"
Replace:
Code:
colorscheme="dark"
Anyway, this should get you going.
Reply With Quote
Благодарность от:
409industries
  #7  
Old 07-30-2014, 09:33 PM
409industries 409industries is offline
 
Join Date: Jan 2008
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tbworld View Post
Modify template: facebook_likebutton

Find:
Code:
colorscheme="light"
Replace:
Code:
colorscheme="dark"
Anyway, this should get you going.
That's definitely the way to go! The returned "lighter" text for the dark theme isn't exactly the right color but at least you can now read it! This is great... thank you!
Reply With Quote
  #8  
Old 07-30-2014, 09:48 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your welcome

If I get around to ever styling it with the DOM, I will let you know.
Reply With Quote
  #9  
Old 07-31-2014, 03:24 AM
409industries 409industries is offline
 
Join Date: Jan 2008
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Much appreciated. You rock tbworld!!!
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 11:38 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.04530 seconds
  • Memory Usage 2,244KB
  • 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
  • (4)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (1)post_thanks_box_bit
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (9)post_thanks_postbit_info
  • (9)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_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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete