Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End from jquery-php-chat (first version) to a simple forum Re: from jquery-php-chat (first version) to a simple forum

#79360
fabrizio
Member

ok…
now I have done this:
if I comment this in the process.php:

foreach ($lines as $line_num => $line)
{
// if($line_num >= $state){
$text[] = $line = str_replace("n", "", $line);
// }

}

I see all the messages of the past sessions, before my connection, but only after I sent one message.
If I don’t send anything, I don’t see anuthing in the "chat-area"…

I have the same result if I put var state=0; in chat.js and putting in comment //chat.getState(); in index.php

But it is not enought becouse I need to see any old message, when I restart the page

what can I do?

many many thanks