Development > Declined Requests

Support for titled links in the shoutbox

(1/1)

Oldiesmann:
I would like to see full support for the url bbcode tag in the shoutbox.

I tried to post this in the shoutbox:

--- Code: ---[url=http://gutterminded.com/category/jughead/]365 Days of Jughead[/url]
--- End code ---

Instead of being titled the way I wanted it, it just came out as "[link]".

[SiNaN]:
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:


--- Code: ---$shouts[$shout['id']]['text'] = preg_replace('~<a([^>]+>)([^<]+)</a>~', '<a$1' . $txt['sp_link'] . '</a>', $shouts[$shout['id']]['text']);
--- End code ---

WasdMan:
The same to be done to the post in the forum work so well?

Navigation

[0] Message Index

Go to full version