[WordPress] 外掛分享: DMC User List

首頁外掛目錄 › DMC User List
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
10+
安裝啟用
尚無評分
2447 天前
最後更新
問題解決
v2.2 上架:2015-09-30

內容簡介

在文章和頁面中創建使用者列表。

我是一位理髮店男聲合唱團的會員和網站管理員。在為網站工作時,我發現每位成員都成為網站的使用者是有意義的,因為他們可以貢獻內容,控制訪問私人頁面以及限制評論,同時還允許成員評論。這使得網站可以擁有會員列表,而不需要重複輸入數據。

使用插件“Extra User Details”測試添加用戶元數據,但大多數類似的插件應該也可以使用。
還測試了“Basic User Avatars”以支持列表中的用戶頭像。我打算在未來的版本中支持其他用戶頭像插件。

特點包括:
* 可升級安全的自定義
* 從Excel電子表格中導入用戶
* 將用戶導出到Excel電子表格中

自定義

該插件幾乎完全由PHP對象構建。除了dmc_user_list.php之外的所有對象都可以繼承以進行自定義。
有一些規則:

自定義對象必須在custom目錄中。
文件名必須是_custom.php,例如gd_admin_custom.php
類必須命名為_custom並繼承,例如 class gd_core_custom inherits gd_core {。
它應該包含調用父構造函數的構造函數:
function __construct() {
parent::__construct();
}

在管理員端添加功能
‘class dmc_user_admin_custom extends dmc_user_admin {

/**
* 類構造函數。
*/
function __construct() {
parent::__construct();
}

/**
* 創建管理員菜單
*/
function admin_menu () {
parent::admin_menu();
add_submenu_page(‘dmc-user’,” ,”, ‘activate_plugins’, ”, array(&$this, ”));
}

/**
* 用戶頁面
*/
function () {
// code goes here
}

}

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.2) 或搜尋安裝

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

原文外掛簡介

Create user lists in posts and pages.
I am a member and webmaster for a Barbershop Chorus. While working on the site,
I found it desireable for each member to be users of the website so that they could
contribute content, to contrl access to private pages and torestrict commenting while
still allowing member commenting. This allows the web site to have a membership list without
the redundant entry of data.
Tested with the plugin ‘Extra User Details’ to add user metadata but most similar plugins should work.
Also tested with ‘Basic User Avatars’ for user avatar support in the listing. I intend to support other
user avatar plugins in future releases.
Features include:
* Upgrade Safe customization
* Importing users from a Excel Spreadsheet
* Exporting users to a Excel Spreadsheet
Customization
This plugin is built almost completely with PHP Objects. All of the obhects except dmc_user_list.php can be inherited for customiztion.
There are some rules for this:

The customized object must be in the custom directory.
The filename must be _custom.php, i.e. gd_admin_custom.php
The class must be named _custom and inherit , i.e class gd_core_custom inherits gd_core {.
It should include a constructor that calls the parent constructor:
function __construct() {
parent::__construct();
}

Ading functionality on the admin side
‘class dmc_user_admin_custom extends dmc_user_admin {
/**
* class constructpr.
*/
function __construct() {
parent::__construct();
}
/**
* Create Admin menus
*/
function admin_menu () {
parent::admin_menu();
add_submenu_page(‘dmc-user’,” ,”, ‘activate_plugins’, ”, array(&$this, ”));
}
/**
* Page
*/
function () {
// code goes here
}
}

延伸相關外掛

文章
Filter
Apply Filters
Mastodon