Hopp til innhold
  • Logg inn
  • Registrer
WordPress.org

Norsk (Bokmål)

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

Utvidelser

  • Mine favoritter
  • Beta-testing
  • Utviklere

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.

Last ned

Profile Picture

Av Arul Jayaraj
  • Detaljer
  • Omtaler
  • Installering
  • Utvikling
Brukerstøtte

Beskrivelse

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.

Skjermskudd

  • Add profile image field in admin end.

  • After uploading and saving your selected image.

  • Show the same profile image feature in front end.

Installasjon

  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.

FAQ

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.

Vurderinger

Good idea

Christopher 3. september, 2016 1 svar
...but it didn't actually work on my website.

Cool plugin, Easy to use. Keep it up.

Vijay 3. september, 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. september, 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 ]
Les alle 4 vurderinger

Bidragsytere og utviklere

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

Bidragsytere
  • Arul Jayaraj

Oversett “Profile Picture” til ditt språk.

Interessert i utvikling?

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

Endringslogg

1.0

Beta Release

Meta

  • Versjon: 1.0
  • Sist oppdatert: 7 år siden
  • Aktive installasjoner: 100+
  • WordPress-versjon: 3.0 eller nyere
  • Testet opp til: 4.5.29
  • Språk:
    English (US)
  • Stikkord:
    custom profile pictureprofile photoprofile pictureuser photouser profile picture
  • Avansert visning

Vurderinger

Se alle
  • 5 stjerner 1
  • 4 stjerner 2
  • 3 stjerner 0
  • 2 stjerner 0
  • 1 stjerne 0
Logg inn for å skrive en omtale.

Bidragsytere

  • Arul Jayaraj

Brukerstøtte

Har du noe å si? Trenger du hjelp?

Vis brukerstøtteforumet

  • Om
  • Nyheter
  • Hosting
  • Bidra
  • Swag
  • Brukerstøtte
  • Utviklere
  • Bli involvert
  • Lær
  • Fremvisning
  • Utvidelser
  • Temaer
  • Mønstre
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Personvern
  • Offentlig kode
WordPress.org
WordPress.org

Norsk (Bokmål)

  • Besøk vår Facebook-side
  • Besøk vår Twitter-konto
  • Besøk vår Instagram-konto
  • Besøk vår LinkedIn-konto
  • Visit our YouTube channel
Kode er poesi.