內容簡介
當你不得不第 N 次在部落格文章加入相同的開頭句子或圖片時,是不是最近感到相當困擾呢?或者你一直希望能有一種容易地插入 YouTube 影片到你的網站的方式?
別再絕望了,現在有了「searchReplace」外掛,雖然可能有其他相似的外掛,但這個是特別的:它是我的!🙂
此外掛可以讓你在留言和文章中搜尋並取代特定的文字,並不會更改你的資料庫內容。
例如,你可以將字串「[topicimage]」新增至 searchReplace 中,以此取代你的預設圖片標籤。
當你更改預設圖片時,你只需要將 searchReplace 項目改變就能在整個網站中套用!
外掛也支援正規表達式,這使得可能進行網址取代或其他更進階的搜尋和取代命令。
應用:實現 BBcode (預配置),取代污言穢語,輕鬆插入 YouTube 影片 (預配置),等等。
它具有以下功能:
輕鬆添加、編輯和刪除規則
簡單的搜尋和取代選項
基於正規表達式的搜尋和取代選項
將規則應用於留言、文章或同時套用於兩者
預裝有 BBcode (減去表情符號和表格) http://en.wikipedia.org/wiki/BBCode
外掛標籤
開發者團隊
原文外掛簡介
Ever annoyed when you had to add that same opening sentence or image to a blogpost for the gazzilionth time? Or always wanted to have an easy way to insert youtube video’s to your site?
Despair no more, now there is searchReplace. Well, there probably are a number of similar plugins, but this one is different: it is mine. 🙂
The plugin makes it possible to search for certain texts and replace them, in both comments and posts. It does not alter your database contents.
For example, you could add the string “[topicimage]” to searchReplace and replace that with your default image tag.
When changing your default image you only have to change the searchReplace item to change it site wide!
The plugin supports regular expressions as well, which makes it possible to do url replacements, or other more advanced search and replace commands.
Uses: Implementing BBcode (pre configured), replace foul language, easy YouTube insertion (pre configured) etc.
It has the following features:
Easily add, edit and delete rules
simple search and replace option
regular expression search and replace option
apply rules to comments, posts or both at once
Pre installed with BBcode (minus smilies and tables) http://en.wikipedia.org/wiki/BBCode
