email-encoder-bundle
Last commit date
images
15 years ago
js
15 years ago
lang
15 years ago
methods
15 years ago
email-encoder-bundle.php
15 years ago
readme.txt
15 years ago
screenshot-1.png
15 years ago
screenshot-2.png
15 years ago
readme.txt
164 lines
| 1 | === Email Encoder Bundle === |
| 2 | Contributors: freelancephp |
| 3 | Tags: email, hide, mailto, spam, protection, spambots, encoder, encrypt, encode, obfuscate, antispam, spamming |
| 4 | Requires at least: 2.7.0 |
| 5 | Tested up to: 3.1.3 |
| 6 | Stable tag: 0.41 |
| 7 | |
| 8 | Protect email addresses on your site from spambots and being used for spamming. This plugin encodes all email adresses so spambots cannot read them. |
| 9 | |
| 10 | == Description == |
| 11 | |
| 12 | Protect email addresses on your site from spambots and being used for spamming. This plugin encodes all email adresses so spambots cannot read them. |
| 13 | |
| 14 | = Features = |
| 15 | * Protect plain emails and mailto links |
| 16 | * Scanning posts, widgets, comments and RSS feeds |
| 17 | * Choose one of the high-quality encoding methods |
| 18 | * Supports querystrings like 'info@myemail.com?subject=Plugin' |
| 19 | |
| 20 | * Tag available `[encode_email email="info@myemail.com" display="My Email"]` |
| 21 | * Template function available `<?php echo encode_email( 'info@myemail.com', 'My Email' ); ?>` |
| 22 | |
| 23 | = Extra = |
| 24 | * Put an Email Encoder Form on your site |
| 25 | * Developers can add their own methods |
| 26 | |
| 27 | Supports PHP4.3+ and up to latest WP version. |
| 28 | |
| 29 | == Installation == |
| 30 | |
| 31 | 1. Go to `Plugins` in the Admin menu |
| 32 | 1. Click on the button `Add new` |
| 33 | 1. Search for `Email Encode Bundle` and click 'Install Now' or click on the `upload` link to upload `email-encode-bundle.zip` |
| 34 | 1. Click on `Activate plugin` |
| 35 | |
| 36 | = Tags = |
| 37 | * `[encode_email email="..." display="..."]` Encode the given email, "display" is optional otherwise the email wil be used as display |
| 38 | * `[email_encoder_form]` Puts an encoder form in your post (check if the option is activated on this page) |
| 39 | |
| 40 | = Template functions = |
| 41 | * `<?php echo encode_email( 'info@myemail.com', 'My Email' ); ?>` Encode the given email, the second param is display and optional |
| 42 | * `<?php echo encode_email_filter( $content ); ?>` Filter the given content for emails to encode |
| 43 | |
| 44 | == Frequently Asked Questions == |
| 45 | |
| 46 | = Which encoding method should I use? = |
| 47 | |
| 48 | The `Html Encode` method uses the built-in function of WordPress and does not use any javascript. |
| 49 | Although JavaScript methods (like `JavaScript ASCII`) are probably better protection against spambots. |
| 50 | |
| 51 | = How to encode emails in ALL widgets? = |
| 52 | |
| 53 | If the option 'All text widgets' is activated, only all widgets will be filtered for encoding. |
| 54 | It's possible to encode emails in all widgets by using the Widget Logic plugin and activate the 'wodget_content' filter. |
| 55 | |
| 56 | = I want to make some adjustment in one of the encoding methods. What is the best way? = |
| 57 | |
| 58 | The best way is to make a copy of that method and make your adjustments in the copy. Give the new method a unique name. |
| 59 | Now you can keep updating this plugin and keep remaining the changes you have made. |
| 60 | |
| 61 | = My self-written method doesn't work after upgrading to v0.2. How to fix this? = |
| 62 | |
| 63 | The has been some changes to the structure of the encoding methods. |
| 64 | The first is the 3rd param `$encode_display` has been removed, because the display should always be encoded. |
| 65 | Second, the methodnames should contain the prefix `lim_email_`. |
| 66 | Optionally you can add a name and description to be showed in the admin panel, like: |
| 67 | `$lim_email_yourmethodname = array( 'name' => 'YourMethodName', 'description' => '....' );` |
| 68 | |
| 69 | [Do you have another question? Please ask me](http://www.freelancephp.net/contact/) |
| 70 | |
| 71 | == Screenshots == |
| 72 | |
| 73 | 1. Email Encoder Form on the Site |
| 74 | 1. Admin Options Page |
| 75 | |
| 76 | == Changelog == |
| 77 | |
| 78 | = 0.41 = |
| 79 | * Solved bug by improving regular expression for mailto links |
| 80 | * Changed script attribute `language` to `type` |
| 81 | * Script only loaded on options page (hopefully this solves the dashboard toggle problem some people are experiencing) |
| 82 | * Added support for widget_content filter of the Logic Widget plugin |
| 83 | |
| 84 | = 0.40 = |
| 85 | * Added option for setting CSS classes |
| 86 | * Improved RSS protection |
| 87 | * Removed Lim_Email_Encoder class (now all handled by the main class) |
| 88 | * Enabled setting checkbox for filtering posts |
| 89 | * Fixed PHP / WP notices |
| 90 | * Added param for encode methods: $obj |
| 91 | |
| 92 | = 0.32 = |
| 93 | * Fix IE bug |
| 94 | * Bug plain emails |
| 95 | * Optional "method" param for tag and template function, f.e. [encode_email email="test@domain.com" method="ascii"] |
| 96 | * Small adjustments |
| 97 | |
| 98 | = 0.31 = |
| 99 | * Fixed tiny bug (incorrect var-name $priority on line 100 of email-encoder-bundle.php) |
| 100 | |
| 101 | = 0.30 = |
| 102 | * Added protection for emails in RSS feeds |
| 103 | * Improved filtering tags [encode_email ... ] |
| 104 | * Improved ASCII and Escape method and added noscript message |
| 105 | * Solved an option bug (encode mailto links VS encode plain emails) |
| 106 | * Made some cosmetical adjustments on the options page |
| 107 | * Code refactoring |
| 108 | |
| 109 | = 0.22 = |
| 110 | * First decodes entities before encoding email |
| 111 | * Added more wp filters for encoding |
| 112 | |
| 113 | = 0.21 = |
| 114 | * Changed Encoder Form: HTML markup and JavaScript |
| 115 | * Made some minor adjustments and fixed little bugs |
| 116 | |
| 117 | = 0.20 = |
| 118 | * Implemented internalization (including translation for nl_NL) |
| 119 | * Improved user-interface of the Admin Settings Page and the Encoder Form |
| 120 | * Added template function: encode_email_filter() |
| 121 | * Kept and added only high-quality encoding methods |
| 122 | * Refactored the code and changed method- and var-names within the classes |
| 123 | * Removed 3rd param $encode_display out of the encoding methods, display should always be encoded |
| 124 | * Added prefix 'lim_email_' to the encoding methods |
| 125 | |
| 126 | = 0.12 = |
| 127 | * Nothing changed, but 0.11 had some errors because /methods directory was missing in the repository. |
| 128 | |
| 129 | = 0.11 = |
| 130 | * also possible to use encode tag in widgets by activating the "filter widget" option |
| 131 | |
| 132 | = 0.10 = |
| 133 | * Works with PHP4 and PHP5 |
| 134 | * Methods: default_encode, wp_antispambot, anti_email_spam, email_escape, hide_email |
| 135 | * Use the tags: `[email_encode email=".." display=".."]`, `[email_encoder_form]` |
| 136 | * Template function: `email_encode()` |
| 137 | |
| 138 | == Other Notes == |
| 139 | |
| 140 | = Credits = |
| 141 | * [Adam Hunter](http://blueberryware.net) for the encode method 'JavaScript Escape' which is taken from his plugin [Email Spam Protection](http://blueberryware.net/2008/09/14/email-spam-protection/) |
| 142 | * [Tyler Akins](http://rumkin.com) for the encode method 'JavaScript ASCII Mixer' |
| 143 | * Title icon on Admin Options Page was made by [Jack Cai](http://www.doublejdesign.co.uk/) |
| 144 | |
| 145 | == Upgrade Notice == |
| 146 | |
| 147 | = 0.41 = |
| 148 | * Solved some issues |
| 149 | |
| 150 | = 0.40 = |
| 151 | * Added option for setting CSS classes |
| 152 | * Improved RSS protection |
| 153 | * And more... |
| 154 | |
| 155 | = 0.32 = |
| 156 | * Fix IE bug |
| 157 | * Bug plain emails |
| 158 | * Optional "method" param for tag and template function |
| 159 | * Small adjustments |
| 160 | |
| 161 | = 0.30 = |
| 162 | * Some bug fixes |
| 163 | * New: email protection for RSS feeds |
| 164 |