But I don't want to start the chat when starting index.php. I want to start the chat when I click on room.
I you don't know how to do it (maybe it cannot to be done) - tell me how to tell which room should to open at start of index.php. I do ot want to have there the "My room", but other room I create.
Last edited by h4ever on Sat Jun 05, 2010 7:43 pm, edited 1 time in total.
Sorry for confusion. I wrote here two different things.
So. I downloaded PFC and placed it on server. Then I edited the left side menu. I created 90 rooms as references. When a visitor comes to index.php he would not see any chat Windows. That is wat I want. The Window should to be closed. When I click on reference the Chat Window should start and open desired room.
Or other way. The Chat window would be open, but no room open, no room active, NO REFRESH.
you run the rehash as an admin from the chat command line, all this does is deletes the cache file and creates a new one with any settings you have changed, you can also do this manually by going here /data/private/cache/ and deleting the cache file inside, you should be familiar with the commands on this page http://www.phpfreechat.net/parameters
and the /src/pfcglobalconfig.class.php file, these are the most common things to change
2 ways I can think of to solve your guest issue just change the config to not log in at start up or create a log in form, create a link on the menu to chat which pulls up a log in or register form, people can't see the chat unless their logged in, here's an example http://spfldmo.com/sites/chat/nchat.php
the my room is called from the language file, if no room is selected by default in either the config or the index the my room shows up, I just use a Group room as my default room
I think you could be admin here, to edit the article about commands and write there on begin: "You need to run the command as an admin from the chat command line" I didn't know that.
I deleted the cache manually but then chat stopped to work. I reported this bug on sourceforge.net .
I have seen the page with parameters info but I did not read the very beginning. Also the article about hashing is very "hidden". The link should be placed under hash command anchor in article with commands infos.
I escaped it and add this: $chanlist = $c->channels;
When the user comes he has the chat Window open, but he cannot chat. No rooms opened. The same after pressing F5. There is no reason for pressing F5, but if he does it, then the channels should close*. The goal is this:
If would be more people on the chat , nobody will close the rooms. They could have 10 rooms open, but this is bad for traffic (I mean high number of client's requests). So I better close the room.
* I will solve it later
I am gonna do some SQLite methods and I hope I will do better system to work with cache. I see as very problematic the thing with hundreds of cache files. I don't have mysql now for testing purposes, so I want to do it for SQLite. I am curious to see if this can help improve the performance.
on the error after rehash, if you change too much the chat does not see the changes until you rehash or delete the cache file so if your changing code allot, you might as well get used to deleting the cache file after every change, and its only slow while your doing this...after you have the site set up and no changes are being made, the chat is very fast
"...after you have the site set up and no changes are being made, the chat is very fast" I have different experience. I was here on the demo chat and that was terrible experience. There were only 8 chatters and my browser had problems with freezing. Other thing is that some users complained that if more users come the server get to be heavy loaded ... unhealthy loaded... (here ends my vocabulary)
One thing I don't understand. Why the configuration data for every instance of chat are to be saved in cache? There are such properties like color or refresh time, delay steps, etc. I don't understand why the author saves it ... because it is saved in configuration instance and in param variable. I think this things should be as common. There are informations than user could save alone - like logout time. But also informations that is not necessary to write to and read from database/files.
This POST - maybe I should to move it on other place here on forum.
Last edited by h4ever on Mon Jun 07, 2010 8:04 pm, edited 1 time in total.
change the refresh rate to a larger number, right now its set to 2 milliseconds, the reason I say this it sounds like your server is not keeping up with the constant refresh of the chat, you may also change your php.ini memory settings and time allowed before erroring out, I have mine set at