View Full Version : limiting shoutbox smilies
Darkwolf
09-01-2003, 01:30 PM
I want to limit shoutbox the number of smilies or [img] being posted
Chris M
09-01-2003, 01:33 PM
Are you using TWTCommish's shoutbox? If so, do this:
Open shoutbox.php
Find:
if ($type == 'shout' && $comment_submit && trim($message) != '' && $bbuserinfo[userid] > 0) {
Replace with:
if ($type == 'shout' && $comment_submit && trim($message) != '' && $bbuserinfo[userid] > 0) {
// check max images
if ($maximages!=0) {
$parsedmessage=bbcodeparse($message);
if (countchar($parsedmessage,"<img")>$maximages) {
eval("standarderror(\"".gettemplate("error_toomanyimages")."\");");
exit;
}
}
:)
Satan
Darkwolf
09-01-2003, 01:35 PM
the
if ($maximages!=0) {
i just put the number of 0 maximum images to the number i want ?
Darkwolf
09-01-2003, 01:51 PM
hmmm doesn't seem to work ?
Darkwolf
09-01-2003, 01:54 PM
nvm ! i fix it !! anyway thanks hellsatan :D
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.