Textpattern Forum

You are not logged in. Register | Login | Help

#21 2007-07-24 14:00:39

lreynolds
Member
From: Burlington, ON, Canada
Registered: 2007-02-09
Posts: 30
Website

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

I’ve tried using asy_wondertag to reference a field as the email address, but I’m getting the following error (email@somewhere.com represents the address in the field):
An emailaddress should contain exactly one ‘at’-sign (@) instead of 0 (email@somewhere.com )

The code I’m using is this:
<dd><txp:asy_wondertag><txp:alt_obfuscate email="<txp:zem_event_email />" /></txp:asy_wondertag></dd>

Any idea why it isn’t working?

Last edited by lreynolds (2007-07-24 14:02:24)

Offline

#22 2007-07-29 04:01:47

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

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

Hello, LReynolds,
I haven’t tried that, but have you tried the method Nico wrote about above? (I’ve quoted it again here.)

Niconemo wrote:

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>

Offline

#23 2007-10-11 11:30:37

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

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

Is there a new link for the plugin? The old ones aren’t working.

Offline

#24 2007-10-12 17:10:07

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

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

I’m sorry, but I have some technical issues with my webserver. That’s why my website is currently offline.
However, you can download the emailobfuscator via this temporary link:
http://altum.be/products/emailobfuscator/EmailObfuscator_V1.1.1.zip

As soon as my website is up and running again, the link will probably change, so if that’s the case, you should check out my site for the correct location.

Regards,
GeertAki

Offline

#25 2007-12-03 13:10:47

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

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

After having many problems with my site (which was completely lost because my hosting company did not have the promised backups), it is finally back online. However, I’m still working on the translation of the email obfuscator, but in the mean time, you can always use babelfish or some other translation tool (dutch -> your language)

The email obfuscator can be found here:
http://altum.be/en/software/emailobfuscator

If you have any questions or remarks, please contact me.

Offline

#26 2011-08-19 13:56:12

ruud
Developer emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 4,571
Website

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

The author no longer supports this plugin, but for those that want it nonetheless, here it is:

# altum Email Obfuscator v1.1.2
# This plugin obfuscates an emailaddress. It is an alternative to the tag txp:email
# Geert Van Aken
# http://altum.be/products/emailobfuscator

# ......................................................................
# This is a plugin for Textpattern - http://textpattern.com/
# To install: textpattern > admin > plugins
# Paste the following text into the 'Install plugin' box:
# ......................................................................

YTo5OntzOjQ6Im5hbWUiO3M6MjI6ImFsdHVtIEVtYWlsIE9iZnVzY2F0b3IiO3M6NzoidmVy
c2lvbiI7czo1OiIxLjEuMiI7czo2OiJhdXRob3IiO3M6MTQ6IkdlZXJ0IFZhbiBBa2VuIjtz
OjEwOiJhdXRob3JfdXJpIjtzOjQwOiJodHRwOi8vYWx0dW0uYmUvcHJvZHVjdHMvZW1haWxv
YmZ1c2NhdG9yIjtzOjExOiJkZXNjcmlwdGlvbiI7czo4MToiVGhpcyBwbHVnaW4gb2JmdXNj
YXRlcyBhbiBlbWFpbGFkZHJlc3MuIEl0IGlzIGFuIGFsdGVybmF0aXZlIHRvIHRoZSB0YWcg
dHhwOmVtYWlsIjtzOjQ6InR5cGUiO2k6MDtzOjQ6ImhlbHAiO3M6MTcyMToiCjxoMT5hbHR1
bSBFbWFpbCBPYmZ1c2NhdG9yIHBsdWdpbjwvaDE+Cgk8cD48Yj5QbHVnaW4gaG9tZXBhZ2U6
PC9iPiA8YSBocmVmPSJodHRwOi8vYWx0dW0uYmUvcHJvZHVjdHMvZW1haWxvYmZ1c2NhdG9y
Ij5odHRwOi8vYWx0dW0uYmUvcHJvZH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gkJJHJldHVyblZhbHVlIC49ICRjbGFzczsK
CQkkcmV0dXJuVmFsdWUgLj0gIiciOwoJfSBlbHNlIHsKCQkkcmV0dXJuVmFsdWUgLj0gIm51
bGwiOwoJfQoKCS8qIENsb3NlIHRoZSBKYXZhU2NyaXB0IGZ1bmN0aW9uICovCgkkcmV0dXJu
VmFsdWUgLj0gIik7XG4vLyBdXT5cbjwvc2NyaXB0PiI7CgoJLyogQWRkIHRoZSBub3Njcmlw
dCB0YWcgKi8KCWlmIChzdHJsZW4oJG5vc2NyaXB0KSA+IDApIHsKCQkkcmV0dXJuVmFsdWUg
Lj0gIjxub3NjcmlwdD4iOwoJCSRyZXR1cm5WYWx1ZSAuPSAkbm9zY3JpcHQ7CgkJJHJldHVy
blZhbHVlIC49ICI8L25vc2NyaXB0PiI7Cgl9CgoJLyogQWRkIHNvbWUgcHJvbW90aW9uYWwg
dGV4dCAqLwoJJHJldHVyblZhbHVlIC49ICJcbjwhLS0gT2JmdXNjYXRlZCBieSBodHRwOi8v
YWx0dW0uYmUvcHJvZHVjdHMgKEdlZXJ0IFZhbiBBa2VuKSAtLT4iOwoKCXJldHVybiAkcmV0
dXJuVmFsdWU7Cn0iO3M6MzoibWQ1IjtzOjMyOiI1NGM4NGI0Y2ZjNDc4ZmZhNjNjOWMwZmM0
YzQ3ZmU3NyI7fQ==

This also seems to require this javascript file, which should be called EO.js

/*
 * This script is written by Geert Van Aken
 * Please read the official documentation for more information
 * about the functions of this file.
 *
 * http://altum.be/products/emailobfuscator
 *
 * Please do not remove this information from the file and
 * report improvements that you make to this sourcecode
 *
 * Version 1.1.0
 * Date    2006/04/11
 */

var monkeyCode = 4 << 4;
var oldStatusText = "";

function EOa() {
  return String.fromCharCode(monkeyCode);
}

function EOd(pText) {
  var splitted = pText.split(",");
  var result = "";

  for (i = 0 ; i < splitted.length ; i++) {
    result += String.fromCharCode(splitted[i]);
  }
  return result;
}

function EOp() {
  var prefix = EOd('109,97,105');
  prefix += EOd('108,116');
  return prefix + EOd('111,58');
}

function EOad(pName, pdomain) {
  EOad(pName, pDomain, null);
}

function EOinitStatus(pName, pDomain) {
  oldStatusText = window.status;
  window.status = Loc(pName, pDomain);
}

function EOrestoreStatus() {
  window.status = oldStatusText;
}

function EOae(pName, pDomain, pSubj, pHover, pText, pClass) {

//  alert("pName = " + pName + "\npDomain = " + pDomain + "\npSubj = " + pSubj + "\npHover = " + pHover + "\npText = " + pText + "\npClass = " + pClass);

  var result = "<a href=\"JavaScript:EOad('" + pName + "','" + pDomain + "'";
  if (pSubj != null && pSubj.length > 2) {
    result += ",'" + pSubj + "'";
  }
  result += ");\"";

  if (pHover != null && pHover.length > 0) {
    result += " title=\"" + EOd(pHover) + "\"";
  }

  if (pClass != null && pClass.length > 0) {
    result += " class=\"" + pClass + "\"";
  }

  result += " onMouseOver=\"EOinitStatus('" + pName + "','" + pDomain + "');return true;\" onMouseOut=\"EOrestoreStatus();\"";

  result += ">" + EOd(pText) + "</a>";

//  alert(result);

  document.write(result);

}

function EOad(pName, pDomain, pSubj) {
  var loc = Loc(pName, pDomain);
  if (pSubj != null && pSubj.length > 0) {
    loc += "?" + EOd('115,117,98,106,101,99,116') + "=" + encodeURIComponent(EOd(pSubj));
  }

  document.location = loc;
}

function Loc(pName, pDomain) {
  var first = EOd(pName);
  var second = EOd(pDomain);
  var loc = EOp() + first + EOa() + second; 

  return loc;
}

Offline

Board footer

Powered by FluxBB