Whenever I navigate to the page that my PFC is embedded into, the screen automatically scrolls down to the chat window. This causes problems because we want to have people read the chat room guidelines before joining.
I tried to use the focus_on_connect parameter to fix this, based on a note in version 0.9.1 release notes: "New “focus_on_connect” parameter: Setting this to true will give the focus to the input text box when connecting to the chat. It can be usefull not touch the focus when integrating the chat into an existing website because when the focus is changed, the viewport follows the focus location."
Unfortunately, this approach doesn't seem to be working for me. The chat box still steals the focus whenever people join.
SUPPORT TEMPLATE: (the relevant parameter code is pasted below)
PFC Version: 1.3
PHP Version: 5.2.9
Shared or Dedicated Hosting: Shared
Link to your website: http://tmswiki.medialayer.net/dropinchat/
Are you able to reproduce the issue on the official demo (http://www.phpfreechat.net/demo)? Hard to tell since I can't set parameters
Have you set any parameters?
If so, please include your entire code, using the [code ] and[/code ] tags (without the space).
- Code: Select all
$params = array();
$params["title"] = "PPD/TMS Peer Support Drop-In Chat";
$params["nick"] = "guest".rand(1,1000); // setup the initial nickname
$params['firstisadmin'] = true;
$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$params["debug"] = false;
$params["focus_on_connect"] = false;
$params["max_text_len"] = 1000;
//$params["channels"] = array(1 => "Peer Support");
// $params["connect_at_startup"] = false;
$chat = new phpFreeChat( $params );
What is the issue you are experiencing in detail? See above
Are you seeing any error messages, such as javascript errors? No