Hi!
I'm not such a good coder so I'll skip to the example without writing too much. I have this in my index.php file:
<?php
// $user = $_GET['nick'];
$params["nick"] = $_GET['nick']; // setup the intitial nickname
require_once dirname(__FILE__)."/src/phpfreechat.class.php";
$params = array();
$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$params["frozen_nick"] = true; // do not allow to change the nickname
$params["shownotice"] = 3; // 0 = nothing, 1 = just nickname changes, 2 = connect/quit, 3 = nick + connect/quit
$params["max_nick_len"] = 20; // nickname length could not be longer than 10 caracteres
$params["max_text_len"] = 200; // a message cannot be longer than 50 caracteres
$params["max_channels"] = 3; // limit the number of joined channels tab to 3
$params["max_privmsg"] = 1; // limit the number of private message tab to 1
$params["refresh_delay"] = 5000; // chat refresh speed is 10 secondes (10000ms)
$params["max_msg"] = 15; // max message in the history is 15 (message seen when reloading the chat)
$params["height"] = "230px"; // height of chat area is 230px
$params["debug"] = false; // activate debug console
$params["connect_at_startup"] = true;
$params["start_minimized"] = false;
$params["nickmarker"] = true;
$params["clock"] = false;
... and I'm trying to login automatically using links like this: chat/index.php?nick=my-chosen-nickname
Well, it doesn't works, the first nickname remains and it doesn't matter what I replace my-chosen-nickname, it will log me with the same my-chosen-nickname nickname. I've also tried to set the frozen_nick to false but doesn't do what I want.
So, how can I do this?
Thanks!