[Typo3] links compatible with spamProtectEmailAddresses
Ismael BIDAU
bidau at ensci.com
Mon Oct 3 12:09:04 CEST 2005
I don't know if it's the cleanest way but I use :
$monlink = $this->local_cObj->getMailTo($row['email'],$row['email']);
$typolink_conf = array('parameter' => $monlink[0]);
$markerArray['###ETUDIANT_EMAIL###'] =
$this->local_cObj->typolink($monlink[1], $typolink_conf);
Perhaps help someone else.
Ismaël BIDAU
Le Tue, 27 Sep 2005 17:19:27 +0200, Jean-Baptiste Rio
<triphot69 at hotmail.com> a écrit:
>> 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
--
Utilisant le client e-mail révolutionnaire d'Opera :
http://www.opera.com/mail/
More information about the TYPO3-english
mailing list