Hi!
If anyone need to support users simultaneously for RTL and LTR scripting languages, do follow:
1. add to /libs/chat.php function
function get_user_lang($id){
$link = connect();
$z_lang = select_one_row("select locale from chatthread where threadid = ".$id, $link);
return $z_lang[locale];
mysql_close($link);
}
2. add code to /operator/agent.php in between lines 21 and 23
21: $operator = check_login();
put this code here -
if (isset($_REQUEST[thread])){
if (get_user_lang($_REQUEST[thread])=='he'){
$chatstyle="techheb";
}else{
$chatstyle=getchatstyle();
}
}else{
$chatstyle=getchatstyle();
}
23: loadsettings();
3. You also need use different chat window styles for rtl and rtl languages. Do not forget to change button code.
If anyone need this template - write PM.