MyBB Community Forums

Full Version: [B] Links don't end properly..
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
If you just enter a URL without using the URL MyCode, it keeps going for some reason.. Not sure if this is a bug, or just something going wrong, but maybe do it so it ends on the last / in the URL. Also, I noticed if you put the link in something like [ and ], or { and } - it doesn't even parse the URL..

Examples(not real URLs):
(http://lolz.com/linkez/) - not ending properly.
[http://omgwtf.com/] - not even parsing the link
{http://something.mysite.com/} - again, not parsing..
This is just simply a limitation of auto-url detection. Just wrap it in [url] tags manually.
Okay, but read the post again. I added more.
Yeh, doesn't change anything. It's still a limitation.
Okay, but the thing I don't get is doesn't it just search for
http://(.*?)
and convert it to
<a href="http://\\1">\\1</a>
?
No, that's not how it works.
Ah alright, that's probably why I didn't originally understand why it wasn't parsing the rest of the links. Would you mind if I made a suggestion to have it changed?
It's not going to happen. A limitation is a limitation.
(2009-02-27, 07:43 PM)Ryan Gordon Wrote: [ -> ]It's not going to happen. A limitation is a limitation.
But if you change the function, can't you get rid of the limitation?
(2009-02-27, 07:43 PM)Tom Loveric Wrote: [ -> ]
(2009-02-27, 07:43 PM)Ryan Gordon Wrote: [ -> ]It's not going to happen. A limitation is a limitation.
But if you change the function, can't you get rid of the limitation?

You really don't understand code, do you?
Pages: 1 2