Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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
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
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
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
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
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
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
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
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
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