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
(2010-05-07, 12:33 PM)alvarorojas4 Wrote: [ -> ]I will update
Thank you, waiting for updates
...
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!
(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;
}
}