Forums

Join
bbPress Support ForumsRequests and FeedbackbbPress Standalone to Plugin Converter Beta 2

Info

bbPress Standalone to Plugin Converter Beta 2

  1. Hello folks,

    I along with Ben L. aka Nightgunner5, have created a bbPress standalone to plugin converter which already does a good job converting your bbPress forums.

    To use it, upload the file bbs2p.php to your server. Now let us assume that / is the place where you have placed the script, /blog/ is the WordPress directory and /forum/ is the bbPress standalone directory. So, you would edit bbs2p.php, scroll down to line 36 and change

    define( 'BBS2P_WP_PATH', '' ); /** With Trailing Slash, if required */
    define( 'BBS2P_BB_PATH', '../forum/' ); /** With Trailing Slash, if required */

    To:

    define( 'BBS2P_WP_PATH', 'blog/' ); /** With Trailing Slash, if required */
    define( 'BBS2P_BB_PATH', 'forum/' ); /** With Trailing Slash, if required */

    Similarly, if you have script and WordPress blog in / and the forum in /forums/, then change those lines to:

    define( 'BBS2P_WP_PATH', '' ); /** With Trailing Slash, if required */
    define( 'BBS2P_BB_PATH', 'forums/' ); /** With Trailing Slash, if required */

    Then run the script and the converter would guide you. Some points to note:

    • Needless to mention, if it isn't your test run, please have a backup. We cannot be held responsible for any data loss.
    • Run it on your localhost as the converter is heavy.
    • Supports the Subscribe to Topic plugin by _ck_ and bbPress 1.1 alpha+ subscriptions import too. Have that plugin activated if you want to migrate subscriptions from the plugin, else it will check for the alpha version.
    • Have the bbPress plugin activated, revert to default themes and disable any other plugins.
    • Currently, there are three situations:
      1. You have a new WordPress blog, to which you are migrating to and an established forum. Then, you would go to user migration section first and then proceed to forums, topics, posts migration section. In this process, all your WordPress users would be deleted (well, renamed to another table) and in place of those, bbPress users would be added. A keymaster will be WP admin, bb admin and moderator will be bbPress plugin moderators, rest all would be converted to the default WP role (which can be set in your WordPress settings).
      2. Your WordPress and bbPress user tables are integrated. You don't need the user migration process and you can directly go to forums, topics, posts migration section. No worries.
      3. You have a established WordPress blog, with a good number of users and can't afford to lose those. This is currently not supported as it is hard to merge two conflicting user sets.
    • After converting, do recounts, delete the script and delete the bbPress standalone section if not needed.

    Download: http://code.google.com/p/bbpress-standalone-to-plugin/downloads/detail?name=bbs2p-beta2.zip

    Cheers! Hope that helps. :-)

    Regards,
    Ben L. & Gautam G.
    bbPress Geeks

    ps. Special thanks to John James J. for developing the bbPress plugin, without which, of course, this converter wouldn't have been there. :P

  2. I've try in my local machine.
    After first run (user convention) it caused an error and table remain with *_tmp in name (now i not remember specific error - tomorrow i'll try to run again and publish more detail).
    Instead if i go directly to forum all seems to be converted (no error) but all topics (first post) is empty and to see i need to save again (forum and topic - otherwise i can't see - yes, i've run recount but problem still remain). Finally, all category results like a "forum" (and all forums like child forum).
    If you glad tomorrow (sorry but now i can't) i can provide localserver access and you can try directly ;)

  3. DarkWolf: That error would only happen when you run it multiple times and the database table already exists or your database user doesn't have privileges to rename a table. The converter does tell you to take precautionary measures.

  4. To be honestly i've try just one time with root privilege (local webserver - with wampserver) but maybe is caused by different database.
    I can try to move in one database and run again ;)

  5. Right, multiple databases are not supported. :)

  6. Will this plugin also cover the BuddyPress (1.2) -> bbPress Plugin conversion? This is the set-up I'm ready to help test extensively, so give us a shout when it's on the table.

    And guys, thanks a lot for taking this development upon you.

  7. Erlend: As BuddyPress installs bbPress standalone with only a few tweaks, I think it would be very much possible to convert the BuddyPress bbPress forums too. Just point it to its directory. ;)

  8. During migration something is missing, the permalinks in replies contains the original title, which makes them unusable.

    I tried running a mass edit on all replies but that did not work. strangely, only when editing a reply manually did it work.

  9. Decided to stick this topic to the front so it doesn't get lost and hopefully gets more traction. Would *love* to see this get turned into a plugin on the WordPress side to help move the data around. That would also put it one step closer to inclusion into bbPress core.

  10. jonkristian: Will take a look into that, worked for me though.

    JJJ: I'll give that a shot. :)

  11. I am going to try and see if this works and need some guidance for the paths to input into the file.

    I do have WP in the root directory.
    I have bbpress standalone in /forums
    I do also have buddpress integrated into bbpress with the group forums working.

    First is that all going to cause me great pain or is this going to be a painless thing to run?

    I appreciate your hardwork and help.
    Thank you.

  12. Under normal circumstances, it should be absolutely painless. I'd recommend running it on your localhost or at least have a backup of the whole database. Also, I'd recommend you to use the latest version, you'd have to copy paste or checkout the file - I haven't zipped and uploaded it as an archive yet.

  13. can you give me the dummy version of what I need to change in the two places you mentioned?

    I thought I did it correctly and tried running the script. What I got was a page of errors and notices. Referencing a few plugins and some other WP files. Way to long to paste here and probably irrelevant to the converter itself.

    Where is the file need to be saved and run from?
    And then the other changes to it prior to running?

    If I get this working I will write a novel on taking a vbulletin site to wordpress with bbpress. It will be long and partially a nightmare story with happy ending!

    Thank you for your help.

  14. I've updated the script, the latest version can be found here which addresses the issues highlighted by jonkristian (replies not being displayed) and Rick (errors from plugins - turned debug option off by default, though it is recommended that you turn off all plugins) and some others too.

    Rick: You should put only the bbs2p.php file in the root directory (where you have wp-config.php. Then change those lines to:

    define( 'BBS2P_WP_PATH', '' ); /** With Trailing Slash, if required */
    define( 'BBS2P_BB_PATH', 'forums/' ); /** With Trailing Slash, if required */

    JJJ: I'm on that. :)

  15. Thank you.

  16. I have tested imported with latest bbPress plugin version, but after import, counts of replies and topics for all forums are incorrect. If a forum has 0 topics, count shows 0, but if a topic has more than 1 it always shows 1. I checked in postmeta table, and the wrong counts are written there.

  17. Have you used the tool in the administration to recount bbPress?

  18. Ah, I didn't see that one. Thanks.

  19. I ran the upgrade yesterday from the import menu after installing the plugin, and it worked great. I had some issues where topics lost the topic_author field, but I think that may have happened when converting from phpbb to bbpress, not from bbpress1 to bbpress2.

  20. Closing this topic, as the importer is now bundled with bbPress 2.0

  21. This topic is closed