[WordPress] 外掛分享: RDP inGroups+

前言介紹

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

外掛協作開發者

rpayne7264 |

外掛標籤

LinkedIn | rdp groups+ | rdp ingroups+ | rdp linkedin | linkedin groups |

內容簡介

4>br />

在2015年10月14日,LinkedIn把所有的小組轉換成私有小組,這使得這個外掛的小組顯示功能無法實現。
然而,LinkedIn登入功能仍然正常運作。伴隨的登入和註冊鈎子提供了在自定義編碼中使用用戶數據的絕佳靈活性。

此外掛已被棄用。請改用RDP Linkedin Login 。

RDP inGroups +提供以下功能:

登錄按鈕短码 - 在登出時顯示登录LinkedIn按鈕
成員計數短码,能夠指定連結URL
訪問者註冊WordPress安裝的能力
使用非ces和客戶端IP地址的已登录會話安全性
具有輕鬆集成和自定義的鉤子和過濾器的OOP
添加已註冊用戶將自動關注的公司ID列表的能力

關於緩存的警告

如果網站啟用了緩存,此外掛將無法運作。

贊助商

此外掛是由Laboratory Informatics Institute, Inc. 慷慨贊助。

用法
LinkedIn小組討論

RDP inGroups + 是使用短码[rdp-ingroups-group]來實現的。它接受以下引數:

id:(必填)小組ID

例子:

[rdp-ingroups-group id = 2069898]

這將向網站訪問者顯示指定小組的討論。如果用戶未登錄,短码將顯示登录LinkedIn按鈕。

LinkedIn小組成員計數

使用[rdp-ingroups-member-count]短码來顯示小組的成員計數。它接受以下引數:

id:(必填)小組ID
link:把成員計數連結到的URL
new:使鏈接在新標籤中打開
prepend:添加到成員計數前面的文本
append:添加到成員數後面的文本

例子:

[rdp-ingroups-member-count id = 209217]

[rdp-ingroups-member-count id = 209217 link = http://example.com]

[rdp-ingroups-member-count id = 209217 link = http://example.com new]

[rdp-ingroups-member-count id = 209217 link = http://example.com new prepend =& #8217;Join our’追加=’TODAY!

LinkedIn登录按鈕

使用[rdp-ingroups-login]短码来显示登录LinkedIn按鈕。

包含的外部脚本

jQuery Cookie Plugin v1.4.1,受MIT許可證的保護
jQuery.PositionCalculator v1.1.2,受MIT許可證的保護
Query Object v2.1.8,受WTFPL許可證的保護
URL v1.8.6,受MIT許可證的保護

鉤子參考:
rdp_lig_before_user_login

Param: 表示LinkedIn Person的JSON對象,包含firstName,lastName,emailAddress,pictureUrl,publicProfileUrl和id
在任何用戶通過LinkedIn登錄網站之前觸發。

rdp_lig_after_insert_user

Param: WP用戶對象
在註冊新用戶後觸發。(啟用註冊新用戶?必須啟用)

rdp_lig_after_registered_user_login

Param: WP用戶對象
在已註冊用戶成功登錄網站時觸發。(啟用註冊新用戶?必須啟用)

rdp_lig_registered_user_login_fail

原文外掛簡介

On October 14, 2015, LinkedIn converted all groups to private,
which has made the groups display functionality of this plug-in
impossible. However, the Sign in with Linked functionality still
works perfectly fine. The associated sign-in and registration hooks
offer great flexibility for utilizing user data in custom coding.
This plugin is deprecated. Please use RDP Linkedin Login.
RDP inGroups+ provides:

Login button shortcode – shows a Sign in with LinkedIn button when logged out
Member Count shortcode, with the ability to designate a link URL
Ability to register a visitor with the WordPress installaton
Logged-in session security using nonces and client IP address
OOP with hooks and filters for easy integration and customization
Ability to add a list of company IDs that a registered user will automatically follow

Warning About Caching
This plug-in will not work if caching is enabled on a web site.
Sponsor
This plug-in brought to you through the generous funding of Laboratory Informatics Institute, Inc.
Usage
LinkedIn Group Discussions
RDP inGroups+ is implemented using the shortcode [rdp-ingroups-group]. It accepts the following arguments:

id: (required) a group ID

Examples:
[rdp-ingroups-group id=2069898]
This will display discussions of the designated group to site visitors. The shortcode will display a Sign in with LinkedIn button if the user is not logged in.
LinkedIn Group Member Count
For a display of a group’s member count, use the [rdp-ingroups-member-count] shortcode. It accepts the following arguments:

id: (required) a group ID
link: a url to make the member count a hyperlink
new: make the link open in a new tab
prepend: text to add to the front of the member count
append: text to add to the end of the member count

Examples:
[rdp-ingroups-member-count id=209217]
[rdp-ingroups-member-count id=209217 link=http://example.com]
[rdp-ingroups-member-count id=209217 link=http://example.com new]
[rdp-ingroups-member-count id=209217 link=http://example.com new prepend=’Join our’ append=’TODAY!’]
LinkedIn Sign In Button
To display a Sign in with LinkedIn button, use the [rdp-ingroups-login] shortcode.
External Scripts Included

jQuery Cookie Plugin v1.4.1 under MIT License
jQuery.PositionCalculator v1.1.2 under MIT License
Query Object v2.1.8 under WTFPL License
URL v1.8.6 under MIT License

Hook Reference:
rdp_lig_before_user_login

Param: JSON object representing a LinkedIn Person containing firstName, lastName, emailAddress, pictureUrl, publicProfileUrl, and id
Fires before any user is logged into the site via LinkedIn.

rdp_lig_after_insert_user

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

rdp_lig_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_lig_registered_user_login_fail

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

rdp_lig_after_user_login

Param: RDP_LIG_DATAPASS object
Fires after any user is logged into the site via LinkedIn.

rdp_lig_after_scripts_styles

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

Filter Reference:
rdp_lig_render_header_top

Param 1: String containing opening div and wrapper HTML for header section
Param 2: String containing status – ‘true’ if user is logged in, ‘false’ otherwise
Return: opening HTML for header section

rdp_lig_render_header

Param 1: String containing the body HTML for header section
Param 2: String containing status – ‘true’ if user is logged in, ‘false’ otherwise
Return: body HTML for header section

rdp_lig_render_header_bottom

Param 1: String containing closing wrapper and div HTML for header section
Param 2: String containing status – ‘true’ if user is logged in, ‘false’ otherwise
Return: closing HTML for header section

rdp_lig_render_main_container_header

Param 1: String containing HTML for main container header section
Param 2: String containing status – ‘true’ if user is logged in, ‘false’ otherwise
Return: HTML for main container header section
Default behavior is to render the group profile logo and name

rdp_lig_render_member_count

Param 1: String containing HTML for member count
Param 2: Array containing shortcode attributes
Return: HTML for member count.

rdp_lig_render_paging

Param 1: String containing HTML for paging section
Param 2: String containing status – ‘true’ if user is logged in, ‘false’ otherwise
Param 3: String containing the location – ‘top’ of main container section, ‘bottom’ of main container section
Return: HTML for paging section. For infinity paging, location ‘top’ is not rendered.

rdp_lig_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_lig_before_insert_user

Param 1: Boolean indicating if user exists based on result of WordPress username_exists() function, using supplied email address
Param 2: JSON object representing a LinkedIn Person containing firstName, lastName, emailAddress, pictureUrl, publicProfileUrl, and id
Return: Boolean indicating if user exists

rdp_lig_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: String containing email address of user
Return: Boolean indicating if user is logged in

rdp_lig_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

Javascript Function Reference:
rdp_lig_login_onClose

Param: redirect URL
Fires upon successful login, just before the login popup 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.
When the popup login window executes its close script, the cookie is read, and the parent window is redirected to the appropriate URL.
Code in 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(){
$j('#rdp-jb-main').on( "click", '.title.rdp_jb_must_sign_in' , function(event){
event.preventDefault();
var redirectURL = $j(this).attr('href');
jQuery.cookie('rdp_lig_login_redirect', redirectURL, { path: '/' })
});
}//rdp_sign_in_onLoad

各版本下載點

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

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


0.5.0 | 0.5.1 | 0.5.2 | 0.6.0 | 0.6.1 | 0.6.2 | 0.6.3 | 0.7.0 | 1.0.0 | 1.0.1 | 1.0.2 | 1.0.3 | 1.0.4 | 1.0.5 | 1.0.6 | trunk |

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

暫無相關外掛推薦。

文章
Filter
Apply Filters
Mastodon