• 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

Corporate Environment Changes

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

Post a reply
5 posts • Page 1 of 1

Postby G-Rod » Mon Jan 05, 2009 7:08 pm

I would like to set this up to be used as a department communication center. I have it installed and running, and it looks awesome, so now comes the config questions:

1. I have the max_msg and max_displayed_lines set to 800, so anyone can log in and see what has been talked about throughout the day. I would like to clear and archive those logs nightly so the log will start fresh the next day. What files do I need to archive iand reset n order to do that?

2. How can I set up a specific number of users that are allowed to log in without having another web page dedicated to passing those parameters?

Thank you in advance for any help or direction.
G-Rod
New member
 
Posts: 2
Joined: Mon Jan 05, 2009 6:32 pm
Top

Postby OldWolf » Mon Jan 05, 2009 11:13 pm

Unfortunately, my answers aren't going to be super helpful:
1. I'm not sure, kerphi will know if you want to wait for his response, but I think your best bet is to look through the private folder under data... that's where all the session data and logs are stored.
2. There's not a parameter for this (that I'm aware of)... you'd have to modify the chat yourself, or use the who's online demo to guide you on how to get a count for the number of users in the chat (of course, that's going to make rejecting people difficult... you'd have to check to see if they have an existing connection).
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 phpfreechat » Tue Jan 06, 2009 2:18 pm

1. OldWolf is right, you have to look at data/private/. However take care, all these data are used internally and should not be modified by an external script. Do it at your own risk. The best way would be to write a new function in pfcInfo class to achieve this task.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby G-Rod » Tue Jan 06, 2009 3:28 pm

Perfect. I appreciate all the feedback. I did notice that when I renamed the chat.log and cleared out the content of the folders under dataprivatechat(session) the content is cleared and the chatroom starts fresh. I will look into the pfcinfo class and check that out.

2. I wasn't clear (even for myself) on what I was asking in #2. I tried to set up a nick array in the hopes to limit the logons to those listed in the array. The line of code looked like this:

$params['nick"] = array('bob' => 'bobpwd', 'tom' => 'tompwd', 'kristy' => 'kristypwd');

Anyone was still allowed to log in. There are probably other code locations that I might need to work with, but this was inserted in the index.php file.

Thanks again.
G-Rod
New member
 
Posts: 2
Joined: Mon Jan 05, 2009 6:32 pm
Top

Postby OldWolf » Tue Jan 06, 2009 11:34 pm

Oh, so what you're wanting is to limit it to registered users? That feature isn't available, BUT, you can integrate it into an existing user management system. I get the feeling you're fairly familiar with php, so I'm going to chalk this out pretty roughly.

Get the user to register and login through your own system. On the chat page, do a check to see if the user's logged in through your system. If not, redirect them to your login page. If they are, grab their nick, and set it into the nick parameter (the nick parameter is intended to receive a string for the current user's name, not an array for all the users), and set the frozen nick parameter to true.

Let me know if you're having problems. :)
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


Post a reply
5 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 24 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