Shout Box Refreshing »  Show posts from    to     

Icy Phoenix


Old Support Topics - Shout Box Refreshing



xmenfile [ Tue 25 Mar, 2008 15:11 ]
Post subject: Shout Box Refreshing
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


portalpez [ Wed 26 Mar, 2008 14:25 ]
Post 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.


moreteavicar [ Sun 30 Mar, 2008 00:35 ]
Post 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


xmenfile [ Sun 30 Mar, 2008 01:10 ]
Post subject: Re: Shout Box Refreshing
moreteavicar wrote: [View Post]
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
Thank you moreteavicar. If I am using Global Shout Out Block, then where do i adjust it.
PS: AJAX ShoutBox configure upto 4 digits.


moreteavicar [ Sun 30 Mar, 2008 20:26 ]
Post 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:
Code: [Hide] [Select]
<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>


replace with
Code: [Hide] [Select]
<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>


Well maxlength="10" might be a bit ott, but why not


moreteavicar [ Sun 30 Mar, 2008 20:38 ]
Post subject: Re: Shout Box Refreshing
No wait... in templates/mg_themes/shoutbox_view_body.tpl:

Near the top of the file you have:
Code: [Hide] [Select]
<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:

Code: [Hide] [Select]
isset($_POST['auto_refresh'])


Yet if it is parsed via URL string, it should be:

Code: [Hide] [Select]
isset($_GET['auto_refresh'])


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


moreteavicar [ Sun 30 Mar, 2008 20:48 ]
Post 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


moreteavicar [ Sat 05 Apr, 2008 15:44 ]
Post subject: Re: Shout Box Refreshing
Hile Did you try any of the above xmenfile?


portalpez [ Mon 19 May, 2008 14:17 ]
Post 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!!


portalpez [ Mon 19 May, 2008 14:24 ]
Post subject: Re: Shout Box Refreshing
The forum during a 5 seconds is blank, and after this 5 second, the forum load.


portalpez [ Mon 19 May, 2008 14:27 ]
Post subject: Re: Shout Box Refreshing
In configuration of chat ajax box, i have 1000 miliseconds.




Powered by Icy Phoenix