We'll create fresh WordPress site with Base64 Encoder/Decoder installed. You have 20 minutes to test the plugin after that site we'll be deleted.
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 ‘<!–base64–>’, ‘<!–/base64–>’, ‘<base64>’ and ‘</base64>’ 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.
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.