WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Simple Facebook Connect] My Theme calls avatar differently

[Resolved] [Plugin: Simple Facebook Connect] My Theme calls avatar differently

  • What do I need to change to make my FB avatars show up instead of the themes gravatars. Here is the themes code.

    // Produces an avatar image with the hCard-compliant photo class
    function commenter_link() {
    	$commenter = get_comment_author_link();
    	if ( ereg( '<a[^>]* class=[^>]+>', $commenter ) ) {
    		$commenter = ereg_replace( '(<a[^>]* class=[\'"]?)', '\\1url ' , $commenter );
    	} else {
    		$commenter = ereg_replace( '(<a )/', '\\1class="url "' , $commenter );
    	}
    	$avatar_email = get_comment_author_email();
    	$avatar = str_replace( "class='avatar", "class='photo avatar", get_avatar( $avatar_email, 80 ) );
    	echo ' <a href="'.get_comment_author_url().'" title="Comment Author">'.$avatar .'</a>';
    } // end commenter_link

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum’s parser.]

    http://wordpress.org/extend/plugins/simple-facebook-connect/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: Simple Facebook Connect] My Theme calls avatar differently’ is closed to new replies.