• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

How to disable \"My Room\"

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
16 posts • Page 1 of 2 • 1, 2

Postby h4ever » Fri Jun 04, 2010 9:17 pm

How should I disable auto openning of the "My room"? I don't want any room to open when I run index.php.
h4ever
Member
 
Posts: 43
Joined: Fri Jun 04, 2010 11:10 am
Top

Postby OldWolf » Sat Jun 05, 2010 6:21 pm

You must have a room open. You can't start the chat without one.
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
Top

Postby h4ever » Sat Jun 05, 2010 7:39 pm

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.
h4ever
Member
 
Posts: 43
Joined: Fri Jun 04, 2010 11:10 am
Top

Postby todhend » Sat Jun 05, 2010 11:00 pm

you should read all the info on the left FAQ and commands and such
http://nflpick.net free football picks
http://tdah.us free webmail script
todhend
Member
 
Posts: 83
Joined: Tue Jan 19, 2010 9:03 pm
Location: Missouri
  • Website
Top

Postby h4ever » Sun Jun 06, 2010 8:56 am

I read the FAQ and commands. However i don't find solusion of this topic.

Note:
I didn't see there complete example how to use the commands. All commands should be applied on link (<a> tag)?

Something like this?

<a onclick="pfc.sendRequest('/join PR /rehash /nick admin /identify');" href="#" class="region">Prague</a>

(this was an attempt to hash)
Last edited by h4ever on Sun Jun 06, 2010 8:59 am, edited 1 time in total.
h4ever
Member
 
Posts: 43
Joined: Fri Jun 04, 2010 11:10 am
Top

Postby todhend » Sun Jun 06, 2010 3:08 pm

could you explain in detail what your trying to do, looks like your trying to invoke commands as an admin from outside the chat room, correct?
Last edited by todhend on Sun Jun 06, 2010 3:10 pm, edited 1 time in total.
http://nflpick.net free football picks
http://tdah.us free webmail script
todhend
Member
 
Posts: 83
Joined: Tue Jan 19, 2010 9:03 pm
Location: Missouri
  • Website
Top

Postby h4ever » Sun Jun 06, 2010 4:21 pm

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.
h4ever
Member
 
Posts: 43
Joined: Fri Jun 04, 2010 11:10 am
Top

Postby h4ever » Mon Jun 07, 2010 10:19 am

Can somebody explain me how to rehash? I read the manual about command etc. but still it's not clear to me how to rehash.

I found that if I change some parameter like this:

$this->channels = array(_pfc("My room"));
to
$this->channels = array();

Nothing happens. Where should I to write the hash command?
Last edited by h4ever on Mon Jun 07, 2010 5:12 pm, edited 1 time in total.
h4ever
Member
 
Posts: 43
Joined: Fri Jun 04, 2010 11:10 am
Top

Postby todhend » Mon Jun 07, 2010 1:48 pm

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
http://nflpick.net free football picks
http://tdah.us free webmail script
todhend
Member
 
Posts: 83
Joined: Tue Jan 19, 2010 9:03 pm
Location: Missouri
  • Website
Top

Postby todhend » Mon Jun 07, 2010 1:51 pm

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
http://nflpick.net free football picks
http://tdah.us free webmail script
todhend
Member
 
Posts: 83
Joined: Tue Jan 19, 2010 9:03 pm
Location: Missouri
  • Website
Top

Postby h4ever » Mon Jun 07, 2010 5:22 pm

Thanx for answer.

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.
h4ever
Member
 
Posts: 43
Joined: Fri Jun 04, 2010 11:10 am
Top

Postby h4ever » Mon Jun 07, 2010 5:33 pm

I have found the connect.class where is this command:

$chanlist = (count($u->channels) == 0) ? $c->channels : $u->getChannelNames();

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.
h4ever
Member
 
Posts: 43
Joined: Fri Jun 04, 2010 11:10 am
Top

Postby todhend » Mon Jun 07, 2010 6:04 pm

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
http://nflpick.net free football picks
http://tdah.us free webmail script
todhend
Member
 
Posts: 83
Joined: Tue Jan 19, 2010 9:03 pm
Location: Missouri
  • Website
Top

Postby h4ever » Mon Jun 07, 2010 7:01 pm

"...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.
h4ever
Member
 
Posts: 43
Joined: Fri Jun 04, 2010 11:10 am
Top

Postby todhend » Tue Jun 08, 2010 12:26 am

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

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 100
max_input_time = 100
memory_limit = 328M

I have a very old server with a small amount of memory compared to today's standards and it works fine
Last edited by todhend on Tue Jun 08, 2010 4:24 am, edited 1 time in total.
http://nflpick.net free football picks
http://tdah.us free webmail script
todhend
Member
 
Posts: 83
Joined: Tue Jan 19, 2010 9:03 pm
Location: Missouri
  • Website
Top

Next

Post a reply
16 posts • Page 1 of 2 • 1, 2

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 39 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
cron
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub