vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Facebook "Be the first of your friends..." text color change? (https://vborg.vbsupport.ru/showthread.php?t=313339)

409industries 07-29-2014 09:06 PM

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:

https://vborg.vbsupport.ru/external/2014/07/5.jpg

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.

ozzy47 07-29-2014 09:09 PM

Does the same thing happen on a unmodified default style?

409industries 07-29-2014 09:48 PM

Quote:

Originally Posted by ozzy47 (Post 2508928)
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?

https://vborg.vbsupport.ru/external/2014/07/4.jpg

tbworld 07-30-2014 02:09 AM

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.

409industries 07-30-2014 02:43 AM

Quote:

Originally Posted by tbworld (Post 2508956)
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?

tbworld 07-30-2014 03:07 AM

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

409industries 07-30-2014 09:33 PM

Quote:

Originally Posted by tbworld (Post 2508959)
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!

tbworld 07-30-2014 09:48 PM

Your welcome :)

If I get around to ever styling it with the DOM, I will let you know. :)

409industries 07-31-2014 03:24 AM

Much appreciated. You rock tbworld!!!


All times are GMT. The time now is 06:59 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.01241 seconds
  • Memory Usage 1,732KB
  • 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
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete