Sometimes when the chatbox is open i get an error popup
the chat seems to work like it should...
it says"Error: the server returned the following http status: 12152 Recieved:"
Moderators: OldWolf, re*s.t.a.r.s.*2
Modified: trunk/themes/default/templates/pfcclient.js.tpl.php
==============================================================================
--- trunk/themes/default/templates/pfcclient.js.tpl.php (original)
+++ trunk/themes/default/templates/pfcclient.js.tpl.php Sat Mar 25 13:56:45 2006
@@ -296,7 +296,7 @@
*/
handleRequest: function(cmd, param)
{
- <?php echo $prefix; ?>handleRequest(cmd + " " + this.clientid + (param ? " " + param : ""));
+ return <?php echo $prefix; ?>handleRequest(cmd + " " + this.clientid + (param ? " " + param : ""));
},
/**
@@ -307,7 +307,10 @@
clearTimeout(this.timeout);
if (start)
{
- this.handleRequest('/update');
+ var res = this.handleRequest('/update');
+ // adjust the refresh_delay if the connection was lost
+ if (res == false) { this.refresh_delay = this.refresh_delay * 2; }
+ // setup the next update
this.timeout = setTimeout('pfc.updateChat(true)', this.refresh_delay);
}
},
Eminos wrote:Ok, I guess I should delete the MINUS lines, and add the PLUS lines, right ?
Eminos wrote:And, btw, I have my own theme, but I only have that CSS file in my templates folder. Is the other files automaticly loaded from the default theme if they are not found in my-theme-template folder ?
Return to General Support (v1.x)
Users browsing this forum: No registered users and 4 guests