Ready to get started?Download WordPress


[Plugin: Tweetbacks] Avator not displaying (3 posts)

  1. g0atbutt
    Posted 5 years ago #

    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!

  2. Thorandor
    Posted 5 years ago #

    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: http://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:","http://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 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>
    <?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.

  3. Thorandor
    Posted 5 years ago #

    Addendum: tweetbacks 1.5.2 is displaying the avatars correctly (see http://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.

Topic Closed

This topic has been closed to new replies.

About this Topic