Buy Now
Sign in

Converting URLs causing problems

Lkark , March 16 2009, 20:20
L
Lkark 6
March 16 2009, 20:20 #26700
Hi, it's me again :p,

I've discovered another problem. It's about the [ url ] tag and the setting "Convert URLs to links". When I post:
[ url = http://website.com/ ] Click me ! [ / url ] (but without the spaces)
...in a comment, the function makeClickableLinks($text) will start and convert the url itself to a link, then the bbcode-relpace-array will replace it to a link, which will create double links. And that's of course not intended :p. Any idea how to fix it? And I still want to convert just urls to links :p.
admin 32
March 17 2009, 19:50 #26820
Hi Lkark,

yes, I know about this bug, the only way to fix it is to disable the "Convert URLs to links" option for now, I will fix all ChronoComments issues soon and add new features as well!

Regards,
Max
W
warriorgov79 34
March 21 2009, 12:28 #27246
Hi Max & Lkark,

Sounds like the same problem I had.

Try this:
http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=17&t=11488&p=16932#p16446 (disregard the comments below the code)

The 3 files to edit are:
/components/com_chronocomments/chronocomments.php
/plugins/content/ChronoComments.php
/modules/mod_chronomments/helper.php (if you're also using the module)

Works for me with Convert URLs on.

Aloha,
warriorgov79
admin 32
March 25 2009, 22:59 #27745
Thanks for posting the link!

Max