Page 1 of 1

customize the color of the comments facebook

Posted: 16 Dec 2010, 13:27
by alexanderich1
hi,
I need to customize the colors of the writing on facebook comments, because my background is black and not seen. I have a css that already change the color in other areas. where and how can I add the path to get to my css?

thanks

Re: customize the color of the comments facebook

Posted: 17 Dec 2010, 21:19
by Jan
Hi, I think, there is no way to stylize it with css, because it is an iframe - the whole facebook page (comments) is loading into your page (so maybe some javascript which will access iframe on your site, but really no experiences there :( )

Jan

Re: customize the color of the comments facebook

Posted: 03 Feb 2011, 09:07
by Monclee
I have the same problem =(, any ideas?

Re: customize the color of the comments facebook

Posted: 09 Jul 2011, 22:02
by sherinkapotein
FInally after a few hrs or brain mincing figured a way out

Log in to your Web Ftp and browse to the Joomla install
then go to "your_joomla_root_folder"/modules/mod_phoca_facebook_comments
open folder named tmpl
open default.php for editing
look for the line like this one

echo '<div class="pfbcc"><fb:comments href="'. $tmpl['uri'] .'" simple="1" '. $cCount.' width="'. (int)$tmpl['fb_comment_width'] .'"></fb:comments>'


Add a lil spice to this line to get your code working

echo '<div class="pfbcc"><fb:comments ' colorscheme="dark" href="'. $tmpl['uri'] .'" simple="1" '. $cCount.' width="'. (int)$tmpl['fb_comment_width'] .'"></fb:comments>'

note the addition of code colorscheme="dark" thats the buzz kill
Enjoy

Re: customize the color of the comments facebook

Posted: 12 Jul 2011, 16:32
by Jan
Hi, thank you for the guide.

Jan

Re: customize the color of the comments facebook

Posted: 05 Sep 2012, 02:43
by Frankster69
Hi all,

I would like to re-open this thread. The current version of the module has changed, and the lines to alter mentioned above are now commented out and replaced with different code.

I would like to change the output of the module colors via a html override in my template. The reason is I'm implementing a template-changer in my site, giving the opprtunity to choose between a 'dark' and a 'light' version.

I have my 'dark' template set as standard, with the Phoca Facebook Comments module on 'dark' too. Resulting in white printed comments, which show good on my dark background. If I change the site to my light template, the comments remain printed white, on a close-to-white background, rendering them nearly invisible.

I've looked and found the code mentioned above by sherinkapotein, but in the current version this code is commented out ( /* ... */ ).

Now if I look in the rendered page-source, I see an iframe being called, and in the facebook url is a colorscheme. In default.php I also see references to colorscheme. I tried to change this in several locations in the file and hardcode it instead of having it ask for a string. No luck sofar however...

Could anybody show me the way? It's the same question as the OP posted here, only the module code changed, so the solution is no longer working.

thanks in advance!

Frank

Re: customize the color of the comments facebook

Posted: 26 Sep 2012, 19:46
by Jan
Hi, which version you are using?