You are not logged in.
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
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?
neme.org | neme-imca.org | hblack.net | LABS
Offline
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
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.
Offline
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?
neme.org | neme-imca.org | hblack.net | LABS
Offline
Thanks for this one Geert, much appreciated :)
Offline
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
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
Yes it works without any problem : it’s active on one site I made. :)
Nico
Offline
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