WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: JanRain RPX - Authentication from Facebook, Twitter, Google, Yahoo, Windows Live ID and Ope (2 posts)

  1. Coffee4cr
    Member
    Posted 4 years ago #

    With my recent update of the RPX plugin, I noticed some junk being added before some commenters name

    http://coffeeman.name/images/rpx.png

    here's an image of it

  2. Coffee4cr
    Member
    Posted 4 years ago #

    /* filter for showing a favicon of the user's provider next to their name */
    function rpx_get_comment_author_filter($a) {
    
      if (strpos($_SERVER['REQUEST_URI'], 'wp-admin')) {
        return;
      }
    
      global $comment;
      $identifier = rpx_get_identifier_by_wpuid($comment->user_id);
    
      if (!$identifier) {
        return $a;
      }
    
      $imgdir = get_option('siteurl') . '/wp-content/plugins/rpx/images/';
    
      $img = 'openid.png';
      if (strpos($identifier, 'openid.aol.com')) {
          $img = 'aol.png';
      } else if (strpos($identifier, 'google.com')) {
        $img = 'google.png';
      } else if (strpos($identifier, 'yahoo.com')) {
          $img = 'yahoo.png';
      } else if (strpos($identifier, 'facebook.com')) {
          $img = 'facebook.png';
      } else if (strpos($identifier, 'twitter.com')) {
          $img = 'twitter.png';
      } else if (strpos($identifier, 'myspace.com')) {
          $img = 'myspace.png';
      } else if (strpos($identifier, 'live.com')) {
          $img = 'live.png';
      }
    
      $img = $imgdir . $img;
     <strong> return /*"<img src='$img'/> " .*/ $a; </strong>
    }

    fixed it by commenting the return image

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags