Hi,
I have a global shout box on index, because i want it on top center instead of bottom. I noticed that the shout box keeps refreshing in couple seconds"waiting for http://mysite.com/shoutbox_view.php?0?auto_refresh=3..." i think that lows my forum down. I have tried quick set by MG, but still not stop it. Can anyone help me?
Thank you and have a great day :)
Shout Box Refreshing
Subject: Re: Shout Box Refreshing
Hello, I have the same problem... as well if you login out the problem is similar, the forum during a one o two seconds is blank, and after this one o two second, the forum load.
Subject: Re: Shout Box Refreshing
Hi, which shoutbox are you using? if AJAX Shoutbox, then have you can setting a longer refresh time in board config? ACP>>Site>>AJAX Shoutbox Configuration. I think by default it is 5 seconds (5000 milliseconds), which again is a bit low... I'd say 1 minute (60000 milliseconds) or more would be adequate, unless you have lots of post whores ;)
Subject: Re: Shout Box Refreshing
PS: AJAX ShoutBox configure upto 4 digits.
Thank you moreteavicar. If I am using Global Shout Out Block, then where do i adjust it.moreteavicar wrote: [View Post]
PS: AJAX ShoutBox configure upto 4 digits.
Subject: Re: Shout Box Refreshing
Inspecting shoutbox.php, it appears to be regulated by the board config Flood Interval, but I think that effects posting time, not the actual refresh. There is also "refresh" which is via a submit button
Ah yes... never noticed that (since I don't actually use it)... if you want to make it longer, then:
Open:
templates/common/ACP/board_config_body.tpl
find:
replace with
Well maxlength="10" might be a bit ott, but why not ;)
Ah yes... never noticed that (since I don't actually use it)... if you want to make it longer, then:
Open:
templates/common/ACP/board_config_body.tpl
find:
<td class="row1">{L_SHOUTBOX_REFRESHTIME}<br /><span class="gensmall">{L_SHOUTBOX_REFRESH_EXPLAIN}</span></td>
<td class="row2"><input class="post" type="text" name="shoutbox_refreshtime" size="5" maxlength="4" value="{SHOUTBOX_REFRESHTIME}" /></td>
<td class="row2"><input class="post" type="text" name="shoutbox_refreshtime" size="5" maxlength="4" value="{SHOUTBOX_REFRESHTIME}" /></td>
replace with
<td class="row1">{L_SHOUTBOX_REFRESHTIME}<br /><span class="gensmall">{L_SHOUTBOX_REFRESH_EXPLAIN}</span></td>
<td class="row2"><input class="post" type="text" name="shoutbox_refreshtime" size="5" maxlength="10" value="{SHOUTBOX_REFRESHTIME}" /></td>
<td class="row2"><input class="post" type="text" name="shoutbox_refreshtime" size="5" maxlength="10" value="{SHOUTBOX_REFRESHTIME}" /></td>
Well maxlength="10" might be a bit ott, but why not ;)
Subject: Re: Shout Box Refreshing
No wait... in templates/mg_themes/shoutbox_view_body.tpl:
Near the top of the file you have:
So here it should be possible just to change the auto_refresh=3 to some other value...
and if you don't want it to refresh at all, I think you can just remove the ?auto_refresh=3 completely... though to confess, I've not fully explored how this works, since shoutbox_view.php doesn't even have a line for $_GET['auto_refresh']...
Examining shoutbox.php, there is reference to "auto_refresh" but it ought not to work at all, because it is accessed via:
Yet if it is parsed via URL string, it should be:
normally anything sent via URl cannot be retrieved via $_POST, I suspect at one time it may have been $_REQUEST, which parses a mix of GET and POST variables, but nowadays is not recommended lately through possible security holes...
So maybe this is a bug, but don't quote me on that just yet ;)
Near the top of the file you have:
<meta http-equiv="refresh" content="120;url={U_SHOUTBOX_VIEW}?auto_refresh=3" />
So here it should be possible just to change the auto_refresh=3 to some other value...
and if you don't want it to refresh at all, I think you can just remove the ?auto_refresh=3 completely... though to confess, I've not fully explored how this works, since shoutbox_view.php doesn't even have a line for $_GET['auto_refresh']...
Examining shoutbox.php, there is reference to "auto_refresh" but it ought not to work at all, because it is accessed via:
Yet if it is parsed via URL string, it should be:
normally anything sent via URl cannot be retrieved via $_POST, I suspect at one time it may have been $_REQUEST, which parses a mix of GET and POST variables, but nowadays is not recommended lately through possible security holes...
So maybe this is a bug, but don't quote me on that just yet ;)
Subject: Re: Shout Box Refreshing
Note I've "unsolved" the topic title as I don't think we've got to the bottom of it just yet ;)
Subject: Re: Shout Box Refreshing
Hello,
I try to change the value auto_refresh=3 to auto_refresh=1 and does not run.
Could you help me to solve this problem?
Thanks you!!
I try to change the value auto_refresh=3 to auto_refresh=1 and does not run.
Could you help me to solve this problem?
Thanks you!!
Subject: Re: Shout Box Refreshing
The forum during a 5 seconds is blank, and after this 5 second, the forum load.
Page 1 of 1
You cannot post new topicsYou cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events
This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by Icy Phoenix based on phpBB
Generation Time: 0.0924s (PHP: 20% SQL: 80%)
SQL queries: 10 - Debug Off - GZIP Enabled