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?