Skip to Content Skip to Menu

Uddeim problem with Arabic characters

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
13 years 4 months ago - 13 years 4 months ago #169200 by slabbi
Replied by slabbi on topic Re: Uddeim problem with Arabic characters
Hi,

yes it is a bug. The autoresponder does not recognize the encryption type. Nevertheless, displaying arabic text should also work without this work around.

If you cannot get it work without it, you have to fix it uddeim.php (approx. line 1050), replace the complete autoresponder block with:
Code:
// ################################################################################################## // autoresponder // ################################################################################################## if ($config->autoresponder==1 || ($config->autoresponder==2 && uddeIMisAdmin($rec_gid))) { $ison = uddeIMgetEMNautoresponder($savetoid); if ($ison==1) { // NOTE: An autoresponder message is created and the outbox message is marked deleted. // This is not a bug since in my opinion it does not make sense to store autoresponder messages AND the received message. $autorespondertext = uddeIMgetEMNautorespondertext($savetoid); $savemessage=addslashes(strip_tags($autorespondertext)); // $sql="INSERT INTO #__uddeim (fromid, toid, message, datum, totrashoutbox, totrashdateoutbox) VALUES (".(int)$savetoid.", ".(int)$savefromid.", '". $savemessage ."', ".$savedatum.", 1,".$savedatum.")"; $themode=0; if ($config->cryptmode==1) { $cm = uddeIMencrypt($savemessage,$config->cryptkey,CRYPT_MODE_BASE64); $sql="INSERT INTO #__uddeim (fromid, toid, message, datum, totrashoutbox, totrashdateoutbox) VALUES (".(int)$savetoid.", ".(int)$savefromid.", '". $cm ."', ".$savedatum.", 1,".$savedatum.")"; } elseif ($config->cryptmode==2) { // no password entered, then fallback to obfuscating $themode=1; $thepass=$config->cryptkey; $cm = uddeIMencrypt($savemessage,$thepass,CRYPT_MODE_BASE64); $sql="INSERT INTO #__uddeim (fromid, toid, message, datum, totrashoutbox, totrashdateoutbox, cryptmode, crypthash) VALUES (".(int)$savetoid.", ".(int)$savefromid.", '". $cm ."', ".$savedatum.", 1,".$savedatum.",".$themode.",'".md5($thepass)."')"; } elseif ($config->cryptmode==3) { $cm = uddeIMencrypt($savemessage,"",CRYPT_MODE_STOREBASE64); $sql="INSERT INTO #__uddeim (fromid, toid, message, datum, totrashoutbox, totrashdateoutbox, cryptmode, crypthash) VALUES (".(int)$savetoid.", ".(int)$savefromid.", '". $cm ."', ".$savedatum.", 1,".$savedatum.", 3)"; } elseif ($config->cryptmode==4) { // no password entered, then fallback to obfuscating $themode=1; $thepass=$config->cryptkey; $cm = uddeIMencrypt($savemessage,$thepass,CRYPT_MODE_BASE64); $sql="INSERT INTO #__uddeim (fromid, toid, message, datum, totrashoutbox, totrashdateoutbox, cryptmode, crypthash) VALUES (".(int)$savetoid.", ".(int)$savefromid.", '". $cm ."', ".$savedatum.", 1,".$savedatum.",".$themode.",'".md5($thepass)."')"; } else { $sql="INSERT INTO #__uddeim (fromid, toid, message, datum, totrashoutbox, totrashdateoutbox) VALUES (".(int)$savetoid.", ".(int)$savefromid.", '". $savemessage ."', ".$savedatum.", 1,".$savedatum.")"; } $database->setQuery($sql); if (!$database->query()) { die("SQL error when attempting to save a message" . $database->stderr(true)); } } }

It will be fixed in the next uddeIM release (you can also pull the developer version from the trunk, if you like).

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer
Last edit: 13 years 4 months ago by slabbi.

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
13 years 4 months ago #169201 by slabbi
Replied by slabbi on topic Re: Uddeim problem with Arabic characters
Edited the code again, because of a small bug.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

13 years 4 months ago #169203 by neutralfiles
Replied by neutralfiles on topic Re: Uddeim problem with Arabic characters
Hi,
I replaced the auto responder block but nothing changed. Is there something else to try? Could you advise me where to download the developer version?

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
13 years 4 months ago #169528 by slabbi
Replied by slabbi on topic Re: Uddeim problem with Arabic characters
It does only work with new responses. Old ones will still be messy.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

Moderators: beatnantslabbikrileon
Powered by Kunena Forum