Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Getting a similar error: “cookilian.displayAlert is not a function” – see https://www.whatwasithinking.co.uk/

    Checked all other dependencies, jQuery etc is all running fine, I expect this is the same bug as outlined above?

    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.

    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.

    I have got a similar issue on https://www.whatwasithinking.co.uk/ (WP2.7, twitter tools 1.5.1) where tweets update fine manually, but not automatically. I am assuming this has something to do with the fact that neither prototype.js nor jQuery are loaded.

    I emailed AlexKing as well, hopefully we’ll get an answer soon…

    Hiya,

    Unfortunately the link did not help a lot as it doesn’t describe where you are doing these changes to make the program work. My theme grabs all link and script information via <?php wp_head(); ?>, but without knowing where this is actually being generated and how your explanation is not really of much use for WP-beginners or intermediates.

Viewing 5 replies - 1 through 5 (of 5 total)