MyBB Community Forums

Full Version: Bug in shutbox: editing shout
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In the shoutbox plug in when you edit your shout it seems to cut part of it of and you can't add anything else to the shout.

I'm using: Shoutbox: 1.5.2

MyBB: 1.1.2

thanks
It looks as though the maxlength of the input box is for some reason lower than the maximum shout length.

I'll post a patch for this shortly.
The plugin has now been updated.

To save you having to deactivate and reactivate the plugin (loosing all shouts in the process) you can manually remove maxlength=\"60\" from the global template shoutbox_edit.

The template should then look like this...

<html>
<head>
<title>\$settings->bbname</title>
\$headerinclude
</head>
<body>
<br />
<form method=\"post\" action=\"shoutbox.php\">
<input type=\"hidden\" name=\"action\" value=\"do_edit\">
<input type=\"hidden\" name=\"sid\" value=\"\$shout[sid]\">
<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"98%\" align=\"center\">
<tr><td class=\"tborder\">
<table border=\"0\" cellspacing=\"\$theme[borderwidth]\" cellpadding=\"\$theme[tablespace]\" width=\"100%\">
<tr>
<td class=\"trow1\" align=\"center\"><input type=\"text\" name=\"message\" value=\"\$shout[message]\" size=\"40\"> <input type=\"submit\" name=\"submit\" value=\"Edit Shout\"></td>
</tr>
</table>
</td></tr></table>
</form>
</body>
</html>
Thanks Smile.
mySQL error: 1366
Incorrect integer value: '' for column 'sid' at row 1
Query: INSERT INTO mybb_shouts