[Typo3] hiding the email address in sp_directory

Paul Hayes paulhayes at thedesignpool.com
Sat Apr 16 18:46:10 CEST 2005


"Paul Hayes" <paulhayes at thedesignpool.com> wrote in message 
news:mailman.1.1113471276.3702.typo3-english at lists.netfielders.de...
> Does anyone know how to hide the email address the same way that the web 
> address is hidden in the sp_directory.
> The web address is hidden, I think, in the locallang.php array like
> 'www' => 'WWW' and the email address like 'email' => 'Email'
>
> It hides the web address and relaces it with the link word "WWW" ,
> but I want the email address to be relaced by the link word "Email"
> Any help is appreciated.
>
>

I figured it out thanks.
For anyone who want to do the same heres how.

In  class.tx_spdirectory_pi1.php  , line about 590
Change
[code]
 function makeMailtoLink($emailadr) {
                $this->typolink_conf["parameter"] = $emailadr;
  $code = $this->cObj->typolink($emailadr, $this->typolink_conf);

 return $code;
 }

        function makeHTTPLink($url,$name)      {
                $this->typolink_conf["parameter"] = $url;
                $code = $this->cObj->typolink($name, $this->typolink_conf);

 return $code;
        }
[/code]

to this

[code]
function makeMailtoLink($emailadr,$name) {
                $this->typolink_conf["parameter"] = $emailadr;
  $code = $this->cObj->typolink($name, $this->typolink_conf);

 return $code;
 }

        function makeHTTPLink($url,$name)      {
                $this->typolink_conf["parameter"] = $url;
                $code = $this->cObj->typolink($name, $this->typolink_conf);

 return $code;
        }

[/code]

paulhayes
Hope this helps someone else just like me. 





More information about the TYPO3-english mailing list