Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-09-20 12:03:29

trenc
Plugin Author
From: Cologne
Registered: 2008-02-27
Posts: 557
Website

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

yab_email_v0.7.txt

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)

Offline

#2 2009-09-20 12:45:11

trenc
Plugin Author
From: Cologne
Registered: 2008-02-27
Posts: 557
Website

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.

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: Kansas City
Registered: 2004-12-07
Posts: 364
Website

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.

Offline

#5 2009-09-20 15:05:32

trenc
Plugin Author
From: Cologne
Registered: 2008-02-27
Posts: 557
Website

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!

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: Kansas City
Registered: 2004-12-07
Posts: 364
Website

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

Example

Last edited by kevinpotts (2009-09-21 02:25:08)

Offline

#8 2009-09-21 13:35:20

trenc
Plugin Author
From: Cologne
Registered: 2008-02-27
Posts: 557
Website

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)

Offline

#9 2009-09-24 02:58:58

kevinpotts
Member
From: Kansas City
Registered: 2004-12-07
Posts: 364
Website

Re: yab_email (simple obfuscate/defuscate email adresses, jQuery based)

Perfect. That works wonderfully.

Offline

#10 2009-09-24 12:21:10

SuMu
Member
From: Germany - Wuppertal
Registered: 2008-03-06
Posts: 242
Website

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 />

viele Grüße
SuMu

Psychomuell + blogZicke

Offline

Board footer

Powered by FluxBB