Project

General

Profile

Actions

Feature #20140

closed

Extending spamProtectEmailAddresses / hook request

Added by Michel Tremblay over 15 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-03-06
Due date:
% Done:

0%

Estimated time:
PHP Version:
5.0
Tags:
Complexity:
Sprint Focus:

Description

It would be useful to have a redirect functionalité in spamProtectEmailAddresses.

What I mean is that mailto links could be replace by links to a contact form page. The email address can be encrypted and passed as a get parameter.

Exemple:
mailto:
would be replaced by :
index.php?id=33&contact=cGllcfJlLmNhc3Gvbmd1YXlBbWRlaYUuZ291di5xYc5jFQ

The contact form page (33 in exemple) would use an extension that use the incoming parameter to send the form content.

I already posted an extension to implement this functionality : ig_mailto_redirect

Currently, I am using an XCLASS. It would be nice to have a hook in tslib_cObj:getMailto function that would give us the possibility to implements new spam protection methods without modifying the core.

From "ig_mailto_redirect" extension documentation. This is the kind of configuration that I would like to be able to do.

config.spamProtectEmailAddresses = redirect
config.spamProtectEmailAddresses {
redirectId = 15
redirectParam = email
redirectEncrypt = 1
}
(issue imported from #M10623)

Actions

Also available in: Atom PDF