This plugin adds the ability to have local avatars in WordPress 2.5+
Getting this plugin to work under a WordPress (WP) Multi Site (MS) configuration can be tricky, but as the instructions for WP MS installations say, you are expected to know what you are doing and have basic WordPress development, PHP, HTML, CSS, and UNIX/Linux administration experience. See http://codex.wordpress.org/Create_A_Network. However, here are some steps that have worked for others configuring this plugin for WP MS.
Often the legacy method for User Uploads is required when using sub-domains. Therefore, this is also regularly required for WordPress Multi Site setups.
The directory uploaded Avatars are stored in is set by the field next to the enable user uploads option. There is an example /avatars given in the instructions beneath the field.
This directory must be relative to your web-root. For example, if all of your HTML files and your WP installation are in a directory public_html provided by your web host, this is the web-root. So the /avatars directory goes here, i.e. ~/public_html/avatars.
Make sure the privileges are set correctly.
The options for the Avatar plugin are available on the User » Avatars page, at the bottom.
If you are trying to show, say somewhere in a sidebar, the Avatar of the user who is logged-in try code something like this:
<?php
global $current_user;
$known = !empty($current_user->nickname);
?>
<div style="float: right; margin: 4px;">
<?php if($known) echo get_avatar($current_user->id, 30); ?>
</div>
I've not tested this extensively, but it is possible to move the Avatar setting section higher up the User Profile page by making these changes to the plugin (alter the code at your own risk!).
Find the two lines with show_user_profile and edit_user_profile, comment them out, and add the profile_personal_options line - the code now looks like this:
add_action('profile_personal_options', array(&$this, 'avatar_uploader_option'));
// add_action('show_user_profile', array(&$this, 'avatar_uploader_option'));
// add_action('edit_user_profile', array(&$this, 'avatar_uploader_option'));
Requires: 2.5 or higher
Compatible up to: 3.3.2
Last Updated: 2011-12-31
Downloads: 210,640
0 of 1 support threads in the last three weeks have been resolved.
Got something to say? Need help?