Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2011-08-29 16:06:33

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

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

Anyone having issue with this and jQuery 1.6.1? Just upgraded a few sites, and yab_email doesn’t seem to deobfuscate anymore.

Offline

#14 2011-08-29 23:06:46

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,909
Website

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

I never even knew this plugin existed. I’ve been using Enkoder to do the same thing, but this would be more flexible, clearly.

Concerned about status, however, per Renobird.

Offline

#15 2011-08-30 04:13:08

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

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

Since I was sure about the status I rolled my own:

Construct links like so

<a title="user.name" href="/contact" class="obf">Link Text</a>

Add this bit to your head

$(document).ready(function() {
	$(".obf").each(function() {
	var address = $(this).attr("title");
	var domain = mydomain;
	$(this).attr("href", "mailto:" + address + "@" + domain + ".com");
	});
});

It’s a little different than other solutions I’ve seen, but I didn’t want to use the typical [at] replacement stuff, I feel like all the bots have caught on to that method.
The nice thing about this is that if JS is disabled, then the initial /contact href takes over and directs them to a contact form. :)

Last edited by renobird (2011-08-30 04:13:42)

Offline

#16 2011-08-30 09:49:53

trenc
Plugin Author
From: ⛵️, currently Göteborg, SE
Registered: 2008-02-27
Posts: 574
Website GitHub

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

Hi renobird,

Anyone having issue with this and jQuery 1.6.1? Just upgraded a few sites, and yab_email doesn’t seem to deobfuscate anymore.

I have tested it. It works with jQuery 1.6.1 and the newest 1.6.2.

Last edited by trenc (2011-08-30 10:01:50)


Digital nomad, sailing the world on a sailboat: 32fthome.com

Offline

#17 2011-11-09 20:07:38

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

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

Hi when i use this plugin it takes out the @ sign in the email link.
example:

<txp:yab_email  email="info@example.ie" text="email" />

generates this link:

at <infoexample.ie>

I’m using jquery-1.6.1.min.js so should be good….
am i doing something wrong?

Last edited by kvnmcwebn (2011-11-09 20:08:26)


its a bad hen that wont scratch itself.
photogallery

Offline

#18 2011-11-10 11:32:00

trenc
Plugin Author
From: ⛵️, currently Göteborg, SE
Registered: 2008-02-27
Posts: 574
Website GitHub

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

Hi Kevin,

that’s weird! I can’t reproduce this.

<txp:yab_email  email="info@example.ie" text="email" />

works as expected, with jQuery 1.6.1 too.

If you open your Firebug console, do you see any javascipt warning or error message by reloading the site?

Last edited by trenc (2011-11-10 11:32:17)


Digital nomad, sailing the world on a sailboat: 32fthome.com

Offline

#19 2011-11-10 13:47:00

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

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

hi trecn,
I don’t have firebug on my old laptop here but will try when i get home. thanks for replying.
one thing i can tell you is that if i hover over the email link it shows up like this in the bottom status bar.

info (at) example.ie

ok talk later. thanks.
-Kevin


its a bad hen that wont scratch itself.
photogallery

Offline

#20 2011-11-11 10:31:39

trenc
Plugin Author
From: ⛵️, currently Göteborg, SE
Registered: 2008-02-27
Posts: 574
Website GitHub

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

Hi Kevin,


one thing i can tell you is that if i hover over the email link it shows up like this in the bottom status bar.

info (at) example.ie

You have set_js set to 0 in the plugin config, I guess. Set it to 1 or try this:

<txp:yab_email email=“info@example.ie” text=“email” set_js=“1” />


Digital nomad, sailing the world on a sailboat: 32fthome.com

Offline

#21 2011-11-12 15:21:14

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

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

hi trenc.
js was set to 1 in the config.
I tried both suggestions this is what i get.

“infoemailaddress.ie�

Last edited by kvnmcwebn (2011-11-12 15:26:03)


its a bad hen that wont scratch itself.
photogallery

Offline

#22 2011-11-16 13:32:15

trenc
Plugin Author
From: ⛵️, currently Göteborg, SE
Registered: 2008-02-27
Posts: 574
Website GitHub

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

Hi Kevin,

hm, sorry but I’ve no idea.

But maybe it’s a character encoding issue. The output you posted looks like an uft-8 encoded text displayed as iso-8859-1.


Digital nomad, sailing the world on a sailboat: 32fthome.com

Offline

#23 2012-07-09 15:10:31

totoff
Member
From: Cologne, Germany
Registered: 2011-04-04
Posts: 145
Website

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

hello forum,

i’m also having trouble to get this plugin to work. this input:

<txp:yab_email email="test@test.com" text="test@test.com"  />

leads to this link:

mailto:test( at )test.com

i’m getting this console errors:

Error thrown at line 131, column 0 in http://test.com/imprint:
    jQuery.fn.defuscate = function(settings){settings = jQuery.extend({link: true},settings);
Uncaught exception: ReferenceError: Undefined variable: $
Error thrown at line 136, column 54 in http://test.com/imprint:
    $('.yab-email-link').defuscate({link:1});

any help?

thanks, christoph

Offline

#24 2012-07-10 00:05:00

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

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

I’m just using this

<txp:yab_email email='email@address.com' />

which outputs on the page ‘email@address.com’ but shows javascript in the source code….

I have no idea about the javascript error, sorry.

Offline

Board footer

Powered by FluxBB