[WordPress] 外掛分享: WP User Profile Avatar

首頁外掛目錄 › WP User Profile Avatar
WordPress 外掛 WP User Profile Avatar 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
10,000+
安裝啟用
★★☆☆☆
2.9/5 分(13 則評價)
751 天前
最後更新
100%
問題解決
WordPress 5.8+ PHP 5.6+ v1.0.2 上架:2020-05-21

內容簡介

WP User Profile Avatar 是一款外掛,可讓您更改預設的 WordPress 頭像或使用者個人資料照片。您可以使用媒體庫中上傳的任何照片,或使用自訂照片 URL 作為頭像,而不是使用 Gravatar。

外掛功能包括:

輕量且易於使用
從媒體庫或本地電腦上傳頭像影像
使用自訂路徑 URL 設置頭像影像
可選擇是否要顯示頭像影像
可透過簡碼 [user_profile_avatar] 顯示使用者個人資料頭像影像
透過簡碼 [user_profile_avatar_upload] 允許任何人(投稿者及訂閱者)上傳頭像影像
停用 Gravatar,使用自行設計的頭像影像
依適當性評分頭像影像為 G、PG、R、X
可設置預設頭像,當無任何頭像存在時,即會顯示預設頭像
對 SEO 友好,並適用於開發人員

要在後台從管理面板設置新的使用者個人資料頭像,請遵循以下步驟:

進入管理面板 -> 使用者 -> 所有使用者 -> 選擇您想編輯的使用者個人資料檔案
找到「WP User Profile Avatar」部分,您可以給定新的頭像 URL 路徑或使用媒體庫上傳頭像
更新使用者

要在前台顯示新的使用者個人資料頭像,請遵循以下方法之一:
1. 使用簡碼,根據需要傳遞參數
2. 使用 get_wpupa_url 函式,將以下代碼放置於您的佈景主題中的每個區域

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WP User Profile Avatar」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

P User Profile Avatar allows you to change the default WordPress avatar or User profile picture. You can use any photos uploaded into your Media Library or use a custom photo URL as an avatar instead of using Gravatar.
Plugin Features

Lightweight and easy to use.
Upload an avatar image from media library or local computer.
Set avatar image using custom path url.
Visibility option whether show avatar or not.
Display user profile avatar shortcode [user_profile_avatar].
Upload avatar shortcode [user_profile_avatar_upload].
Allow anyone (Contributors & Subscribers) can upload avatar.
Disable Gravatar and use own custom avatars.
You can rate avatar as G, PG, R, X based on your appropriateness.
Allow to set default avatar. Default Avatar Allows you to pick a default image when no avatar exists.
SEO & Developer Friendly.

Set new user profile avatar from admin panel.

Go Admin Dashboard -> Users -> All Users –> Select any user profile you would like to edit.

Find “WP User Profile Avatar” section, You can give new avatar url path or you can upload avatar using media library.

Update User.

Display new user profile avatar at frontend side.
To retrieve the user avatar/photo on the front-end use one of the following approach in your template page(s).
1. Using shortcode and pass parameters based on your need.
Shortcode: [user_profile_avatar]
Parameters: userid, size, align, link, target and caption.
userid : id of the user.
size: original,medium,large,thumbnail.
align: alignleft,aligncenter,alignright.
link: image, attachment, custom.
target: _blank, self,
caption: you can give any text value in between shortcode bracket and it will display below user avtar profile.

1.1 Display default avatar using visual editor.

You can use the following shortcode in any page and it will show default avatar of the plugin.

[user_profile_avatar]

1.2 Display avatar for the perticular user using visual editor.

if you want to show user profile for the user id 1.

[user_profile_avatar user_id="1"]

You can also set other parameters like size, align, link, target and caption in this shortcode.

Example:

[user_profile_avatar user_id="1" size="original" align="aligncenter" link="image" target="_blank"] Display Name [/user_profile_avatar]

1.3 if you want to assign dynamic user id in shortocde without using visual editor

id ?>" size="original" align="aligncenter" link="image" target="_blank"]'. $user->display_name .'[/user_profile_avatar]');

?>

2. Using the function get_wpupa_url.
You will need to place below code in each area of your theme where you wish to add and retrieve your theme’s custom avatar image.
2.1 At Author page
-------------------

$size]);

// display image on the page
echo ''. $authorname .'';

?>

2.2 Except Author page
----------------------

id, ['size' => $size]);

// display image on the page
echo ''. $user->display_name .'';

?>

You will need to place above code in each area of your theme where you wish to add and retrieve your theme’s custom avatar image.
Be a contributor
If you want to contribute, go to our WP User Profile Avatar GitHub Repository and see where you can help.
You can also add a new language via translate.wordpress.org. We’ve built a short guide explaining how to translate and localize the plugin.
Thanks to all of our contributors.
Feedback

We are open for your suggestions and feedback – Thank you for using or trying out one of our plugins!
Drop us a line.

More

Also please have look our other plugins or visit at WordPress.org plugin page.

Connect With US
To stay in touch and get latest update about WP User Profile Avatar’s further releases and features, you can connect with us via:

Facebook
Twitter
Google Plus
Linkedin
Pinterest
Youtube

延伸相關外掛

文章
Filter
Apply Filters
Mastodon