[Typo3] links compatible with spamProtectEmailAddresses
Jean-Baptiste Rio
triphot69 at hotmail.com
Tue Sep 27 17:19:27 CEST 2005
> On 27/09/05, Ismael BIDAU <bidau at ensci.com> wrote:
>
>>I can't find in tslib/class.tslib_pibase.php a way to create mailto links
>>to be compatible with spamProtectEmailAddresses.
>>
>>Any hints ?
>>
Hi Ismael,
I use this :
if ($GLOBALS['TSFE']->spamProtectEmailAddresses) {
$mailToUrl =
"javascript:linkTo_UnCryptMailto('".$GLOBALS['TSFE']->encryptEmail('mailto:'.$author["email"])."');";
}
else $mailToUrl = 'mailto:'.$author["email"];
$wrappedSubpartArray["###AUTHOR_EMAIL###"]= array('<a
href="'.$mailToUrl.'">','</a>');
Hope it'll help you,
JB
More information about the TYPO3-english
mailing list