[WordPress] 外掛分享: ACF Onyx Poll

首頁外掛目錄 › ACF Onyx Poll
WordPress 外掛 ACF Onyx Poll 的封面圖片
90+
安裝啟用
★★★★★
5/5 分(4 則評價)
279 天前
最後更新
問題解決
WordPress 4.7+ PHP 7.0+ v1.2.0 上架:2020-05-25

內容簡介

這個外掛需要安裝 ADVANCED CUSTOM FIELD PRO 。

這個投票外掛是基於常規 WordPress 和 acf(進階自訂欄位)功能,運用 WP REST API 和 Javascript 方法。

ACF Onyx Poll 的主要目標是完全免費、輕量級和簡單。沒有花哨、色彩繽紛和雜亂的選項或捐贈畫面。

該外掛是基於 Twitter 投票卡片風格設計。

特點

✔ 帶有即時預覽的 Gutemberg 插件塊
✔ 使用簡碼包含投票(省略 ID 取得最新投票) [onyx-poll id=XX class="left|right|full"]
✔ 一鍵投票
✔ 與快取外掛相容
✔ 一頁多個投票
✔ 支援圖片
✔ 側邊欄原生小工具
✔ 多種風格選項 [onyx-poll class="twitter|standard"]
✔ 在彈出視窗中顯示投票
✔ 投票過期後在小工具中顯示投票結果
✔ 在結果區域中突顯所選選項
✔ 限制設備或時間的投票次數
✔ 設置投票啟用/過期日程表
✔ 顯示百分比、數字或兩者的投票結果
✔ 顯示/隱藏結果
✔ 使用 CSS 變數自定義 CSS
✔ 禁用所有外掛 CSS 並使用您自己的 CSS
✔ 在 WordPress 資料表管理區域自定義欄位
✔ 支援翻譯

注意事項

該外掛不支援 Internet Explorer 瀏覽器。該外掛的目標之一是不使用 jQuery,保持 js/css 輕量級。

ACF Onyx Poll 會透過 php 註冊欄位,以便使用 WordPress 翻譯函數取得欄位標籤,因此您無法在 ACF 自訂欄位設置中查看/編輯欄位。

若要啟用更好/更快的 CRON,您需要手動設置主機 cronjob,取得 https://domain.tld/wp-json/onyx/polls/cron 端點,或在 wp-config 中停用 WP-Cron define('DISABLE_WP_CRON', true);,並在主機/伺服器中手動創建 cron。

選項 1:設定每小時運行 cron: 0 * * * * wget -q -O - https://domain.tld/wp-json/onyx/polls/cron > /dev/null 2>&1

選項 2:若已停用預設 WP-Cron: 0 * * * * wget -q -O - https://domain.com/wp-cron.php?doing_wp_cron > /dev/null 2>&1

外掛標籤

開發者團隊

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

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

原文外掛簡介

This plugin requires ADVANCED CUSTOM FIELD PRO installed.
Plugin for polls based on regular WordPress and acf (advanced custom fields) functionalities using WP REST API and Javascript methods.
The main goal of ACF Onyx Poll is to be totally free, lightweight and simple. No fancy, colorful and polluted options or donate screens.
This plugin is based on Twitter poll cards style.
Features
✔ Gutemberg Block with live preview
✔ Include poll with a shortcode (ommit the ID to get the latest poll) [onyx-poll id=XX class="left|right|full"]
✔ One click to vote
✔ Works with cache plugins
✔ Multiple polls per page
✔ Support for images
✔ Native widget for sidebar
✔ Multiple style options [onyx-poll class="twitter|standard"]
✔ Show poll in a modal
✔ Show poll results on widget after expired
✔ Highlight choosed choice in results area
✔ Limit vote by device or time
✔ Poll activation/expiration schedule
✔ Results in percentage, numbers or both
✔ Show/Hide results
✔ Customize css with css variables
✔ Disable all plugin CSS and use your own
✔ Custom columns on WordPress data table admin area
✔ Translations support
Observations

This plugin does not support Internet Explorer Browser. One of the goals of this plugin is to be js/css lightweight and jQuery free.

ACF Onyx Poll register fields via php to be able to use WordPress translation functions for field labels. So you won’t be able to view/edit the fields inside ACF Custom Fields Settings.

To enable a better/faster CRON you need to manually set your host cronjob to get https://domain.tld/wp-json/onyx/polls/cron endpoint or disable WP-Cron define('DISABLE_WP_CRON', true); inside your wp-config and manually create the cron in your host/server

Option 1: To run every hour set the cron: 0 * * * * wget -q -O - https://domain.tld/wp-json/onyx/polls/cron > /dev/null 2>&1

Option 2: if you disable the default WP-Cron: 0 * * * * wget -q -O - https://domain.com/wp-cron.php?doing_wp_cron > /dev/null 2>&1

延伸相關外掛

文章
Filter
Apply Filters
Mastodon