前言介紹
- 這款 WordPress 外掛「Spectacu.la Discussion」是 2009-12-16 上架。
- 目前有 80 個安裝啟用數。
- 上一次更新是 2020-10-09,距離現在已有 1667 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.0 以上版本才可以安裝。
- 有 2 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
tjnowell | spectacula | interconnectit |
外掛標籤
內容簡介
此 WordPress 外掛為 Spectacu.la Discussion。你是否發現你的佈景主題不支援分層評論?想要在你的網站上實現像 P2 那樣的即時評論功能嗎?此外掛可以取代你佈景主題中的評論代碼,使用全 Ajax 式的評論引擎。
此插件使用快取記憶表在數據庫中進行快速快取(不用擔心什麼煩人的權限設置),並可調整輪詢時間以適應各種服務器性能。
此外掛也適用於開發人員,這意味著你可以輕鬆地為你的佈景主題添加樣式,以便用戶實現你精心設計的外觀。默認情況下,有兩種樣式可用於大多數情況。詳細說明請見下文。
安裝後,此外掛將用其自己的全 Ajax 式評論模板替換你的主題評論模板。這允許提交和更新評論,不需刷新頁面,讓你的訪問者更像是在使用聊天室而不是傳統的評論系統。你還可以捲起回覆,使用設置頁面可以在任何深度觸發,或者使用該插件的管理員頁面中提供的其他或不使用樣式表,切換評論的即時更新和改變即時更新的刷新區間。
自版本 2 起,你可以通過將樣式複製到該插件的樣式文件夾中並在該表單頂部添加類似於“/* comment style: Stylesheet name */”的註釋,或將評論樣式表添加到你的主題或子主題中,以輕鬆添加新的樣式表。添加後,它們將顯示在管理員頁面上的下拉菜單中。
當然,此外掛也適用於多站點。
此外,也為開發人員提供了一些可用於攔截 JavaScript、傳遞給 JavaScript 的參數以及 CSS 文件位置的過濾器。
有幾個可用於攔截 JavaScript、傳遞給 JavaScript 的參數和 CSS 文件位置的過濾器:
1. spec_comment_css:將樣式表的 URL 傳遞給你的函數以替換為你自己的文件。
2. spec_comment_js:將操縱卷起和其他元素的 jQuery 文件的 URL 傳遞給你的函數。
3. spec_comment_local_js:將本地化字符串數組傳遞給 jQuery 代碼。
要替換 CSS 文件,你可以像以下這樣在 functions.php 中添加代碼,該代碼將指向當前佈景主題文件夾中的 comments.css 檔案,這將覆蓋用戶在管理員頁面上做出的任何選擇。
注意:我們已盡力使此外掛與各種佈景主題兼容,但我們無法涵蓋所有情況,因此某些主題可能需要你先對外掛或主題進行一些更改。最可能引起問題的原因是主題中的某些 CSS 與評論中的 CSS 衝突。還有其他各種可能引起問題的地方,例如如果主題不使用 comments_template(); 模板標籤來調用 comments.php,或者如果你的主題以非傳統的方式處理評論,例如將評論置於側欄或以其他方式調用,都有可能出現問題。
原文外掛簡介
Ever found your theme doesn’t support threaded comments? Would you like it to
be able to have P2 style live commenting on your site? Spectacu.la Discussion
is a plugin that replaces the commenting code in your theme with a fully Ajaxed
comments engine.
The plugin uses memory tables for fast caching within the database (no pesky
permission setting for you to worry about here) and adjustible polling times to
suit a wide range of server performance.
The plugin is also developer friendly, meaning that you can easily add styles to
your theme so that should a user implement the plugin your meticulous design can
be carried through. By default there are two styles that should work in most
cases. Read below for further instructions.
Once installed this plug-in will replace your theme’s comments template with its
own fully Ajax comment template. This allows both submission and update of
comments without a page refres letting your visitors use it more as a chat room
than the more traditional comment system. You can also roll up replied which can
be told to trigger at any depth you feel is best using the settings page. Also
available on the plug-ins admin page is the option to use another or no
stylesheet, toggle the live updating of comments and change the refresh period
for live update.
As of version 2 you can now easily add new stylesheets to the available list by
either copying them into the plug-in’s style folder with a comment at the top of
the sheet that looks like this /* comment style: Stylesheet name */ or adding a
commenting.css to your theme or child theme. Once added they will then be listed
in the dropdown menu that shows on the admin page.
The plugin is also, of course, Multisites compatible.
=The filters=
There are a few filters available for developers to intercept the javascript,
paramerers passed to the javascript and the CSS file location
spec_comment_css
Passes the URL of the stylesheet through to your function to replace
with your own file.
spec_comment_js
Passes the URL to the jQuery file that controls the roll up and a few
other elements.
spec_comment_local_js
Passes in an array of localisation strings that are passed to the
jQuery code.
To replace the CSS file you could add something like the following to your
functions.php that would point to a comments.css file in the folder of your
current theme. This will then override any choice made by the user on the admin
page.
Warning
Every effort has been made to make this work with as wide a variety of themes as
possible but we can’t cover every eventuality so some themes out there will
cause problems with this plugin without you doing something to either the
plug-in or the theme first. The most likely cause of problems is that some of
the CSS in the theme conflicts with the CSS in the comments. There are various
other areas where problems could arise, such as if the theme doesn’t call the
comments.php using the comments_template(); template tag or if your theme
deals with comments in an unusual way, such as placing them in a sidebar or
calling them in using Ajax that conflicts with our own. A missing or unusual
DOCTYPE could cause problems too, in fact there are lots of things that could
cause strangeness. However with most of the themes I’ve tested this with it has
worked without issue straight out of the gate and even if it doesn’t look right
you need only disable the plug-in to go back to how things were, so nothing’s
lost.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Spectacu.la Discussion」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
2.2 | 2.3 | 1.0.0 | 1.0.1 | 1.0.2 | 1.0.3 | 2.0.0 | 2.0.1 | 2.1.1 | 2.1.2 | 2.1.3 | 2.1.4 | 2.1.5 | 2.1.6 | 2.1.7 | 2.2.1 | 2.2.2 | 2.3.1 | 2.3.2 | trunk |
延伸相關外掛(你可能也想知道)
SearchWP Live Ajax Search 》此 WordPress 外掛不需要SearchWP,但如果有的話就會使用它。在 searchwp.com 可以找到完整文檔。, 歡迎在 GitHub 上貢獻您的力量!https://github.com/jchri...。
AJAX Thumbnail Rebuild 》AJAX Thumbnail Rebuild 可讓您重新建立網站上的所有縮圖。儘管已經有一些插件可供使用,但它們有一個共同點:所有縮圖都會在單一步驟中重新建立。如果您的網...。
WordPress File Upload 》這個外掛讓你或其他使用者可以從任何頁面、文章或側邊欄輕鬆、安全地上傳檔案到你的網站。, 只需要在任何 WordPress 頁面/文章中加入簡碼 [wordpress_file_up...。
WPC AJAX Add to Cart for WooCommerce 》WPC AJAX Add to Cart for WooCommerce 是一款高效的外掛,能幫助線上商店削減網站載入時間、改善用戶體驗並增加銷售額。此外掛允許用戶加入商品至購物車而不...。
Entry Views 》Entry Views 會記錄每篇文章/頁面(或任何文章類型)的瀏覽次數。 它附帶一個小工具,可顯示最受歡迎的文章,一個短代碼可顯示文章的瀏覽次數,以及方便的佈...。
Ajax Cart AutoUpdate for WooCommerce 》這是一個輕巧的外掛程式,在產品數量更改時自動更新購物車頁面和迷你購物車。同時移除了預設的「更新購物車」按鈕,並可以選擇關閉購物車頁面提示訊息。, 特...。
WooCommerce Ajax Cart Plugin 》WooCommerce AJAX Cart 是一款 WordPress 插件,可以更改 WooCommerte 購物車頁面的默認行為,讓買家在更改產品數量時即時查看總價格計算,無需手動點擊 "更...。
pageMash > Page Management 》使用此簡單的 AJAX 拖放管理介面,自訂頁面的排序,並管理父頁面結構,還有可選擇隱藏輸出頁面的選項。是一個快速重排頁面選單的好工具。, 查看範例頁面:htt...。
Load More Anything 》Commerce Products, Custom Div or Anything, , 這款插件能幫助您在 WordPress 網站上載入更多內容。您可以在博客文章、評論、頁面、類別、最新文章、側邊欄...。
Enable CORS 》外掛會收集網站 URL 與啟用的外掛列表,以提供支援。但不會分享給第三方。本外掛可幫助解決CORS問題,讓您輕鬆存取跨域資源。只需幾個簡單點擊,就能在網站上...。
Relevanssi Live Ajax Search 》Relevanssi Live Ajax Search 可以讓你的搜尋表單使用 ajax 即時搜尋。它不會淹沒你的設定,通常不需要做任何修改即可正常運作。如果你想自訂它,你可以完全...。
Infinite-Scroll 》無限捲動(Infinite scroll)也被稱為自動分頁、取消分頁、無限頁面等等。基本上,它是預先從下一個頁面取得內容,並直接將它添加到用戶當前的頁面。, 當用戶...。
Dave's WordPress Live Search 》Dave's WordPress Live Search 可在您的 WordPress 站點中加入「即時搜尋」功能。當訪客在 WordPress 站點的搜尋框中輸入字詞時,該外掛會持續查詢 WordPress...。
Filter & Grids 》使用 AJAX 篩選自定義分類 / 分類標籤來篩選文章或自定義文章類型,無需重新載入頁面,並支持不同的分頁類型。這款外掛允許解決顯示網站頁面上的文章的各種任...。
Ajaxify Comments – Ajax and Lazy Loading Comments 》尋找新的外掛程式維護者 👀, 請注意,此外掛程式已不再維護或支援,我們正在尋找新的外掛程式維護者(請參閱我們的公告 這裡)。 , 介紹, 預設情況下,當使用...。