Skip to:
Content
Pages
Categories
Search
Top
Bottom

Import data from Drupal 6.x Advanced forum


  • NeoID
    Participant

    @neoid

    I’m looking for a way to convert my Drupal 6.x Advanced forum to bbPress. On the help page for the Drupal 7 import module it says:

    Note: This current implementation is for the Drupal ‘Out of the Box’ forums, if you are looking to convert ‘Drupal Advanced Forums’ or ‘Artesian Forum’ for Drupal create a ticket on Trac and we will see how we go.

    Has anyone converted from advanced forum before or do I need to write my own import rule?

Viewing 20 replies - 1 through 20 (of 20 total)

  • soundboy
    Participant

    @soundboy

    I’m going through the same process right now. I’m migrating a very large site from Drupal 6 to WordPress and I’ve written the queries for most of the site now, but now I got to the point where I need to migrate the forum (which is Advanced Forum too) and from the looks of it I think I’m gonna have to write my own queries/scripts.

    Did you find a way to do it?


    Robkk
    Moderator

    @robkk

    @neoid

    Well here is the trac ticket for Drupal Advanced Forum.

    https://bbpress.trac.wordpress.org/ticket/2756

    Any help toward creating it/leading us to the right software to test out is greatly appreciated.


    NeoID
    Participant

    @neoid

    I’m still looking into this, but haven’t had the time to start coding on it. The main reason for that may be that I’m still not sure whether BuddyPress/bbpress is a good choice or not. I really don’t like WordPress for some reasons, but in some ways it’s a nice starting point when it comes to building a more social community…

    Anyway, would love to participate on this as I might end up using this in the near future. I’ll also look into supporting Pollfield as I’m using polls quite often on the forum.


    NeoID
    Participant

    @neoid

    Found this. Might be useful:
    https://github.com/xquiet/drupal7-to-phpbb3/blob/master/drupal7-to-phpbb3.php

    Since advanced forum is based on the drupal core forum there might not be too much we need to change i order to support it. I’ll try to take a look at this later today.


    Pascal Casier
    Moderator

    @casiepa

    Great, keep us aligned !


    NeoID
    Participant

    @neoid

    It’s been a while but looks like nobody has done anything yet, so it’s time to start…
    I’ve created a repository for this issue: https://github.com/NeoID/bbpress-converters-drupal6

    All tables have been updated to work with Drupal 6/Advanced forum 6.x, but for some reason it’s stuck on “Starting Conversion…”. Any ideas would be appreciated!


    NeoID
    Participant

    @neoid

    Users and Forum import is working!
    The only part I would need help with is the “Topic Section”. 🙂

    Did you run the repair tools ?
    From ‘Tools > Forums > Repair Forums’

    Pascal.


    NeoID
    Participant

    @neoid

    Not yet, it’s still importing… I think I got all bugs sorted out (not commited to git yet).
    Forum is quite huge so I guess it will take a while… 🙂


    NeoID
    Participant

    @neoid

    Everything worked great. I just need to add avatar support and verify some posts to see that I don’t need to do some more cleanup.


    NeoID
    Participant

    @neoid

    New version is on git. Need to figure out how to support avatars properly. They are now imported, but I have to settle on a avatar plugin and have the data moved over to WP somehow. HTML parser also needs a little work as some images/HTML is broken after import.

    Awesome 🙂

    Just to add that the standard Drupal forums module for Drupal 7 was included in bbPress 2.5, I’m not sure if there is anything in that that you may not have in your Drupal 6.

    Also, two of the importers SMF and phpBB have some cool new things for the upcoming bbPress 2.6, importing favourites, subscriptions, anonymous topics/replies/posts, you may want to have a look there to see if they help in importing more data from Drupal
    https://bbpress.trac.wordpress.org/browser/trunk/src/includes/admin/converters/phpBB.php
    https://bbpress.trac.wordpress.org/browser/trunk/src/includes/admin/converters/SMF.php


    NeoID
    Participant

    @neoid

    Some tables have changed quite a lot… the forum_index table didn’t exist in Drupal 6.x just to name one. The most important for me currently is to fix two things:

    * Avatars: I use buddypress which comes with some kind of avatar support. For now I’m trying to figure out how these are stored and how I can import them as well.

    * HTMl callback: I see the Drupal 7 import has a html callback, but it’s not defined as a function in the file. I’m trying to figure out how to add a custom filter without loosing the other magic.

    If you look at the phpBB importer it has the callback_html and parses a bunch or regular expressions to manipulate the previous BBCode or HTML strings, will that work for you?

    https://bbpress.trac.wordpress.org/browser/trunk/src/includes/admin/converters/phpBB.php#L934

    On the avatars front, maybe this will help?
    https://github.com/CybMeta/kunena-attachments-to-bbpress


    NeoID
    Participant

    @neoid

    Yeah, I think so, I’m currently copying the function and modifying it to match Drupal 6 with the bueditor module. I think it should work more or less out of the box in my case. 🙂

    Regarding the avatars I think I only need to write a function that copies them over to /wp-content/uploads/avatars/<user_id>/. Copied over avatar-bpfull.jpg and avatar-bpthumb.jpg and BuddyPress seems to use it immediately.

    Cool…

    Looking into supporting importing avatars to at least support BuddyPress’ avatars out of the box is one of the many things on my todo list that I just haven’t got to yet, maybe I’ll take a look at it for bbPress 2.7, 2.6 is close to being out the door so fingers crossed for 2.7 😉


    clayj
    Participant

    @clayj

    I’ve been communicating with data migration services about moving my Drupal 6 Advanced Forum to bbPress, but now it seems I might have to do it myself. But my knowledge of PHP is limited. Is this script working at this point, and, if so, how exactly would I use it to do the migration? Thanks.

    @clayj I’d suggest giving it a try and see how it goes

    If you have any issues with it create an issue on GitHub and we can try and help

    https://github.com/IDmedia/bbpress-converters-drupal6


    NeoID
    Participant

    @neoid

    It worked last time I tried, but I haven’t worked with BuddyPress for quite some time now.
    You may have to edit some of the tables (prefix), but apart from that it should work out of the box.

Viewing 20 replies - 1 through 20 (of 20 total)
  • You must be logged in to reply to this topic.
Skip to toolbar