• 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

Mybb => Chosen nickname is not allowed

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

Post a reply
2 posts • Page 1 of 1

Mybb => Chosen nickname is not allowed

Postby Tlams » Fri Nov 09, 2012 6:45 pm

Hello,
I use phpfreechat V1.5 for MyBB forum.
But I have a recurring problem: "Chosen nickname is not allowed"
How do I fix this problem?

Thx!

***********************************************

My Parameters:
Code: Select all
<?php
require '../inc/config.php';
mysql_connect($config['database']['hostname'],$config['database']['username'],$config['database']['password']);
mysql_select_db($config['database']['database']);


define('IN_MYBB', 1);
require ('../global.php');
session_start();


require_once "src/phpfreechat.class.php";
$params["serverid"] = md5(__FILE__);
$params["language"]     = 'fr_FR';
$params["startwithsound"]     = false;
$params['admins'] = array('Tlams'  => '',
                            'tlams' => '');
$params["title"]     = 'Chatbox';
$params["frozen_nick"]     = true;
$params["shownotice"]     = 0;
$params["channels"]     = array('Ch-Principal');
$params["max_msg"]     = 50;
$params["refresh_delay_steps"]     = array(500,1000,2000,3000);
$params["refresh_delay"]     = 1000;
$params["nickname_colorlist"]     = array('#000000','#BA8585','#8F85BA','#85BAB1','#3BB94E','#D5EE1C','#C7AF92',);
$params["display_ping"]     = false;

$params["container_type"] = "Mysql";
$params["container_cfg_mysql_host"] = "127.0.0.1";
$params["container_cfg_mysql_database"] = "Mybase";
$params["container_cfg_mysql_table"] = "phpfreechat";
$params["container_cfg_mysql_username"] = "MyUsername";
$params["container_cfg_mysql_password"] = "MyPw";


if (!empty($mybb->user['username']))
{
   $params["nick"] = $mybb->user['username'];      
   $chat = new phpFreeChat($params);
   $chat->printChat();
}
Tlams
New member
 
Posts: 2
Joined: Fri Nov 09, 2012 6:36 pm
Top

Re: Mybb => Chosen nickname is not allowed

Postby Tlams » Thu Nov 15, 2012 9:28 am

I found the problem:
When you connect from multiple web pages, it can not re-assign the speudo because it is already used.

The question:
What is the variable that contains the list of nickname used? (Those who are online)
Tlams
New member
 
Posts: 2
Joined: Fri Nov 09, 2012 6:36 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 58 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub