WordPress.org

Latviešu valodā

  • Tēmas
  • Spraudņi
  • Jaunumi
  • Par
  • Iegūstiet WordPress
Iegūstiet WordPress
WordPress.org

Plugin Directory

Profile Picture

  • Submit a plugin
  • My favorites
  • Log in
  • Submit a plugin
  • My favorites
  • Log in

Šī spraudnis nav atjaunināts vairāk kā divus gadus. Varbūt, tas vairs netiek uzturēts, nesaņemt atbalstu un tam var būt saderības problēmas ar jaunākām WordPress versijām.

Profile Picture

Autors Arul Jayaraj
Lejupielādēt
  • Sīkāka informācija
  • Atsauksmes
  • Uzstādīšana
  • Attīstība
Atbalsts

Apraksts

Users can set his profile picture from admin end and as well as Front End.

Admin End it would come automatically based on the user role, who has upload_files capability, otherwise we need to assign capability to them.

In Front End when we use <?php do_action('edit_user_profile',$current_user); ?> on edit profile section, it would be placed on additonal user profile fields.

*Future Updates: Display current user images alone, short code and migrate withsocial media profile pictures.

Ekrānuzņēmumi

  • Add profile image field in admin end.

  • After uploading and saving your selected image.

  • Show the same profile image feature in front end.

Uzstādīšana

  1. Upload profile-picture folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to Profile in admin end / Go to profile edit in front end

Note: If you want to add this feature to default scbscribers and contributors, Enable this action hook <?php add_action('admin_init', array($this,'allow_uploads_permission') ); ?> from the ProfilePicture class.

BUJ

Profile Picture upload permissions about users?

Currently, who has the capability of upload_files they can upload profile pictures.
Editors and Admins can upload and edit files.
Authors can only upload files.
Subscribers and Contributors cannot do either Need to enable add_action('admin_init', array($this,'allow_uploads_permission') ) in our class file.

How to show the profile image in frontend?

We can show our customized profile picture in front end whereever you want with registered image sizes. You may use wordpress get_avatar() function by default, else user our customized one it serves by your wish..

id_or_email (integer|string|object) (required ) You may pass user id, email or user object here.

width (integer) (optional) Width of the image.

height (integer) (optional) Width of the image.

alt (string) (optional) alt title of image tag.

Return Values It would return profile picture details as array or false on failure.

Atsauksmes

Good idea

Christopher 3 septembris, 2016 1 atbilde
…but it didn’t actually work on my website.

Cool plugin, Easy to use. Keep it up.

Vijay 3 septembris, 2016
Hey! It is easy to use, nice guide for installation and usage. Keep it up.

A good thought that needs a little more tweak

wpmohan 3 septembris, 2016
A good idea to handle user images within a wordpress site without having to painfully setup a Gravatar Profile. Expecting update to the current version with Image Priviliges to view & select only user’s own uploads in Media library. Keep Updating, Keep Coding! [ Signature moderated ]
Lasīt 4 atsauksmes

Autori un izstrādātāji

“Profile Picture” ir atvērtā pirmkoda programmatūra. Šo spraudni ir veidojuši šādi cilvēki.

Līdzdalībnieki
  • Arul Jayaraj

Tulkot “Profile Picture&#8221 savā valodā.

Vai jūs interesē attīstība?

Pārlūkojiet kodu, apmeklējiet SVN krātuvi vai abonējiet attīstības žurnālu, ko izveidojis RSS.

Izmaiņu žurnāls

1.0

Beta Release

Meta

  • Version 1.0
  • Pēdējo reizi atjaunots: pirms 9 gadiem
  • Aktīvās instalācijas: 80+
  • WordPress versija 3.0 vai jaunāka
  • Pārbaudīts līdz: 4.5.32
  • Language
    English (US)
  • Birkas:
    custom profile pictureprofile photoprofile pictureuser photouser profile picture
  • Papildu skats

Vērtējumi

4.3 no 5 zvaigznēm.
  • 1 5 zvaigžņu atsauksme 5 zvaigznes 1
  • 2 4 zvaigžņu atsauksmes 4 zvaigznes 2
  • 0 3 zvaigžņu atsauksmes 3 zvaigznes 0
  • 0 2 zvaigžņu atsauksmes 2 zvaigznes 0
  • 0 1 zvaigžņu atsauksmes 1 zvaigzne 0

Pievienot manu atsauksmi

Skatīt visas atsauksmes

Līdzdalībnieki

  • Arul Jayaraj

Atbalsts

Jums ir kaut kas ko teikt? Vajadzīga palīdzība?

Skatīt atbalsta forumu

  • Par
  • Jaunumi
  • Uzturētājs
  • Privātums
  • Vitrīna
  • Tēmas
  • Spraudņi
  • Modeļi
  • Uzziniet
  • Atbalsts
  • Izstrādātāji
  • WordPress.TV
  • Iesaistieties
  • Pasākumi
  • Ziedot
  • Pieci nākotnei
  • WordPress.com
  • Matt
  • bbPress
  • BuddyPress
WordPress.org
WordPress.org

Latviešu valodā

  • Apmeklējiet mūsu X (agrāk Twitter) kontu
  • Apmeklējiet mūsu Bluesky kontu
  • Apmeklējiet mūsu Mastodon kontu
  • Apmeklējiet mūsu Threads kontu
  • Apmeklējiet mūsu Facebook lapu
  • Apmeklējiet mūsu Instagram kontu
  • Apmeklējiet mūsu LinkedIn kontu
  • Apmeklējiet mūsu TikTok kontu
  • Apmeklējiet mūsu YouTube kanālu
  • Apmeklējiet mūsu Tumblr kontu
Kods ir dzeja.