| |
| | |

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-20 16:56
| Show all posts
vot replied at 2012-2-20 12:52
Why "X1" ???
It must be changed in X2 database!

first x1 to then x2 to make it 100% perfect it just an opinion
thanks

 Saudi Arabia

Post time: 2012-02-22 17:01
| Show all posts
i fix it it's import all user no matter how much the username lenght or language
there is only one issue

it doesn't import username contain this charcters ( ' )


note: blue username imported successfully

This post contains more resources

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

x

 Russia

Post time: 2012-02-22 17:14
| Show all posts
it doesn't import username contain this charcters ( ' )

Try to use my advices, remove htmlspecialchars, add addslashes only before write to DB.

Comments

it doesn't work  Post time 2012-02-24 21:42

 Saudi Arabia

Post time: 2012-02-24 04:29 From the mobile phone
| Show all posts
Thanks vot.. I will try it soon as I can ;)

 Saudi Arabia

Post time: 2012-02-24 22:07
| Show all posts
تم تعديله بواسطة  san3auni في  2012-2-24 23:15

we can fix this latter
but i got last issue with discuz after convert
i'm not sure if i have to edit discuz files or converter


it show with username it doesn't show the full name
15 letters in english user name
7 letters with arabic user name



but the weird thing it's look great while i convert before converter finish all steps
like this


this how it's look like while converter work
after converter done i refresh the site the error in the first pic show up !!
it's also effect on profile url
this how it must look like it's show lilke this while i convert  
    http://www.san3auni.com/discuz1/home.php?mod=space&username=م.عبدالرحمن



after convert done it's change to this
    http://www.san3auni.com/discuz1/home.php?mod=space&username=م.عبدالر

which files can i edit to change username lenght
also fourm name lenght !!


وقت التحويل كل شي يكون صح اسماء الأعضاء والروابط بس بعد مايخلص التحويل احدث الصفحة ترجع تخرب ويتغير اسم العضو ورابط ملفه الشخصي مع وجود العضو اساسا يعني لو عدلت الرابط يحولني على ملف العضو الشخصي

This post contains more resources

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

x

 Russia

Post time: 2012-02-25 09:25
| Show all posts
What the X2 version do you use?
What the maximum username length do you need?

Comments

i use x1 then i upgrade to x2 i want to edit on x1 or maybe in converter then everything it's work well i want to chang length from 15 to 25 or more  Post time 2012-02-25 10:00

 Russia

Post time: 2012-02-25 12:03
| Show all posts
Official X1/X2 does not enable the username length longer than 15 BYTES (not characters)!

 Saudi Arabia

Post time: 2012-02-25 20:19
| Show all posts
تم تعديله بواسطة  san3auni في  2012-2-25 21:21



so is there any unofficial solution
may this work
http://codersclub.org/discuzx/forum.php?mod=redirect&goto=findpost&ptid=701&pid=2365
or
i hope if you can check this file
bak_step_3.php
inside converter

  1.         //pre_forum_thread
  2.         $tid        =        $t['threadid'];
  3.         $fid        =        $t['forumid'];
  4.         $posttableid        =        0;
  5.         $typeid        =        '';
  6.         $sortid        =        '';
  7.         $readperm        =        0;
  8.         $price        =        0;
  9.         $author        =        cutstr(trim($t['postusername']), 15);
  10.         $authorid        =        $t['postuserid'];
  11.         $subject        =        daddslashes(cutstr(trim(@strip_tags($t['title'])), 80));
  12.         $subject        =        $subject ? $subject : 'no subject';
  13.         $dateline        =        $t['tdateline'] > $timestamp ? $timestamp : $t['tdateline'];
  14.         $lastpost        =        $t['lastpost'] > $timestamp ? $timestamp : $t['lastpost'];
  15.         $lastposter        =        cutstr(trim($t['lastposter']), 15);
Copy the Code

is there any change in this code it may fix this error
because change number doesn't work

This post contains more resources

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

x

 Russia

Post time: 2012-02-25 20:54
| Show all posts
In the above code there is a buggy function "cutstr()".
Just remove it.
And expand all the username-like DB fields.

 Saudi Arabia

Post time: 2012-02-26 00:27
| Show all posts

thanks vot
i made it like this
  1. $author        =     (trim($t['postusername']), 15);
Copy the Code
didn't work

and like this
  1. $author        =      trim($t['postusername']), 15;
Copy the Code
also didn't work
i got parses error
i also try lot of code ( i'm not php expert ) but i try my best
i don't know why when i change the orignal code 15 to another number it's work for while ( till the converter finish then i refresh the page then the problem happen again !!
so what about make code edit in discuz to accept more than 15 bytes !

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 13:14 GMT+3 , Processed in 0.099116 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