SimplePortal

Development => Feature Requests => Declined Requests => Topic started by: Oldiesmann on February 14, 2012, 11:27:58 AM

Title: Support for titled links in the shoutbox
Post 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:
Code: [Select]
[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]".
Title: Re: Support for titled links in the shoutbox
Post by: [SiNaN] on February 14, 2012, 11:31:42 AM
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: [Select]
$shouts[$shout['id']]['text'] = preg_replace('~<a([^>]+>)([^<]+)</a>~', '<a$1' . $txt['sp_link'] . '</a>', $shouts[$shout['id']]['text']);
Title: Re: Support for titled links in the shoutbox
Post by: WasdMan on August 09, 2012, 08:28:49 AM
The same to be done to the post in the forum work so well?
SimplePortal 2.3.8 © 2008-2024, SimplePortal