SimplePortal
Support => English Support => Topic started by: Skaty on July 02, 2013, 07:16:52 AM
-
Sometimes users using too much smileys in one time so it is little frustrating. How can i limit smileys in one shout ?
-
Sources/PortalShoutbox.php
sportal_create_shout($context['SPortal']['shoutbox'], $_REQUEST['shout']);
{
$temp = $_REQUEST['shout'];
parsesmileys($temp);
if (substr_count($temp, '<img') > 3)
$context['SPortal']['shoutbox']['warning'] = 'You can only have 3 smileys in your shouts!';
else
sportal_create_shout($context['SPortal']['shoutbox'], $_REQUEST['shout']);
}
Change the instances of 3s in the code as the maximum number of smileys you would like to allow.
-
Works! Thank you.
-
Good to hear that. You're welcome. ;)