WordPress.org

한국어

  • 테마
  • 플러그인
  • 소식
    • 문서
    • 포럼
  • About
  • 워드프레스와 40% 웹을 위한 여정
  • 워드프레스 6.8
  • 워드프레스 받기
워드프레스 받기
WordPress.org

Plugin Directory

Custom User Profile Photo

  • 플러그인 제출하기
  • 내 즐겨찾기
  • 로그인
  • 플러그인 제출하기
  • 내 즐겨찾기
  • 로그인

이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

Custom User Profile Photo

작성자: Vincent Listrani
다운로드
  • 세부사항
  • 평가
  • 설치
  • 개발
지원

설명

A more flexible way to attach and display a photo for a WordPress user profile.

Some users might not have or want to have a gravatar account or other universal avatar account. They simply may want to use a one-time specified photo to represent them on your WordPress site. This plugin solves that use case.

With the ability to upload a photo to a user profile via the WordPress Media Uploader or by specifying an external URL to an image, your users and/or authors can have a personalized photo specific to your website.*

This plugin will add a custom set of fields to the user profile page which will allow for the use of a custom profile photo.

You can add/change/edit uploaded photos directly from the user profile page. The external option allows you to provide a URL to the external image or remove it.

As of v0.4, the plugin now filters the get_avatar() function found in most WordPress themes.

Simply go to the users section and select a user or select “Your Profile” depending on your permission level. The new fields are added to the bottom of the user profile page. Choose which type of photo you want to use. Upload an image or add an external url. Then press the Update Profile button.

If you require a customized approach or your theme does not support the get_avatar() hook, use the example below.

To retrieve the photo on the front-end use the following example on your template page(s).

<?php
    // Retrieve The Post's Author ID
    $user_id = get_the_author_meta('ID');
    // Set the image size. Accepts all registered images sizes and array(int, int)
    $size = 'thumbnail';

    // Get the image URL using the author ID and image size params
    $imgURL = get_cupp_meta($user_id, $size);

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

You will need to place the code above in each area of your theme where you wish to add and retrieve your theme’s custom avatar image. This can include but is not limited to single.php, page.php, and comments.php.

*Future Updates to this plugin include allowing other roles to access this feature, a settings page to allow a custom default image and other options.

Translations

  • English – default, always included
  • Dutch
  • Hungarian
  • Spanish

Credits

Thanks to Olaf Lederer, Harkály Gergő, sqhendr, SOMTIJDS, David Pérez

스크린샷

  • The new fields that are added to the user profile page.

  • After uploading and saving your selected image.

  • On hover, Edit or Remove an uploaded image.

  • On hover, Remove a URL to an external image.

  • An example of getting this new image to display on the front-end.

설치

  1. Upload custom-user-profile-photo folder to the /wp-content/plugins/ directory
  2. 워드프레스의 ‘플러그인’ 메뉴에서 플러그인을 활성화하세요.
  3. Place <?php get_cupp_meta($user_id, $size); ?> in your templates

FAQ

Who can upload and manage these images?

Currently, only a user with the upload_files capability can use this option.
Editors and Admins can upload and edit files.
Authors can only upload files.
Subscribers and Contributors cannot do either so an Admin will need to do this for them.

I installed the plugin but I want to customize the output and placement of the image. Is this possible?

Yes, you can still customize the output by using the get_cupp_meta() function. Please reference the code snippet below or on the Description tab.

Where the $user_ID is the users ID number and the size is a registered image size like ‘thumbnail’ or an array like array(50,50).

후기

Alternative of gravatar to change profile photo

themeshef 2018년 4월 7일
This author did a good job. I was looking for an alternative of gravatar to change administrator profile pictures & fortunately found this plugin. It’s free! Awesome!

Should Be in the WP Core

wadsworth4 2018년 1월 22일
CMS users should always be able to upload their own image, not be chained to an avatar service or some avatar set. This little plugin lets all our members effortlessly add their own photo. Super handy plugin!

Simply working

SineMetu 2017년 11월 28일
that plugin is just simply working, and doing exactly what is says. thanks guys.

Misunderstanding

almend 2017년 5월 3일 답글 3개
.

Very good

athensrealestate 2017년 4월 5일
I use the free version. It’s very good plugin and easy to adapt. Thanks!

Awesome Plugin

Zain Neil B Ul Abadin 2017년 1월 24일
Thanks dude you really saved my day 😉
모든 27 평가 읽기

기여자 & 개발자

“Custom User Profile Photo”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자
  • Vincent Listrani
  • Jeremy Ward

“Custom User Profile Photo”(이)가 1 개 언어로 번역되었습니다. 기여해 주셔서 번역자님께 감사드립니다.

자국어로 “Custom User Profile Photo”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록을 RSS로 구독하세요.

변경이력

0.5.3

  • Addressed an issue where an object being passed into cupp_get_user_by_id_or_email could potentially be the WP_Comment object.

0.5.2

  • Fixed issue with a PHP warning when getting the user with the WP_User object.

0.5.1

  • Fixed issue with update_user_attribute.

0.5

  • Major Update – please be sure to backup your site and db.
  • Replaced update_user_meta with update_user_attribute per WordPress VIP Standards.
  • Replaced get_home_url with get_site_url for users where the edit image link was returning a 404. Credit: SOMTIJDS
  • Fixed textdomain loading issue.
  • Added Spanish translation. Credit: David Pérez
  • Updated and formatted code per PHPCS. Credit: jmichaelward
  • Refactored multiple functions and variables for simplicity and compatibility. Credit: jmichaelward

0.4

  • Major Update – please be sure to backup your site and db.
  • The plugin now overrides the WordPress avatar by filtering the get_avatar() hook.
  • The get_cupp_meta() function still exists and can be used to customize the output (this will eventually be deprecated).

0.3

  • Changed the function which gets the attachment post ID by GUID to the WordPress core function attachment_url_to_postid() for better reliability. (Props to sqhendr).

0.2.7

  • Added Hungarian Translation (Thanks to Harkály Gergő)

0.2.6

  • Fixed a bug where the save function required a different capability than the upload function (courtesy of douglas_johnson).

0.2.5

  • Tested with WordPress v4.1
  • Fixed a bug where the external URL option would not return the URL with get_cupp_meta().
  • Fixed a bug where the saved image did not correspond to the selected radio button.
  • Replaced depricated update_usermeta with update_user_meta.
  • Improved image selection functionality.
  • Images now show immediately after selecting an uploaded item or entering an external URL.
  • Added Dutch translation – Thanks Olaf Lederer

0.2.4

  • Tested with WordPress v3.8
  • Updated description text. Better explanation of how to quickly use this plugin.

0.2.3

  • Beta version release.

기초

  • 버전 0.5.3
  • 최근 업데이트: 8년 전
  • 활성화된 설치 6,000+
  • 워드프레스 버전 3.6.1 또는 그 이상
  • 다음까지 시험됨: 4.7.29
  • 언어

    English (US) 및 Persian.

    자국어로 번역하기

  • 태그:
    custom profile photocustom profile pictureprofile photoprofile pictureuser profile
  • 고급 보기

평점

별 5점 만점에 4.4점.
  • 19 5-별점 후기 별 5개 19
  • 2 4-별점 후기 별 4개 2
  • 3 3-별점 후기 별 3개 3
  • 0 2-별점 후기 별 2개 0
  • 2 1-별점 후기 별 1개 2

리뷰 추가하기

모든 리뷰 보기

기여자

  • Vincent Listrani
  • Jeremy Ward

지원

할 말 있으신가요? 도움이 필요하신가요?

지원 포럼 보기

  • 소개
  • 뉴스
  • 호스팅
  • 프라이버시
  • 쇼케이스
  • 테마
  • 플러그인
  • 패턴
  • 알아보기
  • 지원
  • 개발자 도구
  • WordPress.tv ↗
  • 참여하기
  • 이벤트
  • 기부하기 ↗
  • 미래를 위한 5가지
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

한국어

  • 페이스북 페이지 방문하기
  • X(이전 트위터) 계정 방문하기
  • Visit our Mastodon account
  • 인스타그램 계정 방문하기
  • LinkedIn 계정 방문하기
  • 유튜브 채널 방문하기
코드는 詩다