1
jegelstaff
Turn off link (e-mail) autodetection?

Hi all,

I'm wondering if anyone can fill me in on how to turn off the autodetection of links? Maybe it's just a module specific thing, but what's happening on my site is that text that is an e-mail address is being extracted from the database and drawn on the screen. XOOPS is detecting that it's an e-mail address and wrapping <a href=mailto:address> </a> tags around the address so it's a clickable link.

In this instance, I really don't want it to do that. I don't think it's the module since I don't see any code in there that pays any attention to the presence of @ signs, so I think this is a XOOPS feature. But it's getting in the way, can I turn it off?

Thanks,

--Julian

2
kennv
Re: Turn off link (e-mail) autodetection?
  • 2004/8/30 15:37

  • kennv

  • Just popping in

  • Posts: 11

  • Since: 2003/12/28


Hi Julian,

I needed to turn off this function too, and I've been searching for a solution.

The file you need to change is module.textsanitizer.php in the class folder. At the end of rule 133 you will find the following text: "\\1<a href=\"mailto:\\2@\\3\">\\2@\\3". Change "\\1<a href=\"mailto:\\2@\\3\">\\2@\\3" to "\\1\\2@\\3" and now it doesn't show the mailto link anymore.

Greetings

Kenn

3
jegelstaff
Re: Turn off link (e-mail) autodetection?

Awesome! Thanks.

--Julian

Login

Who's Online

239 user(s) are online (133 user(s) are browsing Support Forums)


Members: 0


Guests: 239


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits