Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post 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
 



 
xmenfileSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post 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.
 




____________
Acuarios, mascotas
Forografia, fotos
Informatica, pc
 
portalpezSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 



 
moreteavicarSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 



 
xmenfileSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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: [Download] [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: [Download] [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
 



 
moreteavicarSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Shout Box Refreshing 
 
No wait... in templates/mg_themes/shoutbox_view_body.tpl:

Near the top of the file you have:
Code: [Download] [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: [Download] [Hide] [Select]
isset($_POST['auto_refresh'])


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

Code: [Download] [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
 



 
moreteavicarSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 



 
moreteavicarSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Shout Box Refreshing 
 
Hile Did you try any of the above xmenfile?
 



 
moreteavicarSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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!!
 




____________
Acuarios, mascotas
Forografia, fotos
Informatica, pc
 
portalpezSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Shout Box Refreshing 
 
The forum during a 5 seconds is blank, and after this 5 second, the forum load.
 




____________
Acuarios, mascotas
Forografia, fotos
Informatica, pc
 
portalpezSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Shout Box Refreshing 
 
In configuration of chat ajax box, i have 1000 miliseconds.
 




____________
Acuarios, mascotas
Forografia, fotos
Informatica, pc
 
portalpezSend private messageVisit poster's website  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You 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


  

 

  cron