[WordPress] 外掛分享: RDP Linkedin Login

WordPress 外掛 RDP Linkedin Login 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「RDP Linkedin Login」是 2016-02-09 上架。 目前已經下架不再更新,不建議安裝使用。
  • 目前有 90 個安裝啟用數。
  • 上一次更新是 2019-09-27,距離現在已有 2048 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.0 以上版本才可以安裝。
  • 有 3 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

rpayne7264 |

外掛標籤

rdp ll | LinkedIn | rdp linkedin | linkedin login | rdp linkedin login |

內容簡介

RDP Linkedin 登入外掛提供以下功能:

登入按鈕的捷徑代碼 – 在登出時顯示 LinkedIn 登入按鈕
訪客註冊到 WordPress 安裝的能力
能夠將新註冊的訪客信息推送到同樣使用 RDP LinkedIn 登入外掛的另一個網站
顯示網站會員數量的功能
顯示同樣使用 RDP LinkedIn 登入外掛的另一個網站的會員數量
使用 nonce 和客戶端 IP 地址的已登入會話安全功能
針對方便整合和自定義的鉤子和過濾器的 OOP
使用自定義 JavaScript 函數設置登錄後重定向 URL 的能力
定義 rdp_ll_login_onClose 函數來登錄後運行自定義 JavaScript 代碼的能力

支援

在 WordPress.org 的支援論壇發布不會通知我新問題。因此,請使用我的網站上的聯繫表格發送支援請求。

贊助

這個外掛是通過Laboratory Informatics Institute, Inc.的慷慨資助帶給您的。

用法

使用 [rdp-linkedin-login] 捷徑代碼在小工具或頁面中顯示 LinkedIn 登入按鈕。

要顯示會員數量,請將 [rdp-linkedin-login-member-count] 捷徑代碼添加到小工具中。

同樣,還可以顯示同樣使用 RDP LinkedIn 登入外掛的另一個網站的會員數量。只需使用可選的 url 屬性,通過將 rdpllaction/member_count 添加到目標域。

例如:

[rdp-linkedin-login-member-count url=http://www.example.com/rdpllaction/member_count]

包含的外部腳本

利用 MIT 許可證的 JS Cookie v2.0.4
利用 MIT 許可證的 jQuery.PositionCalculator v1.1.2

鉤子參考:
rdp_ll_before_user_login

參數 1:表示 LinkedIn 人員的 JSON 對象,包括名字、姓氏、電子郵件地址、圖片 URL、ID、公共檔案 URL、位置、標題和摘要
參數 2:RDP_LL_DATAPASS 對象
在嘗試註冊或登入用戶之前啟用。

rdp_ll_after_insert_user

參數 1:WP_User 對象
參數 2:表示 LinkedIn 人員的 JSON 對象,包括名字、姓氏、電子郵件地址、圖片 URL、ID、公共檔案 URL、位置、標題和摘要
在用戶在網站上註冊後啟用。(啟用新用戶註冊?必須啟用)

rdp_ll_after_user_push

參數 1:WP_User 對象
參數 2:表示 LinkedIn 人員的 JSON 對象,包括名字、姓氏、電子郵件地址、圖片 URL、ID、公共檔案 URL、位置、標題和摘要
參數 3:包括 HTTP 標頭或 WP_Error(如果請求失敗)在內的結果數組
在將新用戶的 LinkedIn 信息推送到另一個網站後啟用。 (啟用新用戶註冊?必須啟用)

rdp_ll_after_registered_user_login

參數:WP_User 對象
在註冊用戶登錄網站後啟用。 (啟用新用戶註冊?必須啟用)

rdp_ll_registered_user_login_fail

參數:表示 LinkedIn 人員的 JSON 對象,包括名字、姓氏、電子郵件地址、圖片 URL、ID、公共檔案 URL、位置、標題和摘要
在試圖將註冊用戶登錄到網站失敗後啟用。(啟用新用戶註冊?必須啟用)

原文外掛簡介

RDP Linkedin Login provides:

Login button shortcode – shows a Sign in with LinkedIn button when logged out
Ability to register a visitor with the WordPress installation
Ability to push newly-registered visitor info to another site that is also using RDP Linkedin Login
Ability to display member count for a site
Ability to display the member count from another site that is also using RDP LinkedIn Login
Logged-in session security using nonces and client IP address
OOP with hooks and filters for easy integration and customization
Ability to set an after-login redirect url, by using a custom JavaScript function
Ability to run custom JavaScript code after login, by defining a rdp_ll_login_onClose function

Support
Posting to the WordPress.org Support Forum does not send me notifications of new issues. Therefore, please send support requests using the contact form on my web site.
Sponsor
This plug-in brought to you through the generous funding of Laboratory Informatics Institute, Inc.
Usage
To display a Sign in with LinkedIn button, use the [rdp-linkedin-login] shortcode in a widget or page.
To display the member count, add the [rdp-linkedin-login-member-count] shortcode to a widget.
It is also possible to display the member count from another site that is also using the RDP LinkedIn Login plugin. Simply use the optional url attribute, by adding rdpllaction/member_count to the target domain.
example:
[rdp-linkedin-login-member-count url=http://www.example.com/rdpllaction/member_count]
External Scripts Included

JS Cookie v2.0.4 under MIT License
jQuery.PositionCalculator v1.1.2 under MIT License

Hook Reference:
rdp_ll_before_user_login

Param 1: JSON object representing a LinkedIn Person containing firstName, lastName, emailAddress, pictureUrl, id, public-profile-url, location, headline and summary
Param 2: RDP_LL_DATAPASS object
Fires before attempting to register or log-in a user.

rdp_ll_after_insert_user

Param 1: WP_User object
Param 2: JSON object representing a LinkedIn Person containing firstName, lastName, emailAddress, pictureUrl, id, public-profile-url, location, headline and summary
Fires after a new user is registered with the site. (Register New Users? must be enabled)

rdp_ll_after_user_push

Param 1: WP User Object
Param 2: JSON object representing a LinkedIn Person containing firstName, lastName, emailAddress, pictureUrl, id, public-profile-url, location, headline and summary
Param 3: Array of results including HTTP headers or WP_Error if the request failed
Fires after a new user’s LinkedIn information is pushed to another site. (Register New Users? must be enabled)

rdp_ll_after_registered_user_login

Param: WP User Object
Fires after a registered user is logged into the site. (Register New Users? must be enabled)

rdp_ll_registered_user_login_fail

Param: JSON object representing a LinkedIn Person containing firstName, lastName, emailAddress, pictureUrl, id, public-profile-url, location, headline and summary
Fires after a failed attempt to log registered user into the site. (Register New Users? must be enabled)

rdp_ll_after_user_login

Param 1: JSON object representing a LinkedIn Person containing firstName, lastName, emailAddress, pictureUrl, id, public-profile-url, location, headline and summary
Param 2: RDP_LL_DATAPASS object
Fires after attempting to register or log-in a user.

rdp_ll_after_scripts_styles

Param: none
Fires after enqueuing plug-in-specific scripts and styles

Filter Reference:
rdp_ll_render_login

Param 1: String containing log-in HTML for the [rdp-ingroups-login] shortcode
Param 2: String containing status – ‘true’ if user is logged in, ‘false’ otherwise
Return: log-in HTML for the [rdp-ingroups-login] shortcode

rdp_ll_before_insert_user

Param 1: WP_User->ID or false if the user ID does not exist in the usermeta table, based on search for LinkedIn user token id and meta_key = _rdp_ll_id
Param 2: JSON object representing a LinkedIn Person containing firstName, lastName, emailAddress, pictureUrl, id, public-profile-url, location, headline and summary
Return: WP_User->ID or false, if the user does not already exist in WordPress

rdp_ll_before_registered_user_login

Param 1: Boolean indicating if user is logged in based on result of WordPress is_user_logged_in() function
Param 2: JSON object representing a LinkedIn Person containing firstName, lastName, emailAddress, pictureUrl, id, public-profile-url, location, headline and summary
Param 3: WP_User->ID or false, if the user does not already exist in WordPress
Return: Boolean indicating if user is logged in

rdp_ll_custom_menu_items

Param 1: Array to hold custom link data
Param 2: String containing status – ‘true’ if user is logged in, ‘false’ otherwise
Return: Array of links, where the link text is the key and the link URL is the value

rdp_ll_actions_submenu

Param: String containing HTML of popup actions menu, which appears after clicking on the picture or name displayed by the plugin, after a person is logged in
Return: String containing HTML of actions menu

rdp_ll_app_scope_filter

Param: String containing default LinkedIn application scopes
Return: String containing LinkedIn application scopes, each separated by a space

rdp_ll_app_profile_parameters_filter

Param: String containing default LinkedIn application profile parameters
Return: String containing LinkedIn application profile parameters

Javascript Function Reference:
rdp_ll_login_onClose

Param: redirect URL
Fires upon successful log-in, just before the log-in pop-up window closes.

Redirect Code Example
In this example, all links with class rdp_jb_must_sign_in are assigned an event listener that sets a cookie, with the cookie value derived from the link’s href attribute. The cookie name should always be rdp_ll_login_redirect.
When the pop-up log-in window executes its close script, the function rdp_ll_login_onClose is called, and it reloads the page to show that the visitor is logged in. In the document.ready() function, the cookie is read, then deleted, and the parent window is redirected to the appropriate URL.
Example Code of Custom Sign-In JavaScript File
var $j=jQuery.noConflict();
// Use jQuery via $j(...)

$j(document).ready(rdp_sign_in_onLoad);

function rdp_sign_in_onLoad(){
var redirectPath = Cookies.get('rdp_ll_login_redirect');
var loggedIn = $j('body').hasClass('logged-in');
if(loggedIn && redirectPath && redirectPath != 'undefined'){
Cookies.remove('rdp_ll_login_redirect', { path: '/' });
window.location.href = redirectPath;
}

$j('#rdp-jb-main').on( "click", '.title.rdp_jb_must_sign_in' , function(event){
event.preventDefault();
var redirectURL = $j(this).attr('href');
var date = new Date();
date.setTime(date.getTime()+(30*1000));
Cookies.set('rdp_ll_login_redirect', redirectURL, {expires: date, path: '/' })
});
}//rdp_sign_in_onLoad

function rdp_ll_login_onClose(redirect_url){
window.location.reload();
}//rdp_ll_login_onClose

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「RDP Linkedin Login」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.0 | 1.1.0 | 1.2.0 | 1.3.0 | 1.4.0 | 1.4.1 | 1.4.2 | 1.5.0 | 1.5.1 | 1.5.2 | 1.5.3 | 1.5.4 | 1.5.5 | 1.5.6 | 1.5.7 | 1.5.8 | 1.5.9 | 1.6.0 | 1.6.1 | 1.6.2 | 1.6.3 | 1.6.4 | 1.7.0 | trunk | 1.5.10 |

延伸相關外掛(你可能也想知道)

  • Social Login 》社群登入和註冊 WordPress 外掛, 此專業且免費的 WordPress 外掛,可讓您的訪客使用 40 多種社交網路帳號(例如 Facebook、Twitter、Google、LinkedIn、PayPa...。
  • UsersWP – Social Login 》這是 UsersWP 的社群登入外掛。UsersWP使用者可以透過本外掛使用 Facebook、Google、Twitter、LinkedIn、Instagram、Yahoo、WordPress、vkontakte 等社群網站...。
  • Heateor Social Login WordPress 》gin providers, users do not need to register anywhere to use the social login feature provided by this plugin., Multiple Social Networks: This plug...。
  • Happy Social Login 》總結:, 使用Happy Social Login 外掛讓使用者可以透過其喜愛的社交媒體帳戶,如Facebook、Google、LinkedIn、Github等,在WordPress網站上進行註冊和登錄。,...。
  • OAuth Social Login – Single Sign On – SSO 》WordPress OAuth Social Login 外掛可讓使用者使用 Discord、Facebook、Google、LinkedIn、Amazon、Yahoo 和 vkontakte 等應用程式進行 WordPress 單一登入,...。

文章
Filter
Apply Filters
Mastodon