• 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

Connecting fails when nick\'s are frozen

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

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

Postby re*s.t.a.r.s.*2 » Sat Mar 31, 2012 8:28 pm

Hi,

The script doesnt work with GET Or POST array , why I dont know, you need to ask the script creator on that one..

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

Postby skl99999 » Sat Mar 31, 2012 8:50 pm

I rewrote the example with cookies, and the problem persists. You can try it yourself if you want. If you go with one browser to http://www.iqcicle.com/chat/login_mrblue.php than there will be a MrBlue cookie on this browser, and if you go with another one to http://www.iqcicle.com/chat/login_mrgreen.php than there will be a MrGreen cookie on that one. Poor man's login if you so want.

On http://www.iqcicle.com/chat/chat.php you will find the following code:
Code: Select all
$params["serverid"]       = "Chat100";  // unique id for this chat
$params["isadmin"]        = true;      // for testing purposes, everyone is admin
$params["nick"]           = $_COOKIE["nick"];  // setup the intitial nickname
$params["frozen_nick"]    = true;      // do not allow to change the nickname
$params["dyn_params"]     = array ("nick");   // just in case is matters; it does not
$params["debug"]          = true;     // activate debug console
$chat = new phpFreeChat($params);

On http://www.iqcicle.com/chat/chat1.php you will find the following code: UPDATE: chat1.php, not chat.php
Code: Select all
$params["serverid"]       = "Chat101";  // unique id for this chat
$params["isadmin"]        = true;      // for testing purposes, everyone is admin
$params["nick"]           = $_COOKIE["nick"];  // setup the intitial nickname
$params["frozen_nick"]    = false;      // do not allow to change the nickname
$params["dyn_params"]     = array ("nick");   // just in case is matters; it does not
$params["debug"]          = true;     // activate debug console
$chat = new phpFreeChat($params);

The only differences are
Code: Select all
$params["serverid"]       = "Chat101";  // unique id for this chat
$params["frozen_nick"]    = false;      // do not allow to change the nickname

ie chat and chat1 are different chat rooms, and in chat nicks are frozen, in chat1 they are not.

Behaviour is as before - in the room "chat1.php", MrGreen and MrBlue can chat happily ever after, but in the room "chat.php" the one who comes second does not get in... Is this a bug?
Last edited by skl99999 on Sat Mar 31, 2012 10:12 pm, edited 1 time in total.
skl99999
New member
 
Posts: 9
Joined: Sat Mar 31, 2012 7:07 am
Top

Postby re*s.t.a.r.s.*2 » Sat Mar 31, 2012 9:09 pm

Of course they cant happily , they are both different application by $params["serverid"], they will never communicate..

there isn't any bug on that behavior .
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

Postby skl99999 » Sat Mar 31, 2012 9:17 pm

Sorry, probably I was not clear: of course if one connects to "chat.php" and the other one to "chat1.php" then they can't chat, as those are different rooms.

However, if two people who are logged into different nick's point their browser to the same page - either chat.php or chat1.php - then they should be able to chat. They are able to do so if they use chat1.php, as you can try for yourself if you like. They are however not able to do so if they both use chat.php, because whoever tries to join second is refused.

The only difference between chat.php and chat1.php (apart from it being two independent rooms of course) is that in chat.php users are not allowed to change their nick's
Last edited by skl99999 on Sat Mar 31, 2012 9:18 pm, edited 1 time in total.
skl99999
New member
 
Posts: 9
Joined: Sat Mar 31, 2012 7:07 am
Top

Previous

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

Return to General Support (v1.x)

Who is online

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