Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
yab_email (simple obfuscate/defuscate email adresses, jQuery based)
yab_email is a tiny plugin for obfuscating and defuscating email adresses to prevent bots from harvesting email adresses.
This plugin will use jQuery and is based on the jQuery plugin Email Defuscator.
Download
Plugin requirements
- Textpattern 4.x
- jQuery 1.3.x
Plugin help
For Plugin help, install the plugin and see plugin help.
Changelog
- 2009-09-20 v0.1
- initial release
- 2009-09-20 v0.2
- bugfix: releated DOM load
- 2009-09-20 v0.3
- feature: added class attribute
- bugfix: style in plugin help
- 2009-09-21 v0.4
- bugfix: fixed XHTML validation errors
- feature: added new attribute link
- 2012-09-04 v0.5
- bugfix: withespaces in href are now correctly escaped
- bugfix: removed redundant type attributes in script tag
- bugfix: plugin help rewritten and extended (plugin help guidelines)
- 2012-09-24 v0.6
- bugfix: does now work with jQuery >= v1.8.0
- 2017-02-10 v0.7
- bugfix: TXP 4.6-ready
Last edited by trenc (2017-02-10 12:11:12)
Digital nomad, sailing the world on a sailboat: 32fthome.com
Offline
Re: yab_email (simple obfuscate/defuscate email adresses, jQuery based)
Sorry, I’ve updated the plugin to v02. v0.1 has a bug calling the javascript on DOM load.
Digital nomad, sailing the world on a sailboat: 32fthome.com
Offline
#3 2009-09-20 13:01:13
- candyman
- Member
- From: Italy
- Registered: 2006-08-08
- Posts: 684
Re: yab_email (simple obfuscate/defuscate email adresses, jQuery based)
I’ve found a little cosmetic problem looking at the plugin instructions: it doesn’t appear correctly formatted like all the others plugins.
Offline
#4 2009-09-20 13:06:37
- kevinpotts
- Member
- From: Ghost Coast
- Registered: 2004-12-07
- Posts: 370
Re: yab_email (simple obfuscate/defuscate email adresses, jQuery based)
Brilliant plugin. However, can you please add one thing — the ability to change the class name of the e-mail anchor tag? Right now it’s hardcoded as yab-email-link
, which is fine for most applications, but I am using this as part of a microformats vcard and the class should be just email
. Oddly, when I changed it in the source, the plugin stopped working.
Kevin
(graphicpush)
Offline
Re: yab_email (simple obfuscate/defuscate email adresses, jQuery based)
Hi candyman,
hope you mean the bugfixed styling problem in v0.3.
Kevin, try v0.3!
Digital nomad, sailing the world on a sailboat: 32fthome.com
Offline
#6 2009-09-20 17:42:52
- candyman
- Member
- From: Italy
- Registered: 2006-08-08
- Posts: 684
Re: yab_email (simple obfuscate/defuscate email adresses, jQuery based)
No, the problem is still present vith v0.3.
I use a custom version of the Admin theme by David DeSandro with TXP 4.0.8. In this version there’s a blank line between the main menu (Content, Presentation and Admin) and his child menu (Diasgnostic, Preferences, Users…).
I know that it’s an old version of TXP and that the admin theme is not standard but this strange behaviour appears with yab_email instructions only.
Hope it helps.
Last edited by candyman (2009-09-20 17:44:13)
Offline
#7 2009-09-21 02:00:51
- kevinpotts
- Member
- From: Ghost Coast
- Registered: 2004-12-07
- Posts: 370
Re: yab_email (simple obfuscate/defuscate email adresses, jQuery based)
It seems there is a parsing bug with the new version when a class is added. When I do not specify a class, it works as expected.
With class added: name@example.com”>test
Without class: test
Last edited by kevinpotts (2009-09-21 02:25:08)
Kevin
(graphicpush)
Offline
Re: yab_email (simple obfuscate/defuscate email adresses, jQuery based)
I’ve updated again.
v0.4 fixed the xhtml vadiation errors and introduced a new attribute.
Kevin,
the plugin works here as expected. If I see it correctly you had wraptaged it with a <span class="email">
. There is no need for.
Just do, without a »email class wraptag«:
<txp:yab_email email="name@example.com" class="email" text="test" />
Last edited by trenc (2009-09-21 13:35:43)
Digital nomad, sailing the world on a sailboat: 32fthome.com
Offline
#9 2009-09-24 02:58:58
- kevinpotts
- Member
- From: Ghost Coast
- Registered: 2004-12-07
- Posts: 370
Re: yab_email (simple obfuscate/defuscate email adresses, jQuery based)
Perfect. That works wonderfully.
Kevin
(graphicpush)
Offline
Re: yab_email (simple obfuscate/defuscate email adresses, jQuery based)
Hi trenc
I guess I don`t understand the implementation of this plugin. :-(,
I use this, but it works not as expected ;-), I use this two snippets
<txp:yab_email email="test@example.com" text="Schreib mir" />
<txp:yab_email_javascript />
Offline
Re: yab_email (simple obfuscate/defuscate email adresses, jQuery based)
Hi Susanne,
be sure a
<script type="text/javascript" src="<txp:site_url />textpattern/jquery.js"></script>
is placed between your <head>
and </head>
in your site.
For an simple obfuscating place only
<txp:yab_email email="test@example.com" text="Schreib mir" />
somwhere in your site. And, of course, the plugin has to be enabled. :)
The <txp:yab_email_javascript />
is only needed for specific cases.
Digital nomad, sailing the world on a sailboat: 32fthome.com
Offline
Re: yab_email (simple obfuscate/defuscate email adresses, jQuery based)
Hallo Trenc
thats it :-), thanks for your help!
<script type=“text/javascript” src=”<txp:site_url />textpattern/jquery.js”></script>
Offline