Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-04-11 12:07:33

GeertAki
Plugin Author
From: Belgium
Registered: 2006-03-03
Posts: 24
Website

[plugin] [ORPHAN] alt_obfuscate: Email Obfuscator

New Version since 2006/09/11: v1.1.12 includes the CDATA in the javascript!

Hi there,

The first plugin I wrote is now available at http://altum.be/en/software/emailobfuscator
It obfuscates your emailaddress, so it cannot be harvested by most spambots.
It is an alternative to txp:email and requires javascript to decode the encoded emailaddresses.

Generated sourcecode looks like this:

<script type="text/javascript">
// <![CDATA[ 
EOae('105,110,...','97,108,...','84,104,...','65,110,...','84,104,...','css-class');
// ]]>
</script><noscript>Please enable javascript</noscript>
<!-- Obfuscated by http://altum.be/products (Geert Van Aken) -->

Feedback is always welcome!
Geert Van Aken

Ps: Download the plugin here

Last edited by GeertAki (2007-12-03 13:05:49)

Offline

#2 2006-04-11 12:40:06

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: [plugin] [ORPHAN] alt_obfuscate: Email Obfuscator

There is no plugin link in your thread.

regards, marios


⌃ ⇧ < ⌃ ⇧ >

Offline

#3 2006-04-11 13:15:30

GeertAki
Plugin Author
From: Belgium
Registered: 2006-03-03
Posts: 24
Website

Re: [plugin] [ORPHAN] alt_obfuscate: Email Obfuscator

marios wrote:

There is no plugin link in your thread.

Thanks, I have now updated my original post with a direct download link.
All the documentation of the tag can be found at the website mentioned at the top of the post.

Offline

#4 2006-04-11 15:12:42

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: [plugin] [ORPHAN] alt_obfuscate: Email Obfuscator

Congrats on your first plugin!

Just fyi, the Textpattern plugin naming convention calls for:

zem wrote: “…all plugin tags should begin with a three-letter prefix unique to the author. In every other respect, these tags are exactly the same as any built-in <txp:... > template tag.

This is both to identify the plugin’s creator and to avoid conflict with any future additions to the Textpattern core.

Offline

#5 2006-04-11 16:04:41

GeertAki
Plugin Author
From: Belgium
Registered: 2006-03-03
Posts: 24
Website

Re: [plugin] [ORPHAN] alt_obfuscate: Email Obfuscator

Andrew wrote:

zem wrote: “…all plugin tags should begin with a three-letter prefix unique to the author. In every other respect, these tags are exactly the same as any built-in <txp:... > template tag.

Thanks for the info, I have now updated the plugin, so that it is called alt_obfuscate.
If someone is already using the previous version, please update to the new one.

Thanks!
GeertAki

Offline

#6 2006-04-11 16:42:10

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: [plugin] [ORPHAN] alt_obfuscate: Email Obfuscator

Work pretty good, thanks a lot for making it available,
another nice option to have for poeple that do not need a contact form.

regards, marios


⌃ ⇧ < ⌃ ⇧ >

Offline

#7 2006-09-11 07:21:57

GeertAki
Plugin Author
From: Belgium
Registered: 2006-03-03
Posts: 24
Website

Re: [plugin] [ORPHAN] alt_obfuscate: Email Obfuscator

I have updated the emailobfuscator to v1.1.2: It now includes CDATA in the generated output.
This is a minor fix, but I think it’s worth upgrading to the new version. The .js-file remained the same.

Offline

#8 2006-09-19 19:14:49

cynicalpink
Member
Registered: 2006-08-21
Posts: 11
Website

Re: [plugin] [ORPHAN] alt_obfuscate: Email Obfuscator

Just a quick note: The help info included with the plugin doesn’t have the tag listed with its three letter prefix.

Offline

#9 2006-09-20 05:24:20

GeertAki
Plugin Author
From: Belgium
Registered: 2006-03-03
Posts: 24
Website

Re: [plugin] [ORPHAN] alt_obfuscate: Email Obfuscator

Thanks for the info cynicalpink, I will fix that in next release…

Offline

#10 2006-09-20 09:05:26

Niconemo
Member
From: Rhône-Alpes, France
Registered: 2005-04-18
Posts: 557

Re: [plugin] [ORPHAN] alt_obfuscate: Email Obfuscator

If I understand well, the plugin must be tagged this way :

<txp:alt_obfuscate email="mymail@mymail.com"/>

Could it be be possible to make it work this way too ?

<txp:alt_obfuscate email>mymail@mymail.com</ txp:alt_obfuscate email>

in order to make it work with an “e-mail” custom field tag for example.

Thanks fo considering my request.
It would be cool for adress-book sections and so on… :-)

Last edited by Niconemo (2006-11-16 14:42:40)


Nico

Offline

#11 2006-09-20 09:40:22

GeertAki
Plugin Author
From: Belgium
Registered: 2006-03-03
Posts: 24
Website

Re: [plugin] [ORPHAN] alt_obfuscate: Email Obfuscator

Niconemo, thanks for your suggestion. I will investigate this as soon as I find some spare time.
Perhaps, for the moment, you can use the php-function (wrapping in <txp:php></txp:php>) and dynamically insert the emailaddress that you have specified in the custom field. But then, you need to know how to extract the value from that custom field.

But to me, your suggestion seems a nice improvement.

Thanks,
GeertAki

Offline

#12 2006-09-20 13:18:16

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,007
Website GitHub Mastodon Twitter

Re: [plugin] [ORPHAN] alt_obfuscate: Email Obfuscator

Niconemo wrote:

If I understand well, the plugin must be tagged this way :
<txp:alt_obfuscate email="mymailmymail.com”/>@
Could it be be possible to make it work this way too ?
<txp:alt_obfuscate email>mymailmymail.com</ txp:alt_obfuscate email>@
in order to make it work with an “e-mail” custom field tag for example.

If understood correctly, the plugin can easily be used with custom fields like so
<code><txp:if_custom_field name=“email”><txp:alt_obfuscate email=”<txp:custom_field name=“email” />”/></txp:if_custom_field></code>

or … would the tag within a tag problem take over?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB