• 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

Change chat channel via URL argument

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

Post a reply
2 posts • Page 1 of 1

Postby ozled » Sat Dec 17, 2011 6:24 pm

Hi there,

I am using the chat within a community site and I call it inside an iframe by passing two arguments:
- nick
- channel
to an intermediate script that, after saving them in the session, calls the main chat script.

Depending on certain conditions driven by the community site, the same user should enter a different chat room.
Instead it always land on the same room, the first one entered.

Here's the list of the (relevant) parameters I set:
Code: Select all
   'serverid' => md5(__FILE__),         // calculate a unique id for this chat
   'nick'    => $nick,
   'isadmin' => $isadmin,               // Chat administrator
   'frozen_nick' => FALSE,               // Was !$isadmin to allow only admin to change nick
   'channels' => array( $channel ),
   'frozen_channels' => array(),         // to be tested
   'dyn_params' => array(
      'nick',
      'channels',
   ),

Should this work or do I need to issue some command to the chat to leave the "previous" room ?
In case of the latter, how do I do that?
ozled
New member
 
Posts: 7
Joined: Sat Dec 10, 2011 6:14 pm
Top

Postby ozled » Thu Jan 12, 2012 3:20 pm

Further testing revealed that a new channel is actually received by the chat, but since the previously logged in user is still in the old channel, there it stays until:
- the user manually joins the new channel or
- the user disconnects and reconnects to the chat

Is there a way I can issue those commands from the php script ?
ozled
New member
 
Posts: 7
Joined: Sat Dec 10, 2011 6:14 pm
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 15 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