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

Kick ghost user on join when frozen_nick is enabled

This forum is now locked as we will no longer be developing the v1.x branch

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

Topic locked
7 posts • Page 1 of 1

Postby shini » Mon Mar 10, 2008 5:04 pm

I would like to automatically kick an existing user when a new user connects with the same name when frozen_nick is enabled. Since the user can't choose his nick, if a connection is already opened with that nick, the old (ghost) connection should be closed so the new connected user can enter the chat with the same nick without having to wait for the ghost connection to close (especially when 'timeout' is set to a high value).

(excuse my english, i'm french)
shini
Member
 
Posts: 35
Joined: Wed Mar 05, 2008 2:10 pm
Top

Postby phpfreechat » Mon Mar 10, 2008 5:10 pm

Currently this is not doable.
You have to manage the user uniqueness before the chat is open.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby shini » Fri Mar 14, 2008 9:21 am

I can't figure out how to do this... Could I have a little code sample please?
shini
Member
 
Posts: 35
Joined: Wed Mar 05, 2008 2:10 pm
Top

Postby phpfreechat » Fri Mar 14, 2008 3:05 pm

You have to use a database to store all the users id. Then create a basic registration system to authenticate these users before chatting.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby shini » Fri Mar 14, 2008 5:03 pm

The users are already authentified in a database when they connect the chat... How could I check if someone with the same nick is connected to the chat before the "new phpFreeChat( $params )" command ?
shini
Member
 
Posts: 35
Joined: Wed Mar 05, 2008 2:10 pm
Top

Postby Colnect.com » Mon Mar 31, 2008 6:00 pm

I have a similar problem and would appreciate some suggested solution. I use the "nick" parameter to set an authenticated user's name and since sometimes the user is kicked out he'll receive a "Chosen nickname is not allowed" next time he tries to login.
Colnect collectors community
http://colnect.com
Colnect.com
Member
 
Posts: 18
Joined: Mon Mar 31, 2008 3:52 pm
  • Website
Top

Postby emphasis » Thu Jul 03, 2008 9:06 am

Hello! I'm trying to do this same thing.
My users swap computers frequently and I tryed to shutdown the previous connection by eliminating the database reccords... but it won't work!
Somehow it manages to restore the deleted rows!
Do anyone know something about this?
emphasis
New member
 
Posts: 6
Joined: Thu Jul 03, 2008 9:00 am
Top


Topic locked
7 posts • Page 1 of 1

Return to Feature Requests (v1.x)

Who is online

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