PDA

View Full Version : [fixed] Disable Smilies in This Post


G0D
Wed 29th Aug '01, 1:32pm
when I do

:)
:)
:)
:)
:)
:)
:)

but then 30 smileys, and "Disable Smilies in This Post" is on, you get the vBulletin Message:

You have included too many images in your signature or in your previous post. Please go back and correct the problem and then continue again.

Images include use of smilies, the vB code [img] tag and HTML <img> tags. The use of these is all subject to them being enabled by the administrator.

Chen
Wed 29th Aug '01, 1:55pm
I don't encounter this "bug" on my boards.
And I shouldn't:
$parsedmessage=bbcodeparse($message,$threadinfo[forumid],$allowsmilie);
if (countchar($parsedmessage,"<img")>$maximages) {
eval("standarderror(\"".gettemplate("error_toomanyimages")."\");");
exit;
}
See?
Smilies are parsed before checking for images, and it checks for <img> tags, so there's no way this would happen unless you fiddled around with newreply.php and newthread.php.
OR if you touched the newpost_disablesmiliesoption template.

Check to see if this only happens when you post a new thread / reply, or both.
Can you post the URL to your boards?
What version are you using?
Did you upgrade?

JamesUS
Wed 29th Aug '01, 5:16pm
Actually I just tested this on our beta board and the bug does exist in newthread.php but not in newreply.

So I will move it over to the bugs forum.

Freddie Bingham
Sat 13th Oct '01, 1:50pm
In the code above change

$threadinfo[forumid]

to

$foruminfo[forumid]

in newthread.php