Linux 软件免费装
Banner图

Plugin Name

开发者 VincentListrani
jmichaelward
更新时间 2020年7月10日 11:15
PHP版本: 3.6.1 及以上
WordPress版本: 4.7.3
版权: GPLv2 or later
版权网址: 版权信息

标签

user profile profile picture custom profile photo custom profile picture profile photo user profile photo user profile picture

下载

0.2.3 0.2.4 0.2.5 0.2.6 0.3 0.4 0.5.1 0.5.2 0.5.3 0.5

详情介绍:

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). ` '; ?> ` 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.

安装:

  1. Upload custom-user-profile-photo folder to the /wp-content/plugins/ directory
  2. 通过WordPress的“插件”菜单激活插件
  3. Place <?php get_cupp_meta($user_id, $size); ?> in your templates

屏幕截图:

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

升级注意事项:

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. The plugin was refactored and restructured per PHPCS. Some functions were swapped for ones that were less costly or could cause a 404 response. Fixed textdomain issue for translations and added Spanish translation. 0.4 Major Update - please be sure to backup your site and db. The plugin now filters and overrides get_avatar(). This could affect your theme or other plugins you have installed. 0.3 Minor improvement. 0.2.6 Bug Fixes and minor improvements. 0.2.5 Bug Fixes and minor improvements. 0.2.3 Beta Release

常见问题:

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. <?php echo get_cupp_meta($user_ID, $size); ?> 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).

更新日志:

0.5.3 0.5.2 0.5.1 0.5 0.4 0.3 0.2.7 0.2.6 0.2.5 0.2.4 0.2.3