PHP Live! Help Desk
Search:
» Help Desk Home » How-To and Helpful Info » Resize the visitor chat request window size
Resize the visitor chat request window size

* Documentations are written assuming that your PHP Live! is always the latest version.  If you do not see the menu options or the feature, you may want to upgrade your system to the latest version.  The latest version can be downloaded at the client area.

 

For Download Clients, there are few variables that sets the embed chat window width and height and also the popup chat window width and height.  The variables are located at phplive/API/Util_Vars.php file.  The following are the default window size values:

 

$VARS_CHAT_WIDTH = 550 ;
$VARS_CHAT_HEIGHT = 510 ;
$VARS_CHAT_WIDTH_WIDGET = 430 ;
$VARS_CHAT_HEIGHT_WIDGET = 470 ;

 

The $VARS_CHAT_WIDTH and $VARS_CHAT_HEIGHT sets the popup chat widow size.

 

The $VARS_CHAT_WIDTH_WIDGET and $VARS_CHAT_HEIGHT_WIDGET sets the embed chat window size.

 

If you are wanting to resize the default values, DO NOT attempt to modify the phplive/API/Util_Vars.php file directly.  Instead, create a new file phplive/API/Util_Extra.php and place the modified values there.  This way, if new values are introduced to the Util_Vars.php file, it will not override your adjusted settings.

 

An example phplive/API/Util_Extra.php for a slightly bigger embed chat window size:

 

<?php

$VARS_CHAT_WIDTH_WIDGET = 480 ;
$VARS_CHAT_HEIGHT_WIDGET = 560 ;
?>

 

Relation documentation: Embed chat window width to span 100% of the webpage

Was this helpful?
could be more helpful? let us know
2 people found this helpful