[wordpress插件] Base64 Encoder/DecoderBase64编码器/解码器

wordpress 插件 文章 2020-02-29 13:30 596 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

Base64 Encoder/Decoder is a WordPress Plugin that enables you to encode parts of your post in base64.

Base64编码器/解码器是一个WordPress插件,可让您在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.

编码后的文本看起来像不可读的文本,但是当您按下“解码”按钮时,使用AJAX进行内联替换就可以读取文本,因此对于搜索机器人来说是不可见的。

It uses ‘[base64]’ and ‘[/base64]’ tags for opening and closing the parts of post you need to encode.

它使用“ [base64]”和“ [/ base64]”标签来打开和关闭您需要编码的帖子部分。

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.

您可以添加标签以在HTML编辑模式下键入它们或使用quicktag按钮。

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.

此插件的先前版本使用了“ <!– base64 –>”,“ <!– / base64 –>”,“ ”和“ ”标签。

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,

感谢 aNieto2k的AntiTroll插件,该代码的一部分,

because that was my first source when I knew nothing about creating a WordPress Plugin.

因为当我对创建WordPress插件一无所知时,这是我的第一个消息来源。

Thanks to

感谢

>Random Snippets for the Javascript replacement script.

> Random代码段(用于替换Javascript脚本)。

Without it the plugin will be unable to replace text inline.

没有它,该插件将无法替换嵌入式文本。

Thanks to Lorelle's Blog<

感谢 Lorelle的博客<

/a> for the info on how to search and replace inside a WordPress database.

/ a>获取有关如何在WordPress数据库中进行搜索和替换的信息。

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.

“ rel =“ nofollow”> MyDigitalLife 获取有关如何识别postID的信息,可帮助我解决与同时显示在不同帖子上的多个base64块相关的错误。

Thanks to Daniel Lorch for the info on how to use AJAX inside the plugin, it

感谢 Daniel Lorch 获取有关如何在插件内使用AJAX的信息,它

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.

感谢 Famfamfam ,以获取用于“管理”页面的钥匙图标。

p>

>

安装步骤

    1. Install 'base64-encoderdecoder.zip' to '/wp-content/plugins/' directory right from WordPress Plugin Directory or unzip 'base64-encoderdecoder.zip' and upload the entire 'base64-encoderdecoder' folder to '/wp

      直接从WordPress插件目录中将“ base64-encoderdecoder.zip”安装到“ / wp-content / plugins /”目录,或将“ base64-encoderdecoder.zip”解压缩,然后将整个“ base64-encoderdecoder”文件夹上传到“ / wp”

      -content/plugins/' directory.

      -content / plugins /'目录。

    2. Activate the plugin through the ‘Plugins’ menu in WordPress.

      通过WordPress中的“插件”菜单激活插件。

    3. Enclose the text you need to encrypt on your post inside ‘[base64]’ and ‘[/base64]’ tags using Visual or HTML Editor.

      使用Visual或HTML编辑器在“ [base64]”和“ [/ base64]”标签内将需要加密的文本括在标签中。

下载地址
https://downloads.wordpress.org/plugin/base64-encoderdecoder.0.9.2.zip
-EOF-

AI助手支持GPT4.0