Auto imported Comments from Facebook

Posted in: Newspaper
Post count: 37

Hi Support,
Comments which are hourly imported from Facebook to postings are shown without the Facebook Avatar in Newspaper (Version 6.5)
When I switch to an other Theme like Twety Fourteen, then this FB Avatars are showing correct.
I read in on of the Forums about this but the post is from the old Newspaper Theme Version 4.
By the way I use the inbuilt comments Function from WordPress.

So now my Question:
How do I get this to work that Facebook Avatars are showing within the Comments which are made on Facebook and imported from Snap?
And which File(s) in which folder I have do change?

Thanks for your reply
With best Regards,
Karl Stöckl

  • This topic was modified 10 years by kstockl.
Post count: 37

I tried following by changing this code Lines in:
wp-content/themes/Newspaper/includes/wp_booster/comments.php
About Line 136:

<?php
//echo get_template_directory_uri() . “/images/avatar.jpg”;
//echo get_avatar($td_comment_auth_email, 50, get_template_directory_uri() . “/images/avatar.jpg”);
if ($comment->user_id) {echo get_avatar($td_comment_auth_email, 50);} else {echo get_avatar( $comment, 50 );}
?>

This seems to work.
But my question now is: Is this code correct? Or does it destroy other things?

Greets, Karl

Post count: 7909

Hi,

You can use that code if it works. Unfortunately I cannot provide a solution right now as the theme was not tested with all jetpack features(I guess that you use jetpack comments), sorry! We have this on our list and we will try to find a solution as soon as possible.

Thanks!

Post count: 37

Hi Alin,
I don´t use the Jetpack Plugin. I use the normal comments Function from WordPress Core.
And the Code changes I made are working for me so far.
My only Question was if this Code which I changed is correct? Cause I´m not a programmer. And I want to get sure not to run into an Error.

With best Regards, Karl

Post count: 7909

Hi,

I have checked the get_avatar function – https://codex.wordpress.org/Function_Reference/get_avatar and the code should work fine.

Thanks!

Post count: 37

Hi,
tested it about one month now and it works with the changed Code.

With best regards, Karl

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.