[WordPress] 外掛分享: Redactor

前言介紹

  • 這款 WordPress 外掛「Redactor」是 2010-08-08 上架。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2012-06-04,距離現在已有 4717 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.0.0 以上版本才可以安裝。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

dcoda |

外掛標籤

post | redact | secret | sports | film ending |

內容簡介

此外掛僅支援使用 PHP 5.2 或以上版本。

當引用文章時,可選擇模糊某些特定單字。
這可協助您保持原始內容的完整性,同時維護隱私權或家庭評級。
還可以隱藏明確的內容,或透露劇透信息,例如體育比賽結果或電影結局,但允許用戶選擇是否查看。

Redactor 具有兩種形式的審查:

1. 隱藏和顯示

將短語用 [censor][/censor] 或 [spoiler][/spoiler] bbCode 標記包裹起來,將封鎖短語,但讓用戶有隱藏短語和用滑鼠懸停顯示短語的選擇。

2. 自動預定

在“設置-Redactor”管理頁面中,您可以建立要審查的短語列表。有三種可能的審查方法:

1. 蔽掉

這將從文章中刪除該短語,並用黑條替換其內的每個單詞。

2. 審查 / 隱藏劇情

這將使用詞語 Censor 或 Spoiler 遮蔽短語,但給讀者揭示被審查的內容。

3. 代替

根據使用情況,這是最細微的審查方式。被審查的詞語將被換成您想要的內容。

Redactor會按照整個單詞來匹配需要替換的短語,不會出現匹配內部詞語,使文章不合理的情況。
此外,為了增強安全性,Redactor會忽略文章中的HTML或bbCode標記,僅替換其主內容,並不會與其屬性存在衝突。
為了避免添加的短語重疊,您可以優先排列隱藏的設定。

由於每次請求文章時,Redactor都會過濾內容,因此建議您考慮安裝頁面緩存插件。

如果您遇到問題並且無法在常見問題解答中找到答案,您可以向WordPress支援論壇發表支援問題。

如果您發現Redactor很有用,請在wordpress.org上為其評分,並請考慮捐款來幫助我們繼續維護Redactor。查看詳情

Redactor由dcoda編寫。

您可以在此查看我們的其他插件。

如果您需要自定義的插件,請聯繫我們此處,也許我們可以為您編寫插件。

版權所有

版權所有 © DCoda有限公司,2007年-,保留所有權利

此代碼已在GPL許可證第2版下發布,可在此處找到:

http://www.gnu.org/licenses/gpl.txt

由於此外掛可以安裝在許多不同的配置上,因此我們僅將其測試限制在PHP 5.2+ Linux平台上,並在版本發布時運行最新版本的WordPress,但它是經過“ 無任何形式的保證”的發布;
甚至包括“適銷性或特定用途的適合性”雙方正确的保证也是不存在的。

原文外掛簡介

This plugin is only supported on PHP 5.2 or greater.

Black out certain words that may appear in a post especially when quoting.
Aids you to keep the original content intact but maintain privacy or a family rating.
Also allows the ability to hide explicit content, or spoiler information, such as sports results
and film endings but allow the user to choose if they wish to view it.
Redactor gives you two forms of censorship:
1. Hide and Reveal
By wrapping a phrase in either [censor][/censor] or [spoiler][/spoiler] bbCode tags you will block out the phrase, but give the user the option to reveal the hidden phrase by moving over the phase with the mouse.
2. Automatic Predefined
On the Settings->Redactor admin page you can build a list of phrases you wish to censor. There are three types of possible censorship:
1. Blackout
This will remove the phrase from the post replacing it with black bars representing each word in the phrase.
2. Censor / Spoiler
This will obscure the phrase with either the word Censor or Spoiler but it gives the reader the opportunity to reveal the censored phrase.
3. Swap With
The most subtle form of censorship depending on how you use it. The censored phrase will simply be swapped for your desired replacement.
Redactor will match the phrases to be replaced to whole words and you will not have the problem of an accidental match inside a word, making nonsense of the post.
Also for added safety Redactor will ignore any HTML or BBCode tags in the post, replacing only their inner content and not messing around with their attributes.
To allow for the possibility that you may add phrases that overlap, you can prioritise the phases.
As Redactor filters the content each time the post is requested, It is recommended that you consider installing a page caching plugin.

If you are having trouble and cannot find the answers in the FAQ you can post your support questions to the WordPress Support Forum
If you find Redactor useful please rate it at wordpress.org and please consider making a donation to help us set aside more hours to maintain Redactor
Redactor is written by dcoda
You can check out our other plugins here
If you require a custom plugin you can contact us here and maybe we could write it for you.
Copyright
(c) Copyright DCoda Limited, 2007 -, All Rights Reserved.
This code is released under the GPL license version 2, available here:
http://www.gnu.org/licenses/gpl.txt
There are so many possibly configurations of installation the plugin can be installed on we limit testing to a PHP 5.2+ Linux platform running the latest version of WordPress at the time of release but it is released WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Redactor」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


trunk | 1.4.40 | 3.1.43 | 3.1.45 | 3.1.46 | 3.1.47 | 3.1.48f |

延伸相關外掛(你可能也想知道)

暫無相關外掛推薦。

文章
Filter
Mastodon