WP User Avatar

Omschrijving

WordPress currently only allows you to use custom avatars that are uploaded through Gravatar. WP User Avatar enables you to use any photo uploaded into your Media Library as an avatar. This means you use the same uploader and library as your posts. No extra folders or image editing functions are necessary.

WP User Avatar also lets you:

Upload your own Default Avatar in your WP User Avatar settings.

Show the user’s Gravatar avatar or Default Avatar if the user doesn’t have a WP User Avatar image.

We’re at FlipperCode, committed to excellent support to make every download worth for the user. Happily announcing Support Desk for our valuable users to engaged with multiple support desk person for fast turnout.

Introducing Pro Version of WP USER AVATAR

We have developed a Pro Version of WP USER AVATAR by getting valuable features request from thousands of users especially about Storage options and how user upload the avatar. Here is a quick highlight on the numerous customizable features offered by the WP USER AVATAR PRO .

Easy Upload and Capture functionality with crop avatar options.

Use Webcam to get Avatar instantly.

Allow user to upload avatar on Registration Page.

Easy to adjust avatar dimensions.

Enable to add or edit avatar while adding existing user to the blog in multi-site network.

Geavanceerde Instellingen

Add WP User Avatar to your own profile edit page

You can use the [avatar_upload] shortcode to add a standalone uploader to any page. It’s best to use this uploader by itself and without other profile fields.

If you’re building your own profile edit page with other fields, WP User Avatar is automatically added to the show_user_profile and edit_user_profile hooks. If you’d rather have WP User Avatar in its own section, you could add another hook:

do_action('edit_user_avatar', $current_user);

Then, to add WP User Avatar to that hook and remove it from the other hooks outside of the administration panel, you would add this code to the functions.php file of your theme:

If you leave the options blank, WP User Avatar will detect whether you’re inside The Loop or on an author page and return the correct avatar in the default 96×96 size:

<?php echo get_wp_user_avatar(); ?>

The function get_wp_user_avatar can also fall back to get_avatar if there is no WP User Avatar image. For this to work, “Show Avatars” must be checked in your WP User Avatar settings. When this setting is enabled, you will see the user’s Gravatar avatar or Default Avatar.

Reacties

For comments, you might have in your template:

<?php echo get_avatar($comment, 32); ?>

Replace this function with:

<?php echo get_wp_user_avatar($comment, 32); ?>

For comments, you must specify the $comment variable.

Other Available Functions

[avatar_upload] shortcode

You can use the [avatar_upload] shortcode to add a standalone uploader to a front page or widget. This uploader is only visible to logged-in users. If you want to integrate the uploader into a profile edit page, see Other Notes.

You can specify a user with the shortcode, but you must have edit_user capability for that particular user.

[avatar_upload user="admin"]

[avatar] shortcode

You can use the [avatar] shortcode in your posts. It will detect the author of the post or you can specify an author by username. You can specify a size, alignment, and link, but they are optional. For links, you can link to the original image file, attachment page, or a custom URL.

Note: If you are using one shortcode without a caption and another shortcode with a caption on the same page, you must close the caption-less shortcode with a forward slash before the closing bracket: [avatar /] instead of [avatar]

get_wp_user_avatar_src

Works just like get_wp_user_avatar but returns just the image src. This is useful if you would like to link a thumbnail-sized avatar to a larger version of the image:

In your WP User Avatar settings, you can upload your own Default Avatar.

Can I disable all Gravatar avatars?

In your WP User Avatar settings, you can select “Disable Gravatar — Use only local avatars” to disable all Gravatar avatars on your site and replace them with your Default Avatar. This will affect your registered users and non-registered comment authors.

Can Contributors or Subscribers choose their own WP User Avatar image?

Yes, if you enable “Allow Contributors & Subscribers to upload avatars” in the WP User Avatar settings. These users will see a slightly different interface because they are allowed only one image upload.

Will WP User Avatar work with comment author avatars?

Yes, for registered users. Non-registered comment authors will show their Gravatar avatars or Default Avatar.

Will WP User Avatar work with bbPress?

Yes!

Will WP User Avatar work with BuddyPress?

No, BuddyPress has its own custom avatar functions and WP User Avatar will override only some of them. It’s best to use BuddyPress without WP User Avatar.

Will WP User Avatar work with WordPress Multisite?

Yes, however, each site has its own avatar settings. If you set a WP User Avatar image on one site, you have to set it again for different sites in your network.

How can I see which users have an avatar?

For Administrators, WP User Avatar adds a column with avatar thumbnails to your Users list table. If “Show Avatars” is enabled in your WP User Avatar settings, you will see avatars to the left of each username instead of in a new column.

Can I use the WP User Avatar uploader in a front page or widget?

Yes, you can use the [avatar_upload] shortcode to put a standalone uploader in a front page or widget. This uploader is only visible to logged-in users. If you want to integrate the uploader into a profile edit page, see Other Notes.

You can specify a user with the shortcode, but you must have 'edit_user' capability to change the user’s avatar.

[avatar_upload user="admin"]

Can I insert WP User Avatar directly into a post?

You can use the [avatar] shortcode in your posts. It will detect the author of the post or you can specify an author by username. You can specify a size, alignment, and link, but they are optional. For links, you can link to the original image file, attachment page, or a custom URL.

Note: If you are using one shortcode without a caption and another shortcode with a caption on the same page, you must close the caption-less shortcode with a forward slash before the closing bracket: [avatar /] instead of [avatar]

What CSS can I use with WP User Avatar?

WP User Avatar will add the CSS classes “wp-user-avatar” and “wp-user-avatar-{size}” to your image. If you add an alignment, the corresponding alignment class will be added:

There’s a call for donations in the WP User Avatar settings. How can I remove it?

I’ve spent countless hours developing this plugin for free. If you’re able to give a donation I’d appreciate it, but it’s by no means a requirement. You can remove the message by adding this to the functions.php file of your theme:

I saw this as a perfect solution to how I wanted avatars to display--a simple letterbox unless one registered and uploaded their own avatar. My start was with the free version--soon upgraded to Pro via CodeCanyon. What a mess. Support was slow (three weeks to sort out issues) and the developers did not respond to what changes they made after I created admin and FTP accounts for them.
The troubles started with PHP 5.6 and WP 4.9.9. Now running upgraded to PHP 7.2.16 and WP 5.1.1. A boatload of errors and PHP notices--parameter issues, undefined offsets, property call issues, deprecated functions, etcetera. Deprecated things like mysql to mysqli were easy to fix by editing PHP files. But one should not have to fix any of this. Lot's of spaghetti code--the developers need to rewrite a number of things and make it PHP 7.2-7.3 compliant.
Their slow support will likely 'fix' issues--but their secrecy about what they and need to have administrative and FTP accounts accomplish this makes anything non-reproducible. The support as stated earlier is slow--likely due to how buggy this turkey is. Additionally, I have a few issues with giving developers in foreign countries the access they ask for... There are far too many horror stories in creating such access.
I hope that they eventually get their act together. I have had to look for another solution for my replacement site. The cost of Pro is far too much for the problems that might occur.