[WordPress] 外掛分享: Democracy Poll

首頁外掛目錄 › Democracy Poll
7,000+
安裝啟用
★★★★
4.6/5 分(86 則評價)
224 天前
最後更新
問題解決
WordPress 5.8+ PHP 7.4+ v6.1.1 上架:2015-02-01

內容簡介

這個外掛提供了一個方便且聰明的系統,可以創建具有不同功能的各種投票,例如:

單一和多重投票。可自定義。
訪客可以添加新答案。可自定義。
可以設置投票的截止日期。
未註冊用戶無法投票。可自定義。
不同的投票設計。
等等。請查看更新日誌。

Democracy Poll 與所有緩存外掛(例如 WP Total Cache、WP Super Cache、WordFence、Quick Cache 等)兼容。
我們關注易用的管理功能和快速的性能,因此,我們提供:

管理員快速編輯按鈕,位於投票正上方
工具欄中的外掛程式菜單
內聯CSS和JS
僅在需要時連接CSS和JS
等等。請查看更新日誌

更多信息

Democracy Poll 是一個重生的插件,和原始作者 Andrew Sutherland 命名相同。即使自 2006 年以來一直沒有更新,但添加用戶自己的答案的偉大想法仍然存在。因此,這裡提供全新的代碼,只保留了原始 DP 的想法和優秀名稱。

它可以做什麼?

添加新投票;
與緩存插件一起使用:wp total cache、wp super cache 等等;
如果需要,用戶可以添加自己的答案(民主黨),可以停用這個選項;
多重投票:用戶可以選擇多個答案,而不是單個答案(可以按需停用);
在之前指定的日期關閉投票;
當某些投票可用時,顯示隨機投票;
對尚未註冊的用戶關閉投票;
方便地編輯選定的投票:管理員的“編輯”鍵;
編輯投票數量;
啟用重新投票選項後,用戶可以更改自己的意見;
通過IP、Cookie、WP配置文件來記住用戶。投票歷史記錄可以清除;
將新投票插入任何文章:[democracy](短代碼)。視覺編輯器中有一個鍵可用於此功能;
小部件(可以禁用);
方便的投票編輯:外掛程式面板已集成到 WordPress 工具欄中(可以禁用);
可以禁用CSS或JS文件,也可以將其嵌入HTML代碼;
在投票下方顯示註釋:一個簡短的帶有任何註釋的文本,關於投票或任何相關的事情;
更改投票設計(CSS主題);

多站點:從版本5.2.4開始支援
需要PHP 5.3或更高版本。

待辦事項

添加:添加自己的主題的選項(包括帶有主題的CSS文件的鏈接)?
添加:在指定日期啟用投票?
添加:在用戶投票後向用戶顯示文本(例如“您的投票非常重要”等)的選項
添加:限制投票以強制參與者選擇必須選擇3個項目等等,才能進行投票。
添加:作為文件連接CSS和JS的選項!
https://wordpress.org/support/topic/log-data-ip-restriction/#post-9083794
添加:對於每個投票,都可以調整高度。今天,我想在側邊欄之外再添加一個投票,包括篇幅。

外掛標籤

開發者團隊

⬇ 下載最新版 (v6.1.1) 或搜尋安裝

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

原文外掛簡介

This plugin provides an intuitive and powerful system to create polls with features like:

Single and multiple voting options (customizable)
Allowing visitors to add custom answers (optional)
Setting an end date for polls
Restricting voting to registered users (optional)
Multiple poll designs
And more — see the changelog for details

Democracy Poll is compatible with major cache plugins, including WP Total Cache, WP Super Cache, Wordfence, Quick Cache, and others.
Designed for ease of use and performance, it offers:

A “Quick Edit” button for admins, shown directly above a poll
A plugin menu in the admin toolbar
Inline inclusion of CSS & JS
Conditional loading of CSS & JS (only when needed)
And more — check the changelog for details

More Info
Democracy Poll is a modern version of the original, well-regarded plugin by the same name. Although Andrew Sutherland’s version hadn’t been updated since 2006, it introduced the innovative idea of allowing users to add their own answers. This version retains the core idea and name, but features fully rewritten code.
Key features:

Create new polls
Cache plugin compatibility (e.g. WP Total Cache, WP Super Cache)
Option to allow users to add their own answers
Multi-voting support
Poll auto-closing after a specified end date
Display random polls
Restrict voting to registered users (optional)
“Edit” button for admins for quick poll management
Edit vote counts
Option to let users change their votes
Voter tracking via IP, cookies, or WP user ID (optional vote clearing)
Embed polls in posts via [democracy] shortcode (visual editor button available)
Widget support (optional)
Admin bar menu for easy access (optional)
Option to disable or inline CSS/JS
Add custom notes under polls
Customize designs via CSS themes

Multisite support is available from version 5.2.4.
Usage
Widget

Go to WP Admin → Appearance → Widgets and add the Democracy Poll widget
Place it in a sidebar
Configure settings
Done

Template Code
In your theme file (e.g. sidebar.php), add:

To show a specific poll: (replace 3 with your poll ID)
To embed a specific poll in a post, use [democracy id="2"] shortcode.
To embed a random poll in a post, use [democracy] shortcode.

Poll Archive
To show the poll archive:

延伸相關外掛

文章
Filter
Apply Filters
Mastodon