Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#25 2012-07-10 08:14:53

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

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

got it working. i called the jquery.js at the bottom of the page. that was the problem.

Offline

#26 2012-09-04 13:54:56

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)

I updated the plugin a little bit:

yab_email_v0.5.txt

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)

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

Offline

#27 2012-09-24 13:23:12

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)

Another small bugfix version

yab_email_v0.6.txt

2012-09-24 v0.6

  • bugfix: works now with jQuery 1.8.0 and greater

Last edited by trenc (2012-09-24 13:23:52)


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

Offline

#28 2013-11-14 10:20:30

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 816
Website

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

My knowledge of JS, etc. is little so I don’t know if the plug-in really works … !?

Live > stichtingkarkas.com … the contact info is at the bottom.

TXP (tag in article) >

p(contact). E: <txp:yab_email email="info@stichtingkarkas.nl" text="info@stichtingkarkas.nl" set_js="0" />

HTML (at bottom page) >

<!-- calling jQuery the right way > https://github.com/h5bp/html5-boilerplate/blob/master/index.html -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/jquery-1.9.1.min.js"><\/script>')</script>
<!-- only if jQuery include is at the bottom of HTML > http://goo.gl/I7nzpz -->
<txp:yab_email_javascript />

Results in (HTML rendered) >

<p class="contact">E: <a class="yab-email-link" href="mailto:info(%20at%20)stichtingkarkas.nl">info@stichtingkarkas.nl</a></p>

Is this all?

Offline

#29 2013-11-14 11:47:46

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 Jop,

My knowledge of JS, etc. is little so I don’t know if the plug-in really works … !?

It is working. But I would leave the text attribute blank:

<txp:yab_email email="info@stichtingkarkas.nl" set_js="0" />

So the displayed text is the obfuscated mail address too, otherwise the exact text phrase will be shown, which is in your case the non-obfuscated mail address.


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

Offline

#30 2013-11-14 11:58:49

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 816
Website

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

Thanks Trenc … but why can’t I see an obfuscated email address? The answer is (of course) because the script defuscating the address also … isn’t it?

Offline

Board footer

Powered by FluxBB