2010-05-12, 09:34 PM
First solution: Upgrade your MyShoutBox plugin and try again!
Second solution: Open "inc/plugins/myshoutbox.php" and find this code:
Then replace it by this one:
Second solution: Open "inc/plugins/myshoutbox.php" and find this code:
function myshoutbox_load()
{
global $mybb, $lang, $charset;
$lang->load("myshoutbox");
// Send our headers.
header("Content-type: text/html; charset={$charset}");
switch ($mybb->input['action'])
{
case 'show_shouts':
myshoutbox_show_shouts(intval($mybb->input['last_id']));
break;
case 'add_shout':
myshoutbox_add_shout();
break;
case 'delete_shout':
myshoutbox_delete_shout(intval($mybb->input['id']));
break;
case 'remove_shout':
myshoutbox_remove_shout(intval($mybb->input['id']));
break;
case 'recover_shout':
myshoutbox_recover_shout(intval($mybb->input['id']));
break;
case 'send_message':
myshoutbox_send_message(intval($mybb->input['send_to']));
break;
case 'delete_message':
myshoutbox_delete_message(intval($mybb->input['mid']));
break;
case 'report_shout':
myshoutbox_report_shout($mybb->input['reason'], intval($mybb->input['sid']));
break;
}
}
Then replace it by this one:
function myshoutbox_load()
{
global $mybb, $lang, $charset;
$myshoutbox_actions = array(
'show_shouts',
'add_shout',
'delete_shout',
'remove_shout',
'recover_shout',
'send_message',
'delete_message',
'report_shout',
);
if (in_array($mybb->input['action'], $myshoutbox_actions))
{
$lang->load("myshoutbox");
// Send our headers.
header("Content-type: text/html; charset={$charset}");
}
switch ($mybb->input['action'])
{
case 'show_shouts':
myshoutbox_show_shouts(intval($mybb->input['last_id']));
break;
case 'add_shout':
myshoutbox_add_shout();
break;
case 'delete_shout':
myshoutbox_delete_shout(intval($mybb->input['id']));
break;
case 'remove_shout':
myshoutbox_remove_shout(intval($mybb->input['id']));
break;
case 'recover_shout':
myshoutbox_recover_shout(intval($mybb->input['id']));
break;
case 'send_message':
myshoutbox_send_message(intval($mybb->input['send_to']));
break;
case 'delete_message':
myshoutbox_delete_message(intval($mybb->input['mid']));
break;
case 'report_shout':
myshoutbox_report_shout($mybb->input['reason'], intval($mybb->input['sid']));
break;
}
}