MyBB Community Forums

Full Version: ProStats (Professional statistics)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
Hi @SaeedGh, Thank you for this great MOD.
I have a problem with AJAX reload on these several conditions:

1. Primary using Active global tag, config:
- Active global tag = ON
- Show in index = OFF
- Show in portal = OFF

RESULT: AJAX reload didn't works! (reload indicator on, but nothing updated - am sure I make a new post for testing)

Also if:
- Show in index = OFF
- Show in portal = ON
RESULT: AJAX reload didn't works! (reloaded in portal page)

Mainly using "Last topics" feature...

Please check my report...

Thank you Smile
I will update Smile
(2010-05-07, 12:33 PM)alvarorojas4 Wrote: [ -> ]I will update Smile

Thank you, waiting for updates Heart ...
To upgrade from 1.7.3, you just need to replace "inc/plugins/prostats.php" file with this new one.

Version 1.7.4 (May 10, 2010)

Fixed bugs:
- Ajax refresh when "Show in index" is off (Thanks to delphi.momod)

Download links:
http://mods.mybboard.net/download/prostats
http://community.mybboard.net/thread-486...#pid340703
(2010-05-10, 04:41 AM)SaeedGh Wrote: [ -> ]To upgrade from 1.7.3, you just need to replace "inc/plugins/prostats.php" file with this new one.

Version 1.7.4 (May 10, 2010)

Fixed bugs:
- Ajax refresh when "Show in index" is off (Thanks to delphi.momod)

Download links:
http://mods.mybboard.net/download/prostats
http://community.mybboard.net/thread-486...#pid340703

Thanks for the update, but may I ask how is it possible to disable this mod from showing to guests?
(2010-05-10, 04:41 AM)SaeedGh Wrote: [ -> ]To upgrade from 1.7.3, you just need to replace "inc/plugins/prostats.php" file with this new one.

Version 1.7.4 (May 10, 2010)

Fixed bugs:
- Ajax refresh when "Show in index" is off (Thanks to delphi.momod)

Download links:
http://mods.mybboard.net/download/prostats
http://community.mybboard.net/thread-486...#pid340703

Great! Thank you Heart
Thanks for great plugin, love it.
The only thing that bother me is error, which i get when try use reload:
Cannot modify header information - headers already sent by (output started at .../inc/plugins/prostats.php:1678)

File: inc/plugins/myshoutbox.php
Line: 2042

2039.     $lang->load("myshoutbox");
2040.     
2041.     // Send our headers.
2042.     header("Content-type: text/html; charset={$charset}");
2043.     
2044.     switch ($mybb->input['action'])
2045.     { 
Anything i can do to fix that?
You are welcome! Smile

(2010-05-10, 08:15 AM)D-X69 Wrote: [ -> ]Thanks for the update, but may I ask how is it possible to disable this mod from showing to guests?

If the guests are allowed to see your Forums, Topics and Posts, so they can see the statistics. What is the benefit of disabling this plugin for users that actually have a View permission?

(2010-05-10, 02:08 PM)plyrblur Wrote: [ -> ]Thanks for great plugin, love it.
The only thing that bother me is error, which i get when try use reload:
Cannot modify header information - headers already sent by (output started at .../inc/plugins/prostats.php:1678)

File: inc/plugins/myshoutbox.php
Line: 2042

2039.     $lang->load("myshoutbox");
2040.     
2041.     // Send our headers.
2042.     header("Content-type: text/html; charset={$charset}");
2043.     
2044.     switch ($mybb->input['action'])
2045.     { 
Anything i can do to fix that?

I think you must write this post in myshoutbox support topic.
I get this error only when I'm trying to reload ProStats, so i think it's more ProStats related thing.
Is this possible to somehow turn off headers sending from ProStats?
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;
	}
}
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42