Thread Rating:
  • 25 Vote(s) - 3.76 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.8] ProStats (Professional statistics)
#70
First solution: Upgrade your MyShoutBox plugin and try again!

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;
	}
}


Messages In This Thread
ProStats (Professional statistics) - by SaeedGh - 2009-04-22, 09:39 PM
RE: ProStats (Professional statistics) - by Hime - 2009-04-29, 01:43 PM
RE: ProStats (Professional statistics) - by Lo. - 2009-04-29, 04:05 PM
RE: ProStats (Professional statistics) - by Lo. - 2009-04-30, 11:05 PM
RE: ProStats (Professional statistics) - by Miley - 2009-04-30, 01:14 AM
RE: ProStats (Professional statistics) - by Lo. - 2009-05-02, 03:28 AM
RE: ProStats (Professional statistics) - by LeX- - 2009-05-05, 06:48 PM
RE: ProStats (Professional statistics) - by starf - 2009-05-12, 02:49 PM
RE: ProStats (Professional statistics) - by Shell - 2009-06-17, 05:36 PM
RE: ProStats (Professional statistics) - by Lo. - 2010-01-10, 05:36 AM
RE: ProStats (Professional statistics) - by Pars - 2010-01-14, 04:11 AM
RE: ProStats (Professional statistics) - by Pars - 2010-02-06, 11:21 PM
RE: ProStats (Professional statistics) - by roy - 2010-02-11, 09:24 PM
RE: ProStats (Professional statistics) - by Glas - 2010-03-08, 02:16 AM
RE: ProStats (Professional statistics) - by MaaV - 2010-03-27, 11:40 PM
RE: ProStats (Professional statistics) - by Lo. - 2010-04-14, 11:05 PM
RE: ProStats (Professional statistics) - by alv4 - 2010-05-07, 12:33 PM
RE: ProStats (Professional statistics) - by D-X69 - 2010-05-10, 08:15 AM
RE: ProStats (Professional statistics) - by SaeedGh - 2010-05-12, 09:34 PM
RE: ProStats (Professional statistics) - by alv4 - 2010-05-17, 02:05 PM
RE: ProStats (Professional statistics) - by VAPOR - 2010-09-20, 12:55 PM
RE: ProStats (Professional statistics) - by IpHeX - 2010-09-23, 11:15 PM
RE: ProStats (Professional statistics) - by ~Rs - 2010-11-06, 06:34 PM
RE: ProStats (Professional statistics) - by ~Rs - 2010-11-06, 10:46 PM
RE: ProStats (Professional statistics) - by Pars - 2010-11-07, 05:24 PM
RE: ProStats (Professional statistics) - by Snail - 2010-12-06, 01:38 AM
RE: ProStats (Professional statistics) - by fid - 2011-01-04, 06:15 AM
RE: ProStats (Professional statistics) - by fid - 2011-01-04, 06:01 PM
RE: ProStats (Professional statistics) - by fid - 2011-01-05, 07:55 AM
RE: ProStats (Professional statistics) - by fid - 2011-01-05, 12:12 PM
RE: ProStats (Professional statistics) - by fid - 2011-01-05, 07:20 PM
RE: ProStats (Professional statistics) - by NNT_ - 2011-01-11, 01:47 PM
RE: ProStats (Professional statistics) - by fid - 2011-01-17, 08:40 AM
RE: ProStats (Professional statistics) - by fid - 2011-01-18, 01:36 AM
RE: ProStats (Professional statistics) - by katib - 2011-03-08, 01:28 PM
RE: ProStats (Professional statistics) - by katib - 2011-03-15, 12:01 PM
RE: ProStats (Professional statistics) - by csm - 2011-03-15, 07:36 PM
RE: ProStats (Professional statistics) - by csm - 2011-03-16, 01:38 PM
RE: ProStats (Professional statistics) - by csm - 2011-03-17, 02:06 PM
RE: ProStats (Professional statistics) - by alv4 - 2011-03-25, 02:43 PM
RE: ProStats (Professional statistics) - by Pars - 2011-04-14, 06:12 PM
RE: ProStats (Professional statistics) - by Pars - 2011-04-15, 07:23 AM
RE: ProStats (Professional statistics) - by SVRN - 2011-06-20, 06:58 PM
RE: ProStats (Professional statistics) - by koz - 2011-07-06, 11:27 AM
RE: ProStats (Professional statistics) - by alv4 - 2011-07-14, 06:57 PM
RE: ProStats (Professional statistics) - by alv4 - 2011-07-14, 07:28 PM
RE: ProStats (Professional statistics) - by lexy - 2011-07-19, 12:42 PM
RE: ProStats (Professional statistics) - by koz - 2011-07-20, 02:11 AM
RE: ProStats (Professional statistics) - by alv4 - 2011-07-21, 01:09 PM
RE: ProStats (Professional statistics) - by Prtik - 2011-07-30, 11:10 AM
RE: ProStats (Professional statistics) - by lexy - 2011-07-30, 11:56 AM
RE: ProStats (Professional statistics) - by Prtik - 2011-07-30, 02:52 PM
RE: ProStats (Professional statistics) - by csm - 2011-07-30, 03:08 PM
RE: ProStats (Professional statistics) - by csm - 2011-07-30, 03:28 PM
RE: ProStats (Professional statistics) - by Prtik - 2011-07-30, 03:38 PM
RE: ProStats (Professional statistics) - by csm - 2011-07-30, 03:44 PM
RE: ProStats (Professional statistics) - by csm - 2011-07-31, 02:49 AM
RE: ProStats (Professional statistics) - by csm - 2011-08-01, 01:19 PM
RE: ProStats (Professional statistics) - by csm - 2011-08-21, 06:18 AM
RE: ProStats (Professional statistics) - by 55555 - 2011-09-10, 04:32 AM
RE: ProStats (Professional statistics) - by Prtik - 2011-09-15, 08:44 PM
RE: ProStats (Professional statistics) - by Prtik - 2011-09-15, 10:11 PM
RE: ProStats (Professional statistics) - by Prtik - 2011-09-15, 11:40 PM
RE: ProStats (Professional statistics) - by darki - 2011-11-27, 04:05 PM
RE: ProStats (Professional statistics) - by Ech@p - 2011-12-08, 11:39 AM
RE: ProStats (Professional statistics) - by Ech@p - 2011-12-21, 05:46 PM
RE: ProStats (Professional statistics) - by lexy - 2011-12-20, 10:00 AM
RE: ProStats (Professional statistics) - by lexy - 2012-01-06, 03:50 PM
RE: ProStats (Professional statistics) - by i0ni - 2012-06-06, 11:51 AM
RE: ProStats (Professional statistics) - by hddt - 2012-07-16, 01:19 AM
RE: ProStats (Professional statistics) - by HDx - 2012-07-20, 03:09 AM
RE: ProStats (Professional statistics) - by hddt - 2012-07-20, 04:56 PM
RE: ProStats (Professional statistics) - by lexy - 2012-11-30, 08:14 AM
RE: ProStats (Professional statistics) - by lexy - 2012-12-29, 11:33 AM

Forum Jump:


Users browsing this thread: 20 Guest(s)