• 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

User name trouble

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

Post a reply
2 posts • Page 1 of 1

Postby donik » Mon Jul 30, 2012 11:22 am

Hi everyone and specially those who created this wonderful piece of code!
I am implementing phpfreechat to my project and recently I have faced the following trouble:
Basically I do the following in my index.php file

require_once "chatlib/src/phpfreechat.class.php"; // adjust to your own path
$params["serverid"] = md5(__FILE__); // used to identify the chat
$params["refresh_delay"] = 1000; // 1000ms = 1s
$params["nick"] = iconv("ISO-8859-1", "UTF-8", $_SESSION["login"]);
$params['admins'] = array('admin' => 'pass');
$params["title"] = "chat";
$params["channels"] = array("Kabinet");
$params["height"] = "380px";
$params["display_pfc_logo"] = false;
$params["displaytabclosebutton"] = false;
$chat = new phpFreeChat($params);

So, as you can see, I am adding the nick parameter through $_SESSION here. BUT, after I close the browser window and then enter again, the chat message says "This nick is already in use"!

How do I solve this?
donik
New member
 
Posts: 1
Joined: Mon Jul 30, 2012 11:17 am
Top

Postby re*s.t.a.r.s.*2 » Mon Jul 30, 2012 5:01 pm

Hi,

The time out hasn't kicked yet when you try to enter to the chat again, since there isn't a way to tell when your browser was closed ..
After the time out has ran then you 'll be able to use that nick..

regards.
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top


Post a reply
2 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

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