Textpattern Forum

You are not logged in. Register | Login | Help

#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: 4,951
Website

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.org | neme-imca.org | hblack.net | LABS

Offline

#13 2006-09-20 13:34:49

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

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

colak, I have just performed some tests with your solution, but it seems that my custom tag does not recognize the email address passed by the <txp:custom_field>-tag.

I think that I have to update my plugin to do this (or someone else, it’s open source after all ;o))
In that case, please post the new source code, so that I can use it to build a new version of the plugin installation file.

Thanks,
GeertAki

Offline

#14 2006-09-20 15:43:44

akokskis
Plugin Author
From: Baltimore-ish, USofA
Registered: 2004-11-28
Posts: 230
Website

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

It would be pretty easy to change this plugin around so that it could take an email wrapped in the plugin tags in addition to the current style.

Basically, you’d have to add another parameter to your plugin’s function (by convention, <code>$thing</code>), and that would be the enclosed text. Basically, I suppose you’d then check if there’s enclosed text (<code>if ($thing) { … }</code>), and if so, you’d use that as the email, otherwise you’d have to use the email attribute in the self enclosed tag.

Hope that makes sense.


My Photoblog, and my personal site. Got nav? ako_nav.
Thanks for taking the time to look…

— vc3 —

Offline

#15 2006-09-21 13:04:29

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 4,951
Website

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

GeertAki wrote:

colak, I have just performed some tests with your solution, but it seems that my custom tag does not recognize the email address passed by the <txp:custom_field>-tag.

Did you try to have the example in an article form?


Yiannis
——————————
neme.org | neme-imca.org | hblack.net | LABS

Offline

#16 2006-09-24 18:55:19

hazel
Member
From: Glastonbury, UK
Registered: 2006-09-22
Posts: 36

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

Thanks for this one Geert, much appreciated :)

Offline

#17 2006-11-16 14:30:07

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

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

It is now possible to have an email custom field in within the alt_obfuscator tag with asy_wondertag plugin !

Example :

<txp:asy_wondertag>
<txp:alt_obfuscate email="<txp:custom_field name="email"/>" text="Courriel" title="Send email to <txp:custom_field name="name"/>" />
</txp:asy_wondertag>

Last edited by Niconemo (2006-11-16 14:44:17)


Nico

Offline

#18 2006-11-16 14:33:17

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

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

Nico, thanks, I will try this out later on this week, but I’m almost sure it works :)

For the moment I’m also considering a variation of the email obfuscator, so that it also supports xmpp:-protocol intead of just mailto:
But time is not always on my side…

Offline

#19 2006-11-16 15:01:28

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

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

Yes it works without any problem : it’s active on one site I made. :)


Nico

Offline

#20 2007-03-12 18:39:08

azw
Member
Registered: 2007-01-29
Posts: 277

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

cynicalpink wrote:

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

Hello, GeertAki,

Thanks for creating this plug-in. It really helps.

The problem CynicalPink noticed is still there in the latest download.

It would be very helpful if you showed an example of how to use the tag in the instructions.

Offline

Board footer

Powered by FluxBB