前言介紹
- 這款 WordPress 外掛「re.place」是 2008-08-04 上架。
- 目前有 50 個安裝啟用數。
- 上一次更新是 2010-04-01,距離現在已有 5512 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 2.0.2 以上版本才可以安裝。
- 有 1 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
dor |
外掛標籤
page | post | filter | formatting | search and replace |
內容簡介
re.place 是一個模組,作為內容篩選器。「re.place」透過預先定義的正則表達式搜索並替換匹配的內容。
根據不同的「替換限制」,可以指定不同的替換,包括認證使用者和訪客、頁面和非頁面(參見「螢幕截圖」)。
例如,您可以實現跨連結模組的功能,同時添加插入「目標」參數、「rel = nofollow」、樣式信息等的可能性。
作為另一個例子,您可以在文章中插入自定義表情符號或類似內容。
作為另一個例子,您可以添加自定義標記到您的部落格中,如 Google(something) 會插入到www.google.com/search?q=something 的連結,TouTube (youtube_id) 將插入顯示該視頻的
您可以將 HTTP 鏈接替換為其他東西,對於訪客而言,保留身份驗證的用戶(請參見 https://wordpress.org/support/topic/297405)。
每個條目都可以有自定義的「順序」號碼,因此可以鏈接替換內容。
re.place 將條目存儲在數據庫中。
提供管理GUI以列出條目,添加、編輯或刪除條目。
請參見更新日誌以獲取一些更改跟踪。
簡要範例
作為搜索字段,使用 ‘_—‘(在 _ 的位置上使用空格),
作為替換 — ‘#160;—‘。這將在每個 em-dash 的前面插入不間斷的空格。
如果您太喜歡印刷的話,您甚至可以使用 ‘#160;—‘作為替換替換以插入更窄的不間斷的空格。您可以使句點之後的空間更寬…
搜索 ‘:-)‘,並替換為:
‘
'alt=":-)" title=":-) (nice smile -- http://www.kolobok.us/smiles/standart/smile3.gif)"' .
'style="vertical-align: middle;" />‘
搜尋模式:YouTube\(([a-zA-Z_0-9\-]*)\)
替換模式:
‘‘
這將允許您使用標記,如YouTube(TMCf7SNUb-Q)輕鬆插入Youtube視頻片段。
如何批量刪除連結 (在文章內停用 URL 連結的內容)? (https://wordpress.org/support/topic/288020)
搜尋模式:]*>([^<]*)<\/a>
替換模式:\1
這將「停用」所有文章中的所有鏈接 (例如將嘗試!替換為 嘗試!)。注意,您可以停用此re.place條目,並將其激活回去。
想輕鬆插入下拉字母嗎? 請在文章中使用‘
原文外掛簡介
re.place is a module wich acts as a content filter. It searches for pre-defined
regular expressions and replaces matches with pre-defined replacements.
It is possible to specify different replacements based on several
“replacement restrictions” — for authenticated users and guests,
for pages and non-pages currently (see “Screenshots”).
For example, you can implement the functionality of cross-linker module, while
adding the possibility to insert “target” parameter, “rel=nofollow”, style
information, etc.
As another example, you can insert in your posts custom smiles or the like.
As another example, you can add custom markup to you blog, like
Google(something) would insert link to www.google.com/search?q=something,
TouTube(youtube_id) will insert
As a search field, use ‘_—‘ (space in place of _!),
as a replace — ‘#160;—‘. This will insert non-breaking space
before every em-dash.
Mmm… You may wish even use ‘#160;—‘ as a replase to insert
narrower non-breaking space… If you love typography too much… And you
can make space after dot wider…
Search for ‘:-)‘ and replace with:
‘‘
Search pattern: YouTube\(([a-zA-Z_0-9\-]*)\)
Replace pattern:
‘‘
This will allow you to use markups like YouTube(TMCf7SNUb-Q) to insert
Youtube video fragments easily.
How to Mass Remove Link (mass deactivate URL Linked text inside posts)?
(https://wordpress.org/support/topic/288020)
Search pattern: ]*>([^
Replace pattern: \1
This will “deactivate” all links in all posts
(e.g. replace Try! with just Try!).
Note, you can activate them back, deactivating this re.place entry.
Want to insert drop caps easily?.. Use ‘
posts and replace it with \1‘. Use angle brackets,
and if you (accidentally) deactivate re.place, these “tags” won’t mess you page.
New — in v0.1.3 — [beta-] feature: you can specify different replace patterns
for authenticated users and “guests”. Sorry, i’ll update screenshots and doc
ASAP. 🙂
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「re.place」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
0.1.4 | 0.2.0 | 0.2.1 | trunk |
延伸相關外掛(你可能也想知道)
Advanced Editor Tools 》高級編輯工具(以前稱為 TinyMCE Advanced)引入了一個「經典段落」區塊,供區塊編輯器(Gutenberg)使用。, 如果您還沒有準備好切換到區塊編輯器,或者有插...。
Advanced Excerpt 》這個外掛可以改進 WordPress 原有的摘錄文章功能。, , 保留摘錄中的 HTML 標記,並可自選需要保留的標記, 按字元數或字數截斷摘錄, 只計算「真正的」文字(HT...。
Raw HTML 》is capability is only granted to administrators. If you’re not an admin, you will need to ask them to add it to your role., Raw HTML is not r...。
PS Disable Auto Formatting 》如果你受夠了 WordPress 自動格式化的習慣,可以試試這個外掛。, PS Disable Auto Formatting 停止 WordPress (wpautop) 的自動格式化,並修改由可視化編輯器...。
Toggle wpautop 》注意:此外掛不支援區塊編輯器,但當您在自訂文章類型中使用並搭配經典編輯器外掛時,應可繼續正常工作。, 在 WordPress 顯示文章內容之前,該內容會經過多個...。
TinyMCE Clear Float 》這個 WordPress 外掛會在 TinyMCE 編輯器中新增一個按鈕,可以清除浮動效果。。
Advanced Image Styles 》在 WordPress 的可視化編輯器中輕鬆調整圖片的邊界和邊框。。
footnotes 》footnotes 旨在成為顯示在頁面或文章上自動生成參考資料清單的全方位解決方案。該外掛內置了一組預設值,同時也允許您控制註腳的顯示方式。, footnotes 為您...。
Limit Modified Date 》警告:此外掛已不再受支援,可能無法與古騰堡區塊編輯器兼容。, 我建議改用 Change Last Modified Date 外掛。, 概要, 當對內容進行輕微更改時,避免修改日期...。
Aspose.Words – Import and Export word documents 》Aspose.Words 可讓網站管理員將 WordPress 的文章和頁面匯入和匯出為 Word DOCX、DOC 和 ODT 文件。它使用了非常強大的 Aspose.Words Cloud。, 可以將文檔匯...。
Advanced Rich Text Tools for Gutenberg 》這個外掛增加了以下功能:, , 在格式工具列中添加了代碼「code」、下標「sub」和上標「sup」按鈕。, 內嵌文字與背景顏色面板(目前在區塊側邊欄內尋找)。, ...。
WP-Syntax 》WP-Syntax 提供乾淨的語法突顯,使用 GeSHi,支援多種流行的語言,包括有或沒有行號的語法突顯,可以在從瀏覽器中複製程式碼片段時保持格式。, 它通過運行早...。
WP Super Edit 》重大更新即將到來!, 此外掛很快就會有一個重大更新。, WP Super Edit 的設計目的是掌控 WordPress 的所見即所得(WYSIWYG)視覺編輯器,並透過添加更多按鈕...。
WP Typograph Lite 》這個外掛WP Typograph Lite適用於大多數俄語博客,旨在根據俄語印刷標準自動格式化文本。它處理所有主要內容塊-標題、文章和頁面文本、評論。格式化是在頁面...。
Footnotes Made Easy 》Footnotes Made Easy 是一個簡單而強大的方法,可將註腳添加到您的文章和頁面中。, 主要功能包括:, , 透過雙括號簡單插入註腳, 合併相同註腳, 用於分頁文章...。