PFC Version: 1.3
PHP Version: PHP 5.2.10 (built: Nov 13 2009 11:24:03)
Shared or Dedicated Hosting: Dedicated
Link to your website: http://www.medieval-europe.eu
Are you able to reproduce the issue on the official demo (http://www.phpfreechat.net/demo)? No
Have you set any parameters? Yes
If so, please include your entire code, using the [code ] and[/code ] tags (without the space).
- Code: Select all
$char = Session::instance() -> get('char');
$view = new View('chat/freechat');
$sheets = array('gamelayout'=>'screen', 'submenu'=>'screen');
require_once( "application/libraries/vendors/phpfreechat-1.3/src/phpfreechat.class.php");
$params["serverid"] = md5(__FILE__); // used to identify the chat
$params["nick"] = $char -> name;
$king = $char -> region -> get_roledetails( 'king' ) ;
if (Auth::instance()->logged_in('admin') or $char -> id == $king -> character_id )
$params["isadmin"] = true;
else
$params["isadmin"] = false;
$params["language"] = Auth::instance()->get_user() -> language ;
$params["title"] = 'Medieval Europe Chat';
$params["frozen_nick"] = true;
$params["max_nick_len"] = 25;
$params["max_channels"] = 2;
$params["focus_on_connect"] = true;
$params["connect_at_startup"] = true;
$params["data_public_url"] = url::base() . 'application/libraries/vendors/phpfreechat-1.3/data/public';
$params["theme_default_url"] = url::base() . 'application/libraries/vendors/phpfreechat-1.3/themes';
$params["theme_url"] = url::base() . 'application/libraries/vendors/phpfreechat-1.3/themes';
$params["server_script_url"] = 'freechat';
$params["channels"] = array ( kohana::lang( $char -> region -> kingdom -> name), 'Global Chat' );
$params["theme"] = 'medieval';
$params["debug"] = true;
$params["nickmeta"] = array(
'name' => $char -> name, 'kingdom' => kohana::lang( $char -> region -> kingdom -> name)
);
$params["nickmarker"] = false;
$chat = new phpFreeChat($params);
What is the issue you are experiencing in detail? Can't write in the chat. It says: You must be connected to send a message
Are you seeing any error messages, such as javascript errors?
Yes.
See pic:
http://i48.tinypic.com/2vj39fb.jpg