WordPress.org

한국어

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

Plugin Directory

CodeablePress: Simple Frontend Profile Picture Upload

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

CodeablePress: Simple Frontend Profile Picture Upload

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

설명

CodeablePress: Simple Frontend Profile Picture Upload provides a seamless way for users to upload profile pictures directly from their WooCommerce My Account page or using a shortcode. The plugin is designed with simplicity, security, and performance in mind, ensuring an efficient user experience.

Features:
* Seamlessly set a default image using a simple filter
* Intelligent cropping to identify the best focal point, ensuring a perfectly squared photo on upload
* Lightweight shortcode to display other users avatars and current users avatar uploader anywhere on your site
* Automatically integrates an avatar display and upload option in the WooCommerce ‘My Account’ page
* Effortlessly manages old profile pictures by automatically deleting them upon new uploads
* Easily upload or delete custom avatars directly from the Admin user’s profile area
* Ultra-light plugin with a file size of less than 0.05MB
* Very high emphasis on security
* Fully translation-ready with a .pot file included for easy localization
* Supports multiple image formats (JPG, JPEG, PNG, GIF, WEBP)
* Regular updates and dedicated support for seamless integration

This plugin is perfect for websites that need a straightforward solution for users to update their profile pictures from the frontend.

License

This plugin is licensed under the GPL-3.0-or-later license. For more information, please visit GPL-3.0 License.

설치

  1. Upload the plugin files to the /wp-content/plugins/custom-profile-picture-for-woocommerce directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Plugin will automatically display users avatar with upload option above the WooCommerce My Account menu.
  4. Use the [csfpp_avatar] shortcode to display avatars on additional pages or posts.

Usage:

Shortcode: [csfpp_avatar]
    Attributes:
        check_page_author: Check the page author and display their avatar instead of current users (default: false).
        classes: Additional CSS classes to apply (default: '').
    type: Decides what content to display. Type 0. Avatar only | Type 1. Avatar and name | Type 2. Avatar, name and profile link (default: 0)

Full use example:
[csfpp_avatar check_page_author=”false” classes=”” type=”0″]

FAQ

Can I set a default avatar?

Yes! You can set the path with a simple filter.

  1. Upload your default image to wp-content/uploads/.
  2. change default-profile-picture.png to the name of your image in the code below.
  3. Add the code to your functions.php file.

// Set default avatar image
add_filter(‘get_avatar_url’, function($url, $id_or_email, $args) {
// Check if the URL is empty or not an image URL
if (empty($url) || !wp_attachment_is_image($url)) {
// Update this to the relative path of the image in the uploads directory
$default_image_path = ‘default-profile-picture.png’;

    // Upload file to wp-content/uploads/
    return trailingslashit(wp_upload_dir()['baseurl']) . $default_image_path;
}

return $url;

}, 10, 3);

How do I remove the avatar above the woocommerce menu in My Account?

Add the following code to your functions.php file to remove the profile picture above the WooCommerce My Account menu.
remove_action(‘woocommerce_before_account_navigation’, ‘csfpp_display_avatar_with_name’);

How do I stop the avatar from being round?

The avatar design is controlled by a template that can be placed in your theme folder. Copy the avatar.php file from the templates folder of the plugin and place it in yourtheme/templates/csfpp/avatar.php

Open the template file in your themes folder and remove the text “rounded-full”.

Can I delete or change other user’s avatars?

Yes. Simply navigate to their profile page in the admin area.

Delete: Click the delete button that shows if the user has a custom profile (not gravatar).
Upload: Click on the users profile photo, upload a photo with the media uploader, save the profile.

Does gravatar still work and can I disable it?

Yes, gravatar still works. If you’d like to disable it, you can use the following functions in your function.php file. Be sure to set a new default avatar after doing so in discussion.php

// Disable Gravatars
add_filter(‘get_avatar’, function($avatar, $id_or_email, $size, $default, $alt) {
return ”;
}, 1, 5);

// Remove Gravatar from Discussion Settings
add_filter(‘avatar_defaults’, function($avatar_defaults) {
unset($avatar_defaults[‘mystery’]);
unset($avatar_defaults[‘blank’]);
unset($avatar_defaults[‘gravatar_default’]);
return $avatar_defaults;
});

// Hide the Avatar Settings Section
add_action(‘admin_init’, function() {
remove_action(‘admin_init’, ‘avatar_settings_init’);
});

How can I change the default size of uploaded avatars?

The default size for avatars in this plugin is based on your WordPress settings for thumbnail size. You can easily change this by following these steps:

  1. Go to WordPress Admin Settings:
    Navigate to Settings > Media in your WordPress dashboard.
    Under the “Thumbnail size” section, you’ll see options to set the width and height for thumbnails. Adjust these values to your desired dimensions.

  2. Override Default Size (Advanced Users):
    If you prefer to set a specific size for avatars that differs from your general thumbnail settings, you can modify the code where the avatar upload size is defined. This is typically done in the plugin’s settings or by adding a custom function in your theme’s functions.php file.

add_filter(‘csfpp_avatar_size’, function() {
return [150, 150]; // Change 150×150 to your preferred dimensions
});

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“CodeablePress: Simple Frontend Profile Picture Upload”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자
  • codeablepress

자국어로 “CodeablePress: Simple Frontend Profile Picture Upload”(을)를 번역하세요.

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

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

변경이력

= 1.0.0 – 2024-10-28
* Initial full release!

기초

  • 버전 1.0.0
  • 최근 업데이트: 9개월 전
  • 활성화된 설치 100+
  • 워드프레스 버전 5.8 또는 그 이상
  • 다음까지 시험됨: 6.6.2
  • PHP 버전 7.4 또는 그 이상
  • 언어
    English (US)
  • 태그:
    avatarFrontendprofile pictureuser profilewoocommerce
  • 고급 보기

평점

아직 제출된 리뷰가 없습니다.

리뷰 추가하기

모든 리뷰 보기

기여자

  • codeablepress

지원

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

지원 포럼 보기

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

한국어

  • X(이전 트위터) 계정 방문하기
  • 블루스카이 계정 방문하기
  • 마스토돈 계정 방문하기
  • 스레드 계정 방문하기
  • 페이스북 페이지 방문하기
  • 인스타그램 계정 방문하기
  • LinkedIn 계정 방문하기
  • 틱톡 계정 방문하기
  • 유튜브 채널 방문하기
  • 텀블러 계정 방문하기
코드는 詩다