Contributions > Plugins, tips, and tricks

No Operator Answer Redirect

<< < (2/3) > >>

falcon:
The problem is that file not found. Current thread. I tryed to comment deleting of old.. make timeout to queries.. I think wrong order of responces. it send request to file and get 404 and THEN creates it.. ;/ so after update chat redirects..

all rights is normal. simply get to thread file as I see in firebug is firstly that get to php file with file creation. from tablet now. dont remember fname.

Sabyre:
This creates a file for the current session....


--- Code: ---$threadid = ($_SESSION['threadid']);

$link = connect();
$query = mysql_query("SELECT * FROM chatmessage WHERE threadid ='" . $threadid . "' AND tmessage LIKE '%Operator%%joined the chat%'");

if(mysql_num_rows($query) == 0) {
  $opjoined = 'n';
 }
mysql_close($link);

$myFile = "ajaxfiles/opAnswer_";
$myFile .= $threadid;
//$myFile .= "12";
$myFile .= ".txt"; 

$fh = fopen($myFile, 'w') or die("can't open file");
$stringData = $opjoined;
fwrite($fh, $stringData);
fclose($fh);
chmod($myFile, 0777);

--- End code ---



This deletes the old file (sessions past):


--- Code: ---$oldthread = "ajaxfiles/opAnswer_";
$oldthread .= ($threadid - 1);
$oldthread .= ".txt";
unlink($oldthread);


--- End code ---

falcon:
I will make a test dir for you. i will see.
today near night or tomorrow.

i m very interested in this  ;)

wooshman:
Did this ever get resolved?  I have tried the above and cannot get it to work.

Any help would be great.

Thanks.

Sabyre:
I just verified that it is no longer working on our end either. We will release an update to fix the issue. I am not sure off the top of my head if it is an issue with newer browsers or perhaps a MIBEW update.

Stay tuned!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version