Topic RSS
Hi there, I just found a solution to include the SPF avatars int he famous chat-like WP Wall plugin.
Modify wp-wall.php at the end and replace last function with this.
{
$options=WPWall_GetOptions();
if (!$options['gravatar'])
return '';
$return= '<span class="wall-gravatar">';
$size=25;
$email=strtolower(trim($comment->comment_author_email));
$rating = "G";
if (function_exists('sf_show_forum_avatar')) {
}
else if (function_exists('get_avatar')) {
$return.= get_avatar($email, $size);
} else {
$grav_url = "http://www.gravatar.com/avatar…..avatar_id=
" . md5($emaill) . "&size=" . $size."&rating=".$rating;
$return.= "<img src='$grav_url'/>";
}
$return.= '</span>';
return $return;
}
in 4.2, you will be able to simply check an option to include SPF avatars in all WP locations where avatars are shown… assuming those locations are done with the get_avatar() of course… which this plugin does properly… no more need to edit templates or change code…
Most Users Ever Online: 444
Currently Online:
60 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
-Radio-: 1251
Lee H: 606
Luffer: 535
Conrad_Farlow: 485
jim: 478
neon: 263
ovizii: 240
Tal: 240
Member Stats:
Guest Posters: 2616
Members: 7328
Moderators: 1
Admins: 2
Forum Stats:
Groups: 5
Forums: 16
Topics: 10839
Posts: 79131
Newest Members: ordie69, mutha66, jawaulk, mastergalen, ikkiamonrah, OlafKS, js, Anne Wayman, vinzMtl, VikingBrent
Moderators: Brandon C (158)
Administrators: Yellow Swordfish (22131), Mr Papa (23587)
Log In
Register
Home
Add Reply
Add Topic
Offline

Quote


Visit 
Privacy Policy



