Plugin Name: Avatar Plugin URI: http://faq.rayd.org/bbpress_avatar/ Description: Allows users to specify an external address to an avatar that will be shown when they post Change Log: .73a - Adjusts implementation so that core files no longer have to be changed. Author: Joshua Hutchins Author URI: http://ardentfrost.rayd.org/ Version: .73a
bbPress Plugin Browser »
Avatar (.73a)
Download
Version: .73a
Last Updated: 2007-1-12
Requires bbPress Version: .73 ? or higher
Compatible up to: .74
Average Rating





Your Rating
Author: Josh Hutchins
-
Hi,
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 :o)
Posted: 3 years ago # -
Great plugin. :D Only thing I miss is the pretty permalinks, but I can live without it.
Thanks for the extra code, linickx.
Posted: 3 years ago # -
I'm not sure what you mean by pretty permalinks with this plugin, but I hope to one day soon work on it's display in profile and how it gets the info. I would add lini's code to the plugin, but then it'll display the pic AND the link, and I want it to just display the pic.
I'll update it soon hopefully, though it may not be til the next release if they resolve the ticket I created last night (which will allow me to add it to the profile page automatically)
Posted: 3 years ago # -
How can I limit the image size in the post? I want to make it 48x48 only.
Posted: 3 years ago # -
I would also like to limit the size of the avatars if possible.
Posted: 3 years ago # -
Avatar limits are set in CSS. See the readme.
Posted: 3 years ago #
Add a Comment
You must log in to post.