| |
| | |

CodersClub

 Forgot password?
 Register
Search
Author: khalid
Collapse the left

$50 - Convert phpBB forum to Discuz!X 2

  [Copy link]

 Russia

Post time: 2012-02-04 12:43
| Show all posts
Just remove a stupid conversion!
  1.             if(!$username) {

  2.                     reportlog("Empty user name for uid = <b><font color='red'>$uid</font></b> Can not be converted ;<br>\r\n");

  3.             } elseif(strlen($username) > 64) {

  4.                     reportlog("User name <b><font color='orange'>$username</font></b> Length greater than 54 bytes, can not be converted,uid = $uid ;<br>\r\n");

  5.             } elseif(getuid($username)) {

  6.                 reportlog("Duplicate user name <b><font color='blue'>$username</font></b> Can not be converted,uid = $uid ;<br>\r\n");

  7.             } else {

  8.                     $vbuser        =        htmlspecialchars(addslashes($vbuser));
Copy the Code

 Palestine

 Author| Post time: 2012-02-04 12:49
| Show all posts
vot رد في  2012-2-4 11:43
Just remove a stupid conversion!

ok, i will try

 Palestine

 Author| Post time: 2012-02-04 18:51
| Show all posts
same problem

 Russia

Post time: 2012-02-04 18:55
| Show all posts
Can not understand...
What the problem again?
Post time: 2012-02-04 23:09
| Show all posts
Edited by charafweb at 2012-2-4 20:27
vot replied at 2012-2-4 15:55
Can not understand...
What the problem again?

I will try to explain what khalid meant:

after the conversion, usernames written in arabic, are wrong. for instance the username "خالد" (which contains 4 letters, from right to left (RTL):
خ : first letter
ا : second letter
ل : third letter
د : forth letter)
become something incorrect (after the converstion) like "خ&....", only the first "خ" letter is correct, and the 3 other letters are replaced with "&...."






 Russia

Post time: 2012-02-05 11:06
| Show all posts
the 3 other letters are replaced with "&...."

It is because of htmlspecialchars():
$vbuser        =        htmlspecialchars(addslashes($vbuser));

Simple comment this line:
// $vbuser        =        htmlspecialchars(addslashes($vbuser));

Comments

i will try !  Post time 2012-02-05 13:25

 Palestine

 Author| Post time: 2012-02-05 18:03
| Show all posts
vot رد في  2012-2-5 10:06
It is because of htmlspecialchars():
$vbuser        =        htmlspecialchars(addslashes($vbuser)); ...

didn't work !

 Russia

Post time: 2012-02-05 19:31
| Show all posts
khalid, your emotions are not required here
What is required - it is the details!
What is not working?

 Palestine

 Author| Post time: 2012-02-06 12:45
| Show all posts
vot رد في  2012-2-5 18:31
khalid, your emotions are not required here
What is required - it is the details!
What is not wor ...

vot ,

the problem is arabic usernames such as "خالد" didn't show correctly after convert it's show as "خا&"
and i try edit in username code convert (part of vbb to discuz scrpit convert) but no same problem i think it's easy problem but i am not understand anything in codes mabye you can solve it .  

 Russia

Post time: 2012-02-06 13:04
| Show all posts
Attach the converter code.
You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-11-22 17:29 GMT+3 , Processed in 0.099191 sec., 8 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list