Přejít na obsah
  • Přihlásit se
  • Registrace
WordPress.org

Česko

  • Šablony
  • Pluginy
  • Novinky
  • Podpora
  • O WordPressu
  • Openverse
  • Vzory
  • Komunitní podpora
  • Překlady
  • Kontakt
  • Získejte WordPress
Získejte WordPress

Pluginy

  • Oblíbené
  • Beta testy
  • Vývojáři

Plugin nebyl testován na 3 nejnovějších verzích WordPressu. Nemusí už být tedy podporován a u novějších verzí WordPressu může mít problémy s kompatibilitou a může být nestabilní.

Stáhnout

WP User Profile Avatar

Autor: WP Event Manager
  • Podrobnosti
  • Hodnocení
  • Instalace
  • Vývojáři
Podpora

Popis

WP User Profile Avatar allow you to change default WordPress avatar or User profile picture. You can use any photos uploaded into your Media Library or use 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 get_wpupa_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('get_wpupa_url'))  
        $imgURL = get_wpupa_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('get_wpupa_url'))  
        $imgURL = get_wpupa_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

Snímky obrazovky

  • 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.

Instalace

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.

Nejčastější dotazy

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 get_wpupa_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('get_wpupa_url'))  
    $imgURL = get_wpupa_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('get_wpupa_url'))  
    $imgURL = get_wpupa_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.

Recenze

Avatars for the users are displayed all right

Jānis Elmeris 22. 11. 2021
The post author and comment author gets the default avatar displayed all right. All the default avatar options listed in the discussion settings have the default avatar, not the image related to the option (plugin version 1.1). If I deactivate the plugin, the discussion default avatar options get their images back.

just works! forget the annoying Gravatar service!

yoadshani 14. 8. 2021
just works! forget the annoying Gravatar service! you don't need it any more!

Perfect for elementor

sri87 23. 1. 2021
Tried many plugins but this does exactly what I wanted. Able to display user profile pictures on their custom dashboard using elemetor profile image dynamic tags. Thank you. Will be great if can be defined the field dynamically in a profile to fetch profile picture as many themes already come with custom profile images.

Number one in setting avatar for multisite from a single url

MEG 16. 7. 2020 1 odpověď
Thank you very much for this GREAT plugin. Being able to set avatar via url in network users page is an incredibly great privilege for those who use synchronized sites in a multisite network. Please update regularly to the latest version of wordpress. Please consider including the tags used by similar plugins to help plugin findability. Please consider adding the option of using custom avatars that are uploaded through Gravatar.
Přečtěte si všechny 4 recenze

Autoři

WP User Profile Avatar je otevřený software. Následující lidé přispěli k vývoji tohoto pluginu.

Spolupracovníci
  • WP Event Manager
  • Ashok Dudhat
  • Hitesh Makvana

Plugin „WP User Profile Avatar“ byl přeložen do 1 jazyku. Děkujeme všem překladatelům za jejich pomoc.

Přeložte “WP User Profile Avatar” do svého jazyka.

Zajímá vás vývoj?

Prohledejte kód, podívejte se do SVN repozitáře, nebo se přihlaste k odběru protokolu vývoje pomocí RSS.

Přehled změn

1.1 [Aug 16TH, 2020]

  • Fixed – Tweak Settings.

1.0 [May 23TH, 2020]

  • First stable release.

Meta

  • Verze pluginu: 1.0
  • Poslední aktualizace: před 1 rokem
  • Aktivních instalací: 10 000+
  • Verze WordPressu: 4.1 nebo novější
  • Testováno až do WordPressu: 5.8.6
  • Verze PHP: 5.4 nebo novější
  • Jazyky:

    English (US) a Swedish.

    Přeložte do vašeho jazyka

  • Štítky:
    avatarcustom profile photocustom profile picturegravataruser profile
  • Podrobnosti

Hodnocení

Zobrazit vše
  • 5 hvězdiček 4
  • 4 hvězdičky 0
  • 3 hvězdičky 0
  • 2 hvězdičky 0
  • 1 hvězdička 0
Přihlašte se a vytvořte hodnocení

Spolupracovníci

  • WP Event Manager
  • Ashok Dudhat
  • Hitesh Makvana

Podpora

Vyřešené problémy během posledních dvou měsíců:

0 z 1

Fórum podpory

Dary

Chtěli byste podpořit vývoj tohoto pluginu?

Přispět na tento plugin

  • O WordPressu
  • Novinky
  • Hosting
  • Podpořit
  • Swag
  • Dokumentace
  • Vývojáři
  • Zapojte se
  • Vzdělávání
  • Příklady
  • Pluginy
  • Šablony
  • Vzory
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Soukromí
  • Veřejný kód
WordPress.org
WordPress.org

Česko

  • Navštivte naši stránku na Facebooku
  • Navštivte náš Twitter účet
  • Navštivte náš Instagram účet
  • Navštivte náš LinkedIn účet
Code is Poetry.