Blog |Follow Nick on Twitter| About
 

I've been playing with bbpress, by default there are no Avatars, I've made a little adjustment to the plugin by Joshua Hutchins

Here is my Forum Post: Avatar bbPress plugin browser

I wrote an extra function for your plugin so that the avatar can be displayed on the profile page...

function profile_avatar() {
global \$user;
if ( get_avatar_loc ( \$user->ID ) ) {
echo '\<img src="' . get_avatar_loc( \$user->ID ) . '" alt="' . \$user->user_login . 's Avatar"' . ' />';
}
}

Styles & img sizes could be added into the tag as desired.... then in profile.php template, add...

\<?php if ( function_exists('profile_avatar') ) { profile_avatar(); } ?>

hope that helps :-)

rgds,

Nick

 
Nick Bettison ©