Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Help with importing from WBB3.1

@netweb

Keymaster

3. some users are twice now (like myself..who have been admins of wordpress and users of the forum). Can I simply merge them with
UPDATE wp_posts SET post_author = ’1′ WHERE post_author = ’2′; and it will count for the forum, too?

If a user already exists in WordPress during the import a new user will be created called ‘Imported_Username’, you can go to wp-admins user panel and when you select ‘Delete User’ you will be prompted to delete all posts or attribute them to another user, select the later and all the topics/replies etc will be attributed to the user you selected.

4. the passwords – in WBB they are hashed by this:
$passwort = sha1($row->salt.sha1($row->salt.sha1($_POST[‘passwort’])));
so what do I write at the end of wbb3.php
public function authenticate_pass( $password, $serialized_pass ) {
$pass_array = unserialize( $serialized_pass );
return ( $pass_array[‘hash’] == md5( md5( $password ). $pass_array[‘salt’] ) );
}
or is this impossible and the users have to get the new password by mail?

I am going to look at passwords next week for all the importers as my skills with PHP are only just beginning so this is all a bit tricky for me at the moment. 😉

So the best workaround is to have the users reset their password by email for now.

5. the imported users have no “Forum Role”. Is is “normal”? Is there any chance to automatically give them the forum role “Participant”?

Go to bbPress tools and run the repair tool ‘Remap existing users to default forum roles’ and that will do the trick. https://codex.bbpress.org/repair-forums/

6. do I have to keep the wbb3.php “forever” because of the passwords or can I delete it one day, even if not all members have com back yet?

If the passwords are not being converted you do not need to keep it, though I don’t see any issues why you would need to delete it.

Speaking of keeping it, can we include your WBB v3 Importer and distribute it with bbPress?

7. until now we have everything like private messages, profiles, friends and especially user groups (Moderators, crew members) with hidden forums. Do I see correct, that I can install both, import bbpress and afterwards attach for example our “Mods Only” to the group “Moderators” as group forum?

Currently bbPress only has: https://codex.bbpress.org/getting-started-with-bbpress/#creating-your-first-forum

Visibility: decide whether your forum is public, private or hidden.
Public – Anyone can see these forums
Private – Only logged in registered users can see these forums
Hidden: Only Moderators/Admins can see these forums

I see that every user gets a new User ID – old IDs are saved in table _bbp_converter_translator – will that table be kept? Maybe by this I have a chance to later import – somehow – private messages for buddy press!?

The translator table is not kept and the old user ID is stored in wp_usermeta as per this item in the ‘Example.php’ importer.

https://bbpress.trac.wordpress.org/browser/trunk/includes/admin/converters/Example.php#L458

                // Store old User id (Stored in usermeta)
459	                $this->field_map[] = array(
460	                        'from_tablename'  => 'users_table',
461	                        'from_fieldname'  => 'the_users_id',
462	                        'to_type'         => 'user',
463	                        'to_fieldname'    => '_bbp_user_id'
464	                );

I’ll take closer look at the importer and structure you linked to over the weekend and post back with anything else I can think of.

Skip to toolbar