| |
| | |

CodersClub

 Forgot password?
 Register
Search
Author: khalid
Collapse the left

$50 - Convert phpBB forum to Discuz!X 2

  [Copy link]

 Saudi Arabia

Post time: 2012-02-17 21:55 From the mobile phone
| Show all posts
Thanks for replay I will try this today now I'm on my phone ;)

 Saudi Arabia

Post time: 2012-02-18 11:59
| Show all posts
vot رد في  2012-2-17 14:38
DiscuzX upgrade documentation said:

Just do it!

i will try after i fix arabic user name
thanks

 Saudi Arabia

Post time: 2012-02-18 12:08
| Show all posts
khalid رد في  2012-2-17 15:26
أولاً :

بالنسبة لمشكلة عدم ظهور الاسماء بشكل كامل لانو  ...

قهر والله كنت متفااائل جدا بانتهاء المشكلة
بس إن شاء الله قربنا كثيييير للحل
للاسف النتيجة نفسها بالعكس كمان زاد عدد فشل الأعضاء المجلوبين
اصبح 1328

انا واثق انه في شي في الملفات يحل المشكله
لانه اثناء التحويل كنت اعمل تحديث وخلال عملية التحويل كنت ارى الأسماء تعمل بشكل صحيح
لكن بعد الانتهاء ادث الصفحة تظهر نفس المشكله الأولى 7 احرف فقط
مسحت الكاش ايضاً للتاكد
وللعلم ايضا
تخدث نفس المشكله في أسماء الأفسام
التي تزيد عن 24 حرف تقريبا
اتوقع عناوين المواضيع يحدث لها مشاكل لكن لم اشاهد

لذلك لحد الآن المشكله الوحيده هيا تعديل ديسكاز x1 بحيث تعدل الأكواد المسؤوله عن عدد احرف اسم العضو والقسم والموضوع

اتوقع بتكون قريبه من الطريقة اذا مو نفسها اللي عملتوها في هذه النسخة
للاسف لا اعلم من اين يتم تغيرها وماهي الملفات المسؤوله
وايضاً اذا يوجد خيار في لوحة التجكم أم لا

انتظر خبر منك

 Palestine

 Author| Post time: 2012-02-18 19:08
| Show all posts
san3auni رد في  2012-2-18 11:08
قهر والله كنت متفااائل جدا بانتهاء المشكلة
بس إن شاء  ...

ارسلي سكربت التحويل

تقريباً وجدت حل بالنسبة للاسماء

 Saudi Arabia

Post time: 2012-02-18 19:13
| Show all posts
khalid رد في  2012-2-18 20:08
ارسلي سكربت التحويل

تقريباً وجدت حل بالنسبة للاسماء  ...

الاسكربت انا حملته من عندك
هوا دا الاسكريت اللي استخدمته
http://codersclub.org/discuzx/forum.php?mod=viewthread&tid=195&page=1#pid751


 Saudi Arabia

Post time: 2012-02-19 07:51
| Show all posts
hi again

today we sloved 90% the converter from vb4 to discuz  with new edite made by khlide to fix arabic names more than 7 characters



now it's happen with english member names more than 15


i wish you do the same edit in these files in multi discuz x2
because whene i upgrade x1 to multi x2
i lose all arabic names members with more 7 characters

or contain characters like ( _ - . ') etc

and this is last edit i try with it
replace these file in discuz x1
http://codersclub.org/discuzx/forum.php?mod=redirect&goto=findpost&ptid=723&pid=3020&fromuid=1793


then use this converter



خالد الان المشاكل مع الأسماء الإنجليزية الي اطول من 15 حرف والي تحتوي على فواصل وغيره
قربت تنحل إن شاء الله
thanks in advance
  

This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

 Saudi Arabia

Post time: 2012-02-20 08:13
| Show all posts
forget about last post
there is only one error
while ($vbuser = $db['source']->fetch_array($query)) {
        $vbuser        =        array_change_key_case($vbuser);
        $uid        =        $vbuser['userid'];
        $username = trim($vbuser['username']);

        if(!$username || $username != htmlspecialchars(daddslashes($username))) {
                reportlog("非法用户名 <b><font color='red'>$username</font></b> 不能被转换,uid = $uid ;<br>\r\n");
        } elseif(strlen($username) > 15) {
                reportlog("用户名 <b><font color='orange'>$username</font></b> 长度大于 15,不能被转换,uid = $uid ;<br>\r\n");
        } elseif(getuid($username)) {
            reportlog("重复用户名 <b><font color='blue'>$username</font></b> 不能被转换,uid = $uid ;<br>\r\n");
        } else {
                $vbuser        =        daddslashes($vbuser);

when i change number 15 to 19 or more i got this error
when the converter trying to convert any user name conatain more than 15 letters   
Error: Duplicate entry 'عبدالرحمن عبدال' for key 'username'
Errormsg.: 字段值重复,入库失败
i check the database in username table i change the number of length
nothing change
so it's last thing to make this converter work great
why this error happen why couldn't convert user contain mor than 15 letters and how to fix it


thanks

This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

 Russia

Post time: 2012-02-20 09:14
| Show all posts
Offtopic: I can not understand how you can work with a non-translated converter...

i check the database in username table i change the number of length

1) Set the "username" field length to 64 bytes as minimum!
64 bytes - it is about 20 UTF-8 characters.

2) Modify this line:
  1.   } elseif(strlen($username) > 15) {
Copy the Code
to
  1.   } elseif(strlen($username) > 64) {
Copy the Code

 Saudi Arabia

Post time: 2012-02-20 11:22
| Show all posts
Offtopic: I can not understand how you can work with a non-translated converter...
i will translate it when i done everything

i did it dosen't work

i change it even to 255 doesn't work


maybe the change have to be in x1 files !!?

 Russia

Post time: 2012-02-20 11:52
| Show all posts
maybe the change have to be in x1 files !!?

Why "X1" ???
It must be changed in X2 database!
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-04-20 10:10 GMT+3 , Processed in 0.094375 sec., 7 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