Ast Derek
Not too much to say...
Offline
Posts: 6
|
 |
« Reply #45 on: August 29, 2009, 04:54:37 AM » |
|
Sorry I didn't update the code here. I'll add the TODO list here in a few hours if possible, or some days. Right now I'm installing the Live Chat on a live environment, let's see what happens.
P. D. :
Installation went fine, chat didn't work at first, then patched the files and everything seems to be fine. Files modified (edited from original):
/class/aardvark. php
line 77: setcookie('aardvark_'. $this->variables_send[$key ]['variable' ], $this->variables_send[$key ]['data' ], $time, '/', $domain);
to (sending the cookie and the custom header): setcookie('aardvark_'. $this->variables_send[$key ]['variable' ], $this->variables_send[$key ]['data' ], $time, '/', $domain); header("Custom-header: aardvark_". $this->variables_send[$key ]['variable' ]. "=". rawurlencode($this->variables_send[$key ]['data' ]),false);
/class/js/aardvark. php
line 52 (reads the cookie header, removing date and path info): } else { headers = eval(object+". xmlhttp. getResponseHeader('Set-Cookie')"); headers = headers. split("path=/"); for (i = 0; i < headers. length; i++) { headers[i ] = headers[i ]. split("; "); if (headers[i ][0 ] !== '') { if (headers[i ][0 ]. substring(0, 2) == ', ') { content += headers[i ][0 ]. substring(2, headers[i ][0 ]. length) + '; ';} else if (headers[i ][0 ]. substring(0, 1) == "\n") { content += headers[i ][0 ]. substring(1, headers[i ][0 ]. length) + '; ';} else { content += headers[i ][0 ] + '; ';} } } }
to (returns bare custom header): } else { headers = eval(object+". xmlhttp. getResponseHeader('Custom-header')"); content = (headers) ? headers : ""; }
Tried to attach the files I originally edited at my computer, but didn't have enough permissions.
Just tested with FireFox 2. 0. 2, Mac OS X 10. 3: 1 error, message from FireBug document. getElementById("aardvark_div_" + object) has no properties }; this. xmlhttp. open("GET", this. url, tr. . . new Image(); this. image. src = this. url;}
|