1
Husberry
How does XOOPS handle Hyperlinks?
  • 2006/5/23 20:54

  • Husberry

  • Just popping in

  • Posts: 10

  • Since: 2006/5/21


Hello,

I have changed some lines in my module.textsanatizer.php to handle external and internal links. Some CSS style stuff. However I get some problems when I write something like this in my HTML Form:

[u r l =https://xoops.org/modules/newbb/newtopic.php?forum=20]https://xoops.org/modules/newbb/newtopic.php?forum=20[/url]


This is the HTML output:

<a href="https://xoops.org/modules/newbb/newtopic.php?forum=20" target="_blank" class="external" rel="nofollow">a><a href="https://xoops.org/modules/newbb/newtopic.php?forum=20" target="_blank">https://xoops.org/modules/newbb/newtopic.php?forum=20


As you can see this happens because the link is modified twice! It doesn't happen if I write this:

u r l =https://xoops.org/modules/newbb/newtopic.php?forum=20]XOOPS Forum[/url]


I tried to find the place where XOOPS formats Hyperlinks but I didn't find the place in module.textsanatizer.php. How can I fix this?

Regards

2
Chris03
Re: How does XOOPS handle Hyperlinks?
  • 2006/5/23 21:35

  • Chris03

  • Quite a regular

  • Posts: 372

  • Since: 2004/2/22


Do not put anything between the ending ] and begining [ to make it show hte full URL

example

[u r l http://www.kickassamd.com][/url]


will show

http://www.kickassamd.com

Or in your case

[u r l =https://xoops.org/modules/newbb/newtopic.php?forum=20][/url]


will show

https://xoops.org/modules/newbb/newtopic.php?forum=20
KickassAMD

3
Husberry
Re: How does XOOPS handle Hyperlinks?
  • 2006/5/24 0:34

  • Husberry

  • Just popping in

  • Posts: 10

  • Since: 2006/5/21


Thank you for replying, but this doesn't work for me. If I leave this place empty, XOOPS translates this to

<a href="https://xoops.org/modules/newbb/newtopic.php?forum=20" target="_blank" class="external" rel="nofollow">a>


and no link appears.

Login

Who's Online

416 user(s) are online (334 user(s) are browsing Support Forums)


Members: 0


Guests: 416


more...

Donat-O-Meter

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

Latest GitHub Commits