[WordPress] 外掛分享: Attending Users

首頁外掛目錄 › Attending Users
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
10+
安裝啟用
★★★★★
5/5 分(1 則評價)
5170 天前
最後更新
問題解決
WordPress 2.7+ v1.0 上架:2012-02-13

內容簡介

作為網站擁有者,「Attending Users」外掛可以幫助您在文章底部添加到場名單。註冊用戶可以點擊清單上的提交按鈕以添加或刪除他們的名字。用戶名稱會作為作者頁面的鏈接,無論您如何設置固定連結。

使用方法:

安裝外掛後,您可以前往設置頁面,按需進行更改。在「設置」頁面中,您可以為自定義內容類型添加支持,添加新的標題以供選擇進行創建到場名單,或更改按鈕標籤(例如「提交」、「取消訂閱」等)。當您前往創建新文章或編輯現有文章時,會出現名為「到場名單」的新元框(例如標籤或分類的框)。從該元框中,您可以選擇清單的標題。當文章被保存/發布時,清單將添加到頁面底部。要刪除已創建的清單:為標題選擇空選項。任何已登錄的用戶都可以點擊清單上的「到場」按鈕。未註冊的用戶將看到一條消息,告訴他們如果要將其名稱添加到該列表中,則需要註冊。

更多需了解的事項:

如果用戶的名字和姓氏都添加到其個人資料中,那麼這兩個名字都會呈現在列表中。如果其中一個名字未填寫,則將使用登錄名。這樣做是為了保持列表中所有名稱的獨特性。
該外掛在刪除時會刪除其數據庫表格和選項。
該外掛將使用自定義數據庫前綴。
該外掛具有一個唯一名稱的類。這樣做可降低與其他外掛功能發生衝突的機會。
每個功能開頭都有一個注釋,解釋其所用目的。
代碼中定義了外掛版本,這樣可以更輕鬆地進行後續的更新。

不相容性:

如果啟用了「Like」外掛,則「Attending Users」外掛無法正常工作。不相容性的結果是將用戶名稱重複添加到列表中。目前尚未找到解決方案。您可以嘗試使用「Simple Social Buttons」外掛代替「Like」。如果發現任何其他造成問題的外掛,請通報。

作者模板中用戶點擊過的文章列表

在該外掛的末尾,我分享了一些代碼行(已注釋),這些代碼可以改進您的作者模板。此代碼將解鎖列出用戶點擊過的所有文章的功能。將代碼複製並粘貼到您的author.php文件的循環之前。

外掛標籤

開發者團隊

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

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

原文外掛簡介

As web site owner, Attending Users will help you in adding an attending list to the bottom of your posts. Registered users can click on the Submit button of the list in order to have their names added or removed. User names act as author page links, no matter how you have set your Permalinks.
Usage:
After you install the plugin, you can go to the settings page and change them as you like. In the Settings page
you can add support for your custom content types, add new titles to chose from when creating attending lists or change the labels of buttons (ex. Submit, unsubscribe). A new meta-box, called Attending List, will be present (meta-box is for example is the box for tags or categories) when you go to create a new post or edit existing one. From that meta-box you can chose a title for your list. When the post is saved/published the list will be added at the bottom of the page. To remove already created list: select the empty option for title. Any logged in user can click on the button for Attending at a list. Not registered users will see a message, telling them that they have to register if they want to have their names added to the list.
What should you know more?

If a user has both First and Last name added to his profile, than both of them will be presented on a list. If one of those names is not filled in, than the login name is used. The idea is to keep all names on the list unique.
The plugin removes it’s database tables and options when deleted.
The plugin will work with custom database prefix.
The plugin has a Class with unique name. By doing so, the chances of conflict with functions from other plugins has been reduced.
Every function starts with a comment explaining what it is supposed to do.
There is plugin version defined in the code, which will make it easier for further updates.

Incompatibility:
Attending Users doesn’t work as expected if Like plugin is active. The result of
incompatibility is in adding twice the user name to a list. No solution has been found yet. You can try using Simple Social
Buttons instead of Like. Please, report if you find any other plugins causing problems.
List of posts where user has clicked Attend on author’s template
At the end of the plugin, I’ve shared few lines of code (commented out) that can improve your author’s template. That code will unlock the feature of listing all posts where a user has clicked Attend. Copy the code and paste it right before the loop of your author.php file.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon