Mibew Messenger Community
Contributions => Plugins, tips, and tricks => Topic started by: olegp on June 09, 2009, 02:41:09 PM
-
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.
-
i have problem with hebrew
I CAN'T FIGURE OUT HOW TO CHANGE THE LOCATION FROM LEFT TO RIGHT IN IFRAME IN CHAT WINDOW
Everything is working fine but in IFRAME the CHAT in ajax mode that in IFRAME in on the left and i need it to be in right.
I Go throw CSS tpl's put RTL's there but nothing that effect this block...
HELP ME PLEASE !