Recent Topics

1 May 22, 2014 11:56    

I run a Wordpress site, would like to change, is it possible to import JUST the users from wordpress and if so how ?

2 22 May 2014 21:16

@theblackpig first than everything else, going from wp to b2evo is a nice move :D

I don't know your PHP skills, but in order to import only the users you will need to touch a little bit of code. Don't worry, it's just a little.

Please go to the file blogs/inc/tools/model/_wp.funcs.php. You will realize that each step in the automated import proccess is well delimited in the code, so basically, we need just to deactivate those sections that we don't need at this moment. Note: from now on I will mention the line numbers based in the latest stable release (version 5.0.9).

The first section of the code should remain untouched, starting with the line 203 is the section that we want to use, please note that it begins with this comment: /* Import authors */. All right, the users import section ends at line 321, so lets start commenting from line 323. That line should say something like this: /* Import files, Copy them all to media folder */, please delete the */ at the end of the line.

The next section/step /* Import categories */ begins at line 415, do the same deleting the */. Go to the line 470 /* Import tags */ and repeat the deletion, also at line 501 /* Import posts */, and finally at line 668 /* Import comments */. We just commented a big block of code, but we still need to close that comment, so go to line 754 and AFTER the closing curly brace } type this: */.

The import scrpt is now prepared to do exactly what you need. The further steps of the process are described in this manual page: http://b2evolution.net/man/wordpress-import.

Enjoy!

3 23 May 2014 10:30

Thanks , will certainly give this a go.

4 23 May 2014 14:19

Problem , _wp.funcs.php is nothing like you are quoting.
However I experimented and did an import and with a lot of playing around it will be a good basis to work on.
The one thing it did not do was import a list of members.
If I export from phpadmin wp members can I edit that in import into the b2evolution data base ?

5 23 May 2014 19:12

Well I don't know exactly what version of b2evo are you running, that's why I said that the lines numbering was based in version 5.0.9, and I'm pretty sure about the content of that file. The important thing is you managed to import the users sucessfully.

The one thing it did not do was import a list of members.

What do you mean with list of members. Is that list managed by a plugin?

6 23 May 2014 20:20

Attached php file .
Apologies , I got it wrong I should have said user . Unless I'm looking in the wrong place it has only imported three admins and nobody else !

7 23 May 2014 20:33

Unless I'm looking in the wrong place it has only imported three admins and nobody else

The problem is that I don't know how do you imported those users. Using the method I mentioned, I imported more than 200 users with a single click just before to post those instructions above.

There is another method, but it will be more tedious, based in how much content are you importing. Just import the whole blog and then delete posts, comments (this could be useful if you have a lot of comments: http://b2evolution.net/man/comment-mass-deletion) and categories. Voil? ! only users migrated from one site to each other.

8 24 May 2014 21:40

First of all My apologies mqsolipa. That script did work but it took hours for Me to realize that it only imports people who have actually posted.
Most people register on My site to download My paintings and pictures and it is their details I want to import ,
in other words wp_users.
So how would I import the whole blog?


Form is loading...