SimplePortal
Development => Feature Requests => Declined Requests => Topic started by: Oldiesmann on February 14, 2012, 11:27:58 AM
-
I would like to see full support for the url bbcode tag in the shoutbox.
I tried to post this in the shoutbox:
[url=http://gutterminded.com/category/jughead/]365 Days of Jughead[/url]
Instead of being titled the way I wanted it, it just came out as "[link]".
-
Usually people can't use the URL BBC correctly in shoutbox and their shouts end up breaking shoutbox display. So in this last version we've implemented this very much wanted feature of shortening the links, but you could say it was in a rather forceful way. You can change that behavior just by commenting out this line in Subs-Portal.php file:
$shouts[$shout['id']]['text'] = preg_replace('~<a([^>]+>)([^<]+)</a>~', '<a$1' . $txt['sp_link'] . '</a>', $shouts[$shout['id']]['text']);
-
The same to be done to the post in the forum work so well?