Support » Plugin: NS Widget Recent Comments » Exact the plugin I need

  • KarlStockl


    I like you comments widget. Here it is possible to display avatars.
    But if I have a comment from Facebook the Facebook Avatars are not shown.

    $output .= ‘<ul id=”ns”>’;
    if ( $comments ) {
    foreach ( (array) $comments as $comment) {
    $output .= ‘<div class=”avat”>’;
    $output .= get_avatar(get_comment_author_email($comment->comment_ID), $size) . ‘ ‘;
    $output .= sprintf(__(‘%1$s on </div><li class=”ns-comment”> %2$s’, ‘widget-recent-comments’), get_comment_author(), ‘comment_ID) ) . ‘”>’ . get_the_title($comment->comment_post_ID) . ‘‘);
    $output .= ‘<br style=”clear:both;height:0;margin:0;padding:0;” />’;

    Is it possible to do that with an if else commando like this example?

    if ($comment->user_id) {echo get_avatar($td_comment_auth_email, 50);} else {echo get_avatar( $comment, 50 );}

    So if an User is registered on the Site he has it´s avatar, and the Users from outside the Site have their avatar for Example Facebook shown?

    Greets, Karl

Viewing 1 replies (of 1 total)
  • Plugin Author misharnet


    Thanks Karl so much for your review. Well we created this plugin to show WordPress comments in a first place …that is why we concentrated on showing default WP avatars of comments authors. It is possible to add more options of course, but generally it’ll make this widget/plugin more complex, and the original idea was to make it clean and simple, and it seems that People like it that way…I can not tell when we are going to extend it with more options, but we’ll do it in a near future …

Viewing 1 replies (of 1 total)
  • The topic ‘Exact the plugin I need’ is closed to new replies.