Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Discuz! X2.5 and Discuz! UCenter 1.6.0 converters #230

Closed
wants to merge 57 commits into from

Commits on Jun 21, 2019

  1. Configuration menu
    Copy the full SHA
    c380b76 View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2019

  1. + Add settings module.

    * Fix a constant define.
    ? Modify merge system's internal functions to fix Chinese UTF-8 converting problem.
    yuliu committed Jun 22, 2019
    Configuration menu
    Copy the full SHA
    864a3ec View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2019

  1. + Add usergroups module.

    yuliu committed Jun 24, 2019
    Configuration menu
    Copy the full SHA
    0982f28 View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2019

  1. + Add ucuser module for migrating user data from UCenter. See [impo…

    …rt_ucusers](https://github.com/yuliu/mybb-merge-system/wiki/import_ucusers)
    
    + Add `class_dependencies` field in main Board converter file.
    * Modified `index.php` to allow customed `import_` modules derived from MyBB Merge System's internal base abstract classes in `./merge/resources/modules`.
    * Modified `class_converter.php` to allow different database connections.
    * Modified `functions.php` to allow encoding setting when using the customized `dz_my_strtolower` function.
    yuliu committed Jun 25, 2019
    Configuration menu
    Copy the full SHA
    64ca272 View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2019

  1. ! Change supported version of PHP from 5.4.0 to use GB18030 encodin…

    …g in mb* function to support whole charset of `gbk`.
    
    + Add `users` module.
    + Add useful default values for Discuz! import_ucuser module.
    * Remove any non-system usergroups in default usergroup mapping.
    * Fix duplicated user checking in Discuz! import_ucuser module, since UCenter's email field length is less than Discuz!'s.
    * Fix duplicated user data merging.
    * Always use the same mb_strtolower() or strtolower() to avoid UTF-8 converting issues.
    * Remove UCenter import_uid define marco since it's useless.
    * Fix import module dependencies checking mechanism.
    * Minor changes.
    yuliu committed Jun 30, 2019
    Configuration menu
    Copy the full SHA
    5a7298e View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2019

  1. + Add profilefields module.

    * Fix custom module dependency problem.
    yuliu committed Jul 1, 2019
    Configuration menu
    Copy the full SHA
    337a08f View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2019

  1. + Add userfields module.

    * Change `userfields` dependency to none.
    yuliu committed Jul 2, 2019
    Configuration menu
    Copy the full SHA
    013cf18 View commit details
    Browse the repository at this point in the history
  2. + Add announcements module.

    yuliu committed Jul 2, 2019
    Configuration menu
    Copy the full SHA
    89e06c0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7f63c0b View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2019

  1. + Add forums module.

    yuliu committed Jul 3, 2019
    Configuration menu
    Copy the full SHA
    83fd61a View commit details
    Browse the repository at this point in the history
  2. + Add forumperms module.

    * Add `usergroups` to `forumperms` dependencies to rely on usergroup's default permissions.
    yuliu committed Jul 3, 2019
    Configuration menu
    Copy the full SHA
    19c4034 View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2019

  1. + Add threadprefixes module.

    + Add threadprefixes cache support for future import features like threads.
    * Minor changes.
    yuliu committed Jul 4, 2019
    Configuration menu
    Copy the full SHA
    45fe986 View commit details
    Browse the repository at this point in the history
  2. + Add threads module.

    * Revert a change in `userfields`. All modules needs review, because I got the knowledge that MySQL returns results as string in any column in PHP.
    yuliu committed Jul 4, 2019
    Configuration menu
    Copy the full SHA
    9de96b1 View commit details
    Browse the repository at this point in the history
  3. ! Sorry for forgetting add files for previous commit.

    + Add `threads` module.
    * Revert a change in `userfields`. All modules needs review, because I got the knowledge that MySQL returns results as string in any column in PHP.
    yuliu committed Jul 4, 2019
    Configuration menu
    Copy the full SHA
    30ebe3a View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2019

  1. Configuration menu
    Copy the full SHA
    aad147a View commit details
    Browse the repository at this point in the history
  2. + Add extra descriptions when importing profilefields.

    * Make `dz_unserialize()` a member function of Discuz! converter.
    yuliu committed Jul 5, 2019
    Configuration menu
    Copy the full SHA
    16be953 View commit details
    Browse the repository at this point in the history
  3. + Add posts module

    * Move some common functions into converter's class.
    * Fix moved thread information.
    yuliu committed Jul 5, 2019
    Configuration menu
    Copy the full SHA
    07da3ee View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2019

  1. + Add custom bbcode parser to converter.

    * Minor changes.
    ? Code should be reviewed and some functions added in `./resources/functions.php` may be moved to the converter's class.
    yuliu committed Jul 8, 2019
    Configuration menu
    Copy the full SHA
    c565743 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2019

  1. * The parser should be working now, but is still full of problems. Ne…

    …sted [size], [color], etc., are not well handled. HTML output needs fix on tags without a closing tag.
    
    + Add a cleanup() function in `posts` module to clean any thread that has no post in it.
    * Fix moved thread importing issue.
    yuliu committed Jul 9, 2019
    Configuration menu
    Copy the full SHA
    98735a7 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2019

  1. * Fix cleanup function in posts module.

    * Fix several parser issues.
    * Minor changes.
    yuliu committed Jul 10, 2019
    Configuration menu
    Copy the full SHA
    a7cf754 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    305fb35 View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2019

  1. + Add moderators module.

    yuliu committed Jul 11, 2019
    Configuration menu
    Copy the full SHA
    4100f84 View commit details
    Browse the repository at this point in the history
  2. + Add polls module.

    yuliu committed Jul 11, 2019
    Configuration menu
    Copy the full SHA
    0ef7d86 View commit details
    Browse the repository at this point in the history
  3. + Add pollvotes module.

    * Fix bugs. Still so many bugs there.
    yuliu committed Jul 11, 2019
    Configuration menu
    Copy the full SHA
    358682d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    872f334 View commit details
    Browse the repository at this point in the history
  5. + Add parser's handling of Chinese font names in [font=*] tags, due…

    … to MyBB only support font name with very basic ASCII characters.
    yuliu committed Jul 11, 2019
    Configuration menu
    Copy the full SHA
    e516634 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2019

  1. Configuration menu
    Copy the full SHA
    c82c372 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1aa4e21 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2019

  1. + Add attachments module, and it allows put attachements in a `year…

    …month` folder under MyBB's upload path.
    
    ? Mime type recognition in older version of PHPs are problematic, so the importer use a mime types table from Apache HTTPd.
    yuliu committed Jul 13, 2019
    Configuration menu
    Copy the full SHA
    4c55fc6 View commit details
    Browse the repository at this point in the history
  2. ! This is a checkpoint commit for an ongoing code tidy and cleanup.

    + Add UCenter/Discuz! user login in `loginconvert.php`.
    * Separate UCenter importer from Discuz! X2.5 importer.
    * Revert changes in `./resources/functions.php` and `./resources/class_converter.php`. Customized functions now reside in the converter's class.
    yuliu committed Jul 13, 2019
    Configuration menu
    Copy the full SHA
    73e1970 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2019

  1. ! This is a checkpoint commit for an ongoing code tidy and cleanup.

    * Rename ucenter into `dzucenter`.
    * Change module dependencies to one class in `./merge/inex.php`.
    * Revert changes in `./resources/class_cache_handler.php`. Threadprefixes cache is handled in the importer class.
    * Code cleaning up in progress. This should be a milestone working for `dzucenter` and `dzx25` importers.
    * Minor changes.
    yuliu committed Jul 14, 2019
    Configuration menu
    Copy the full SHA
    dfebaad View commit details
    Browse the repository at this point in the history
  2. * Code cleanup.

    * Fix a `attachments` module problem in Discuz! X2.5.
    ? Reset non-existed attachments to be presented in a post's content by `[ATTACHMENT_NOT_FOUND_{old_aid}]`.
    yuliu committed Jul 14, 2019
    Configuration menu
    Copy the full SHA
    138ff9b View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2019

  1. + First commit of basic generating redirect files for the old Discuz!…

    …. Users are supported now, but not yet implemented in the Merge converter.
    yuliu committed Jul 15, 2019
    Configuration menu
    Copy the full SHA
    779f7a1 View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2019

  1. + Add privatemessages module for the dzucenter converter.

    * Add a constant define of turning off auto email correction for both dzx25 and dzucenter converters.
    yuliu committed Jul 16, 2019
    Configuration menu
    Copy the full SHA
    9ee86dd View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2019

  1. + Add avatars module. Generating thumbnails may fail if the transfe…

    …rred file is not a valid image file, since it's limited by PHP GD that is the default used by MyBB. However, the file of original width and height is still saved.
    yuliu committed Jul 17, 2019
    Configuration menu
    Copy the full SHA
    aca8e8c View commit details
    Browse the repository at this point in the history
  2. * In the cleanup() of the posts module, set the output header onl…

    …y if it's not been set, to avoid double headers appear.
    
    * Still in the `cleanup()` of the `posts` module, fix the the internal progress indicator to make `rebuild_thread_counters()` working correctly.
    yuliu committed Jul 17, 2019
    Configuration menu
    Copy the full SHA
    d8ea952 View commit details
    Browse the repository at this point in the history
  3. * Fix logic of printing output in inserting a userfield.

    + Add a constant of switching `users`'s dependency on `settings`.
    * Minor changes.
    yuliu committed Jul 17, 2019
    Configuration menu
    Copy the full SHA
    4275861 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    26de28c View commit details
    Browse the repository at this point in the history
  5. * Revert Merge's README.md to the original one.

    * Changes in `README.md` in Discuz! X2.5 and Discuz! UCenter converters.
    yuliu committed Jul 17, 2019
    Configuration menu
    Copy the full SHA
    ddcf838 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2019

  1. + Add redirect generator to users module in Discuz! X2.5.

    * Change redirect files to be generated in a folder under MyBB's upload path.
    yuliu committed Jul 18, 2019
    Configuration menu
    Copy the full SHA
    f85d2e0 View commit details
    Browse the repository at this point in the history
  2. + Add redirect generators to forums, threads and attachments mo…

    …dules in Discuz! X2.5. All available redirects should be generating correctly now.
    
    ? Major coding of Discuz! X2.5 and UCenter converters is near its completion, code tidy and clean up is following up.
    yuliu committed Jul 18, 2019
    Configuration menu
    Copy the full SHA
    ca5b5d8 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2019

  1. Configuration menu
    Copy the full SHA
    e900b60 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    92af838 View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2019

  1. Configuration menu
    Copy the full SHA
    7dcd8b7 View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2019

  1. Merge pull request #1 from mybb/feature

    Merge from mybb/merge-system:feature
    yuliu authored Jul 22, 2019
    Configuration menu
    Copy the full SHA
    379cd06 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f51797d View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2019

  1. Configuration menu
    Copy the full SHA
    ac01e6d View commit details
    Browse the repository at this point in the history
  2. Merge pull request #2 from mybb/feature

    Pull from upstream.
    yuliu authored Jul 23, 2019
    Configuration menu
    Copy the full SHA
    86caa0f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f71347d View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2019

  1. Review encodings.

    yuliu committed Jul 26, 2019
    Configuration menu
    Copy the full SHA
    033413a View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2019

  1. Configuration menu
    Copy the full SHA
    7d4be7a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    691964a View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2019

  1. Add column length check for dzx25 converter.

    Fix typos.
    yuliu committed Aug 2, 2019
    Configuration menu
    Copy the full SHA
    d3ad7a0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    abfaad8 View commit details
    Browse the repository at this point in the history
  3. Set some switches to off for dzx25 and dzucenter converters.

    In `posts` module of `dxz25`, if a post content is empty, use subject of this post instead.
    Code cleanup.
    yuliu committed Aug 2, 2019
    Configuration menu
    Copy the full SHA
    7d4d424 View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2019

  1. Configuration menu
    Copy the full SHA
    63069e1 View commit details
    Browse the repository at this point in the history
  2. Revert per_page settings various modules for dzucenter and dzx25.

    Rewrite README.me for `dzx25`.
    yuliu committed Aug 3, 2019
    Configuration menu
    Copy the full SHA
    0ea86ba View commit details
    Browse the repository at this point in the history