WordPress.org

Norsk (Bokmål)

  • Tema
  • Utvidelser
  • Nyheter
  • Om
  • Mønstre
  • Delta
  • Meetups
  • Slack
  • Kontakt
  • Få WordPress
Få WordPress
WordPress.org

Plugin Directory

WP User Profile Avatar

  • Send inn en utvidelse
  • Mine favoritter
  • Logg inn
  • Send inn en utvidelse
  • Mine favoritter
  • Logg inn

Denne utvidelsen har ikke blitt testet mot noen av de siste 3 hovedutgivelsene av WordPress. Den er kanskje ikke lenger holdt vedlike eller støttet, og den kan ha kompatibilitetsproblemer med nyeste versjoner av WordPress.

WP User Profile Avatar

Av WP Event Manager
Last ned
  • Detaljer
  • Omtaler
  • Installering
  • Utvikling
Brukerstøtte

Beskrivelse

P User Profile Avatar allows you to change the default WordPress avatar or User profile picture. You can use any photos uploaded into your Media Library or use a custom photo URL as an avatar instead of using Gravatar.

Plugin Features

  • Lightweight and easy to use.
  • Upload an avatar image from media library or local computer.
  • Set avatar image using custom path url.
  • Visibility option whether show avatar or not.
  • Display user profile avatar shortcode [user_profile_avatar].
  • Upload avatar shortcode [user_profile_avatar_upload].
  • Allow anyone (Contributors & Subscribers) can upload avatar.
  • Disable Gravatar and use own custom avatars.
  • You can rate avatar as G, PG, R, X based on your appropriateness.
  • Allow to set default avatar. Default Avatar Allows you to pick a default image when no avatar exists.
  • SEO & Developer Friendly.

Set new user profile avatar from admin panel.

  • Go Admin Dashboard -> Users -> All Users –> Select any user profile you would like to edit.

  • Find «WP User Profile Avatar» section, You can give new avatar url path or you can upload avatar using media library.

  • Update User.

Display new user profile avatar at frontend side.

To retrieve the user avatar/photo on the front-end use one of the following approach in your template page(s).

1. Using shortcode and pass parameters based on your need.

 Shortcode: [user_profile_avatar]
 Parameters: userid, size, align, link, target and caption.
 userid : id of the user.
 size: original,medium,large,thumbnail.
 align: alignleft,aligncenter,alignright.
 link: image, attachment, custom.
 target: _blank, self,
 caption: you can give any text value in between shortcode bracket and it will display below user avtar profile.


1.1  Display default avatar using visual editor.

    You can use the following shortcode in any page and it will show default avatar of the plugin.

    [user_profile_avatar] 

1.2 Display avatar for the perticular user using visual editor.

    if you want to show user profile for the user id 1.

    [user_profile_avatar user_id="1"] 

    You can also set other parameters like size, align, link, target and caption in this shortcode.

    Example: 

    [user_profile_avatar user_id="1" size="original" align="aligncenter" link="image" target="_blank"] Display Name [/user_profile_avatar]

1.3 if you want to assign dynamic user id in shortocde without using visual editor

<?php
         //for the logged user, Current user object
        $user = wp_get_current_user();

        echo do_shortcode('[user_profile_avatar user_id="<?php $user->id ?>" size="original" align="aligncenter" link="image" target="_blank"]'. $user->display_name .'[/user_profile_avatar]');

?>

2. Using the function wpupa_get_url.

You will need to place below code in each area of your theme where you wish to add and retrieve your theme’s custom avatar image.

2.1 At Author page
-------------------

<?php

    // Get The Post's Author ID
    $authorID = get_the_author_meta('ID');
    $authorname = get_the_author_meta('display_name', $authorID);

    // Set the image size. Accepts all registered images sizes and array(int, int)
    $size = 'thumbnail';
    $imgURL='';

    // Get the image URL using the author ID and image size params
    if (function_exists('wpupa_get_url'))  
        $imgURL = wpupa_get_url($authorID, ['size' => $size]);

    // display image on the page
    echo '<img src="'. $imgURL .'" alt="'. $authorname .'">';

?>

2.2 Except Author page
----------------------

<?php

    // Current user object
    $user = wp_get_current_user();

    // Set the image size. Accepts all registered images sizes and array(int, int)
    $size = 'thumbnail';
    $imgURL='';

    // Get the image URL using the author ID and image size params
    if (function_exists('wpupa_get_url'))  
        $imgURL = wpupa_get_url($user->id, ['size' => $size]);

    // display image on the page
    echo '<img src="'. $imgURL .'" alt="'. $user->display_name .'">';

?>

You will need to place above code in each area of your theme where you wish to add and retrieve your theme’s custom avatar image.

Be a contributor

If you want to contribute, go to our WP User Profile Avatar GitHub Repository and see where you can help.

You can also add a new language via translate.wordpress.org. We’ve built a short guide explaining how to translate and localize the plugin.

Thanks to all of our contributors.

Feedback

  • We are open for your suggestions and feedback – Thank you for using or trying out one of our plugins!
  • Drop us a line.

More

  • Also please have look our other plugins or visit at WordPress.org plugin page.

Connect With US

To stay in touch and get latest update about WP User Profile Avatar’s further releases and features, you can connect with us via:

  • Facebook
  • Twitter
  • Google Plus
  • Linkedin
  • Pinterest
  • Youtube

Credits

1.WP Event Manager wants to give credit to GoogleAPIs as we are using GoogleAPIs to support users using their Google+ profile links on our plugin.
2. WP Event Manager wants to give credit to Gravatar as we are using Gravatar to support users using their Gravatar profile links on our plugin. Privacy policy page of Gravatar.

Skjermbilder

  • Settings.

  • Default Gavatars & set custom default avatar.

  • Set custom avatar for user profile example 1.

  • Set custom avatar for user profile example 2.

  • Display avatar & upload avatar shortcode icon for Visual Editor.

  • Generate display user profile avatar shortcode.

  • Generate user profile avatar upload shortcode.

  • Upload shortcode GUI for the frontend side.

  • After uploading avatar successfully, show undo option.

  • After refreshing page, remove option show instead of undo option for uploaded avatar.

  • After removing uploaded avatar, show message successfully removed avatar.

Installasjon

Automatic installation

Automatic installation is the easiest option as WordPress handles the file transfers itself and you don’t even need to leave your web browser. To do an automatic install, log in to your WordPress admin panel, navigate to the Plugins menu and click Add New.

In the search field type «WP User Profile Avatar» and click Search Plugins. Once you’ve found the plugin you can view details about it such as the the point release, rating and description. Most importantly of course, you can install it by clicking Install Now.

Manual installation

The manual installation method involves downloading the plugin and uploading it to your web server via your favorite FTP application.

  • Download the plugin file to your computer and unzip it

  • Using an FTP program, or your hosting control panel, upload the unzipped plugin folder to your WordPress installation’s wp-content/plugins/ directory.

  • Activate the plugin from the Plugins menu within the WordPress admin.

FAQ

How I can set new user profile avatar from admin panel?

  • Go Admin Dashboard -> Users -> All Users –> Select any user profile you would like to edit.

  • Find «WP User Profile Avatar» section, You can give new avatar url path or you can upload avatar using media library.

  • Update User.

How I can display new user profile avatar at frontend side?

You can show user profile avatar two ways.

1. Using shortcode and pass parameters based on your need.

 Shortcode: [user_profile_avatar]
 Parameters: userid, size, align, link, target and caption.
 userid : id of the user.
 size: original,medium,large,thumbnail.
 align: alignleft,aligncenter,alignright.
 link: image, attachment, custom.
 target: _blank, self,
 caption: you can give any text value in between shortcode bracket and it will display below user avtar profile.


1.1  Display default avatar using visual editor.

    You can use the following shortcode in any page and it will show default avatar of the plugin.

    [user_profile_avatar] 

1.2 Display avatar for the perticular user using visual editor.

    if you want to show user profile for the user id 1.

    [user_profile_avatar user_id="1"] 

    You can also set other parameters like size, align, link, target and caption in this shortcode.

    Example: 

    [user_profile_avatar user_id="1" size="original" align="aligncenter" link="image" target="_blank"] Display Name [/user_profile_avatar]

1.3 if you want to assign dynamic user id in shortocde without using visual editor

     //for the logged user, Current user object
    $user = wp_get_current_user();

    echo do_shortcode('[user_profile_avatar user_id="<?php $user->id ?>" size="original" align="aligncenter" link="image" target="_blank"]'. $user->display_name .'[/user_profile_avatar]');

2. Using the function wpupa_get_url.

You will need to place below code in each area of your theme where you wish to add and retrieve your theme’s custom avatar image.

2.1 At Author page
-------------------

// Get The Post's Author ID
$authorID = get_the_author_meta('ID');
$authorname = get_the_author_meta('display_name', $authorID);

// Set the image size. Accepts all registered images sizes and array(int, int)
$size = 'thumbnail';
$imgURL='';

// Get the image URL using the author ID and image size params
if (function_exists('wpupa_get_url'))  
    $imgURL = wpupa_get_url($authorID, ['size' => $size]);

// display image on the page
echo '<img src="'. $imgURL .'" alt="'. $authorname .'">';

2.2 Except Author page
----------------------

// Current user object
$user = wp_get_current_user();

// Set the image size. Accepts all registered images sizes and array(int, int)
$size = 'thumbnail';
$imgURL='';

// Get the image URL using the author ID and image size params
if (function_exists('wpupa_get_url'))  
    $imgURL = wpupa_get_url($user->id, ['size' => $size]);

// display image on the page
echo '<img src="'. $imgURL .'" alt="'. $user->display_name .'">';

How to allow Contributors & Subscribers can upload avatar?

  • Go Admin Dashboard -> Users -> Profile Avatar Settings.

  • Find «Allow Contributors & Subscribers to upload avatars», check it.

  • Save Changes.

Vurderinger

User avatar works fine for my website

amikeliunas 28. oktober, 2024
Using Buddypress and Dynamic User Directory. This plugin works right out of the box!

Author box

pebro 12. mars, 2024 1 svar
Without warning, the website will start displaying an email and an info blog with a description of the author below the article. Why?!

PHP Fatal error

wolfdimmer 23. februar, 2024 1 svar
WP Version 6.4.3PHP 7.4mysite.com/wp-content/debug.log:[23-Feb-2024 12:03:17 UTC] PHP Fatal error: Maximum execution time of 120 seconds exceeded in /mysite.com/wp-includes/plugin.php on line 398

Update messed up my site

tghs 24. januar, 2024 2 svar
This plugin was long due for an update (a security one, too) and when it was finally updated it messed up the appearance of the website. Users’ images dissappeared and user name and description was appended redundantly and in ugly fashion after every post, despite being already shown.My solution for this annoying mess was to install Simple Local Avatars (by 10up). This plugin has a tool to migrate from another avatar plugin (Wp User Avatar). It can be tweaked to migrate also all local avatars that are stored in the media library and are called with an id (not the ones that are brought from external URLs): Go to the plugin file named «class-simple-local-avatars.php» and at line 1529 change ‘user_avatar’ to ‘_wpupa_attachment_id’. The line should look like this after the change:$meta_key = $wpdb->get_blog_prefix( $blog_id ) . ‘_wpupa_attachment_id’;The meta_key field name where the local avatar image id is stored is thus changed to make the migration possible from WP User Profile Avatar. After this, all you need to do is go into Simple Local Avatar settings and look for «Migrate avatars from WP User Avatar to Simple Local Avatars» andn click on the button. It will only migrate avatars that have local images with ids stored in the meta_key mentioned above, but it works well.You can now deactivate and delete this awfully maintained plugin.For the images called by external urls stored in usermeta meta_key ‘_wpupa_url’ I did’t search for an automatic solution, as I only had a few avatars shown like this and I changed them manually with the new plugin.Hope this helps!

Unwanted sideeffects

Felix 23. januar, 2024 3 svar
The recent update brought unwanted sideeffects, like sudden ugly Author boxes after every post, page and cpt. Why?

New update messed up my site

2xdevs 23. januar, 2024 3 svar
Hi team,The plugin was working great until the recent update, this has seem to break my site. Here are the new issues arise after updating:1) Images in media library grid view are gone. You can only see images directly uploaded by yourself and not by other users. But in list view it is still working fine.2) Single post author images missing on all single post typeHope the team can resolve these issues with the next update sooner. Thanks
Les alle 14 vurderinger

Bidragsytere og utviklere

“WP User Profile Avatar” er programvare med åpen kildekode. Følgende personer har bidratt til denne utvidelsen.

Bidragsytere
  • WP Event Manager
  • Ashok Dudhat
  • Hitesh Makvana

“WP User Profile Avatar” har blitt oversatt til 1 språk. Takk til oversetterne for deres bidrag.

Oversett “WP User Profile Avatar” til ditt språk.

Interessert i utvikling?

Bla gjennom koden, sjekk ut SVN-repositoriet, eller abonner på utviklingsloggen med RSS.

Endringslogg

1.0.6 [Sept 26th, 2024]

Fixed : Change Gravatar Logo to Mystery Man option issue is fixed.
Fixed : Default image avatar issue is fixed.
Fixed : After deleting a comment count is removed.
Fixed : Selected options are unchecked when click on the save change button.
Fixed : WordPress ORG notice is fixed.
Fixed : Image URL avatar is not set.
Fixed : Elementor with wp user profile avatar author box option is not working.
Added : Reset button is added to comment & Delete section.
Added : Disabled & Delete Comment options are added.

1.0.5 [Sept 9th, 2024]

Fixed: Admin profile is not display.
Fixed: After updating plugin user profile image as set Mystery Man image.
Fixed: User Profile is not update from User Profile Avatar Settings Page.
Fixed: Correct setting name.
Fixed: Delete comment – Post is unable to delete.
Fixed: Delete Comment – Check marked again visible in the box.
Fixed: Admin profile image is missing from comment.

1.0.4 [July 19th, 2024]

Fixed: The Avatar spelling is rectified.
Fixed : Deprecated code error is fixed.
Fixed : Check marked again visible in the box.
Fixed: Profile image remains the same when changing user name.
Fixed: Issue related to the “Avatar link to” option is resolved.
Fixed: Adding shortcode-related problem is resolved.
Fixed: New profile image is no more visible after refreshing the page.
Fixed: No undefined text is visible in the size attribute value.
Fixed: Shortcode attribute-related issue is resolved.
Fixed: Proper user image is now displayed in each user profile avatar.
Fixed: Issue related to the option “open link in a new window” is resolved.
Fixed: Space is added between the two buttons.
Fixed: User role is now saved properly.
Fixed: The issue related to the appearance of a new image when the update button is pressed is resolved.
Fixed: The image button is not visible after removing an image.
Fixed: The Undo button is now visible on the shortcode page.
Fixed: The blue default user icon is now visible.
Fixed : Comment enable/disable issue is fixed.

1.0.3 [June 11th, 2024]

Fixed: The security issue of the plugin has been resolved.
Fixed: The issue of displaying a corrupted author image at the backend has been resolved.
Fixed: The remove image button is now visible.
Fixed: The issue related to displaying the profile image on the event, organizer, and venue pages is now resolved.
Fixed: The image URL avatar is now set.
Fixed: The user dropdown box now displays the default text.

1.0.2 [Feb 22nd, 2023]

Fixed: User section text is now displayed properly.
Fixed: The Mystery Man image is now set at the user section.
Fixed: The text related to the biographical info in Elementor is now displayed at the correct place.
Fixed: All the options are set for the default user profile avatar.
Fixed: Now p tags are created with social media options.
Fixed: Space is added to the author box.
Fixed: The “choose” button in the default avatar section is now working properly.
Fixed: The user avatar size reduction option is now working.
Fixed: The security issue is now resolved.
Fixed: The profile image display related issue is now resolved.
Fixed: Now custom default profile avatar can be set after disabling the default gravatar.
Added: The option to hide the Bio Info Author Box is added.

1.0.1 [Dec 15th, 2023]

Fixed : No error message is shown while updating the username from the admin panel
Fixed : Security issues are resolved in the profile avatar settings.
Fixed : Security vulnerability issue in the profile avatar plugin is resolved.
Fixed : The title of a settings option is rectified.
Fixed : Proper user profile avatar description is added.
Fixed : The active license option is removed from Profile Avatar.
Fixed : User profile menu options are now available.
Fixed : Issue related to the URL image size in the Elementor is resolved now.
Fixed : Biographical info is removed from the venue and organizer section.
Fixed : Profile Avatar is now visible on the event details page.
Fixed : The warning message that appears in the backend is removed.
Fixed : The profile avatar size issue in the Elementor is resolved.
Fixed : The issue related to uploading an image in profile avatar in elementor has been resolved.
Fixed : Additional tooltip display issue in the profile icon is resolved now.
Fixed : Profile icon alignment issue is resolved.
Fixed : Profile Avatar banner is improved in wordpress.org.
Fixed : Fields are removed after uninstalling the plugin.
Fixed : Username label in profile avatar is rectified.
Fixed : Issue related to the plugin activation is resolved.
Fixed : Images on the All user page are now properly displayed.
Fixed : Administrator’s media library access is restricted for other users.
Fixed : Issue related to controlling the file size is now resolved.
Fixed : Homepage error is resolved.
Fixed : Authorbox is now available with a Social media link.
Fixed : The plugin is now compatible with bbpress.
Fixed : Shortcode avatar button is added to the visual editor.

1.0 [May 23th, 2020]

First stable release of User Profile Avatar.

Meta

  • Versjon 1.0.6
  • Sist oppdatert 4 måneder siden
  • Aktive installasjoner 10 000+
  • WordPress-versjon 5.8 eller nyere
  • Testet opp til 6.5.5
  • PHP-versjon 8.0.2 eller nyere
  • Språk

    English (US) og Swedish.

    Oversett til ditt språk

  • Stikkord
    avatarcustom profile photocustom profile picturegravataruser profile
  • Avansert visning

Vurderinger

3.1 av 5 stjerner.
  • 6 5-star reviews 5 stjerner 6
  • 0 4-star reviews 4 stjerner 0
  • 2 3-star reviews 3 stjerner 2
  • 1 2-star review 2 stjerner 1
  • 5 1-star reviews 1 stjerne 5

Legg til min anmeldelse

Se alle omtalene

Bidragsytere

  • WP Event Manager
  • Ashok Dudhat
  • Hitesh Makvana

Brukerstøtte

Har du noe å si? Trenger du hjelp?

Vis brukerstøtteforumet

Donér

Vil du støtte videreutviklingen av denne utvidelsen?

Doner til denne utvidelsen

  • Om
  • Nyheter
  • Hosting
  • Personvern
  • Fremvisning
  • Temaer
  • Utvidelser
  • Mønstre
  • Lær
  • Brukerstøtte
  • Utviklere
  • WordPress.tv ↗
  • Bli involvert
  • Arrangementer
  • Doner ↗
  • Five for the Future
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

Norsk (Bokmål)

  • Besøk vår konto på X
  • Visit our Bluesky account
  • Visit our Mastodon account
  • Visit our Threads account
  • Besøk vår Facebook-side
  • Besøk vår Instagram-konto
  • Besøk vår LinkedIn-konto
  • Visit our TikTok account
  • Visit our YouTube channel
  • Visit our Tumblr account
Kode er poesi.