[WordPress] 外掛分享: Base64 Encoder/Decoder

首頁外掛目錄 › Base64 Encoder/Decoder
WordPress 外掛 Base64 Encoder/Decoder 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
10+
安裝啟用
★★★★★
5/5 分(2 則評價)
3871 天前
最後更新
問題解決
WordPress 2.0.5+ v0.9.2 上架:2009-02-04

內容簡介

Base64 Encoder/Decoder 是一個 WordPress 外掛,它可以讓你將文章的部分內容加密為 base64 編碼。編碼後的文字看起來像是難以理解的文本,但是當你按下「解碼」按鈕時,它將使用 AJAX 進行內聯替換,變得易讀。這樣對於搜尋引擎機器人來說是看不見的。

它使用 ‘[base64]’ 和 ‘[/base64]’ 標籤來分隔需要進行加密的文章部分。這些標籤在瀏覽器上看不見,也就是說,如果你決定停用此外掛,這些標籤包圍的內容將會像一般的文字一樣顯示在文章中。

你可以在 HTML 編輯模式下手動輸入這些標籤,或是使用快速標籤按鈕來加入。目前此外掛還無法提供可視化編輯模式下的快速標籤按鈕,但我預計在下一個版本中會新增此功能。

先前的版本使用了 ‘<!–base64–>’、‘<!–/base64–>’、‘<base64>’ 和 ‘</base64>’ 等標籤。你不需要修改已有的文章,因為新的標籤格式可以與舊格式相容。但如果你想要更新資料庫,只要點擊一下就可以輕鬆地將舊標籤格式替換成新標籤格式。

鳴謝

大部分的程式碼都不是我所創造的,而是借鏡於比我更聰明的人,所以我必須要感謝他們。

在我還不了解如何創建 WordPress 外掛的時候,感謝 aNieto2k 的 AntiTroll 外掛 提供的部分程式碼。

感謝 Random Snippets 提供的 JavaScript 替換腳本,如果沒有這個腳本的話,外掛將無法進行內聯替換。

感謝 Lorelle's Blog 提供有關在 WordPress 資料庫中進行搜尋和替換的相關資訊。

感謝 MyDigitalLife 提供了如何識別 postID 的相關資訊,這幫助我解決了與多個文章上不同的 base64 區塊重複顯示的錯誤。

感謝 Daniel Lorch 提供了如何在外掛中使用 AJAX 的示範,這對我來說是一個很好的示範。

感謝 Automatic Timezone 外掛 提供部分腳本,以在已安裝的外掛頁面上添加「設定」的連結。

感謝 Famfamfam 提供用於管理頁面的關鍵圖示。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.9.2) 或搜尋安裝

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

原文外掛簡介

Base64 Encoder/Decoder is a WordPress Plugin that enables you to encode parts of your post in base64. The encoded text looks like unreadable text, but when you press the “Decode” button it gets readable with inline replacement using AJAX, so it’s invisible to search robots.
It uses ‘[base64]’ and ‘[/base64]’ tags for opening and closing the parts of post you need to encode. The tags are browser invisible, this is, if you decide to deactivate the plugin, the content enclosed by this tags will be shown like normal text in the post.
You can add the tags typing them or using the quicktag button in HTML editing mode. For now I don’t provide a quicktag button in Visual editing mode, but I expect to add that in next version.
Previous versions of this plugin used ‘’, ‘’, ‘’ and ‘’ tags. You don’t have to modify that posts, the new tag format has retro-compatibility. But if you wish you can update the database replacing the old tag format to the new tag format with just one click.
Credits
Most parts of the code are not my creation, they were borrowed from people smarter than me, so I must thank to them.
Thanks to aNieto2k’s AntiTroll Plugin for part of the code, because that was my first source when I knew nothing about creating a WordPress Plugin.
Thanks to Random Snippets for the Javascript replacement script. Without it the plugin will be unable to replace text inline.
Thanks to Lorelle’s Blog for the info on how to search and replace inside a WordPress database.
Thanks to MyDigitalLife for the info on how to identify the postID, helping me to solve the bug related to multiple base64 blocks showing on different posts at same time.
Thanks to Daniel Lorch for the info on how to use AJAX inside the plugin, it was a clarificating example.
Thanks to Automatic Timezone Plugin for parts of script that adds “Settings” link to Admin Page in Installed Plugins Page.
Thanks to Famfamfam for the key icon used for the Admin page.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon