• g0atbutt

    (@g0atbutt)


    Hello, I successfully have tweetbacks running but I don’t see any user profile pictures.

    Could someone give me a kick in the right direction?

    Thanks for your work on the plugin joost!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thorandor

    (@thorandor)

    I have a similar problem, I used to have avatars next to each tweetback, but as of recently I do not, and I have not changed any code or plugin other than updating twitter-tools (which has nothing to do with the display of avatars) and tweetbacks.

    The plugin is installed here: https://www.whatwasithinking.co.uk/

    After additional testing I looked at the functions.php file, which shows the following code:

    <?php } 
    
    	function yoast_list_tweetbacks($comment, $args, $depth) {
    	$GLOBALS['comment'] = $comment;
    	$avatarurl = str_replace("twitter:","https://s3.amazonaws.com/twitter_production/profile_images/",$comment->comment_author_email);
    ?>
    	<li class="tweetback" id="comment-<?php comment_ID(); ?>">
    		<div id="div-comment-<?php comment_ID(); ?>">
    			<div class="comment-author vcard">
    				<img alt='' src='<?php echo $avatarurl ?>' class='avatar avatar-40 photo avatar-default' height='40' width='40' />
    				<cite class="fn"><a href="<?php echo $comment->comment_author_url; ?>" rel='external nofollow' class='url'><?php comment_author(); ?></a></cite> <span class="says">says:</span>
    			</div>
    			<div class="comment-meta commentmetadata"><a href="#comment-<?php comment_ID(); ?>"><?php comment_date('F jS, Y'); ?> at <?php comment_date('H:i:s'); ?></a></div>
    			<p><?php comment_text(); ?></p>
    		</div>
    	</li>
    <?php }
    
    	  add_filter('get_comments_number', 'comment_count', 0);
    function comment_count( $count ) {
    	global $id;
    $get_comments= get_comments('post_id=' . $id);
    $comments_by_type = &separate_comments($get_comments);
    return count($comments_by_type['comment']);
    }
    ?>

    Technically this should list the tweetbacks with an avatar, however this part does not seem to be used at all for some reason? Even if I edit the code within the <li > </ li> tags nothing happens, as if the function wasn’t even called.

    Any help would be appreciated.

    Thorandor

    (@thorandor)

    Addendum: tweetbacks 1.5.2 is displaying the avatars correctly (see https://www.whatwasithinking.co.uk/2009/02/27/explaining-usability-heuristics-a-quick-guide/#comments as an example), whereas tweetbacks 1.5.3 is not displaying them.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Tweetbacks] Avator not displaying’ is closed to new replies.