Viewing 1 replies (of 1 total)
  • Thread Starter Coffee4cr

    (@coffee4cr)

    /* 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

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: JanRain RPX – Authentication from Facebook, Twitter, Google, Yahoo, Windows Live ID and Ope’ is closed to new replies.