WordPress.org

Ready to get started?Download WordPress

Forums

B2Evo Importer (82 posts)

  1. smikwily
    Member
    Posted 10 years ago #

    Ok. Last chance. I've requested it many, many times, but so far, everyone has zoomed right by it. I was asked to send in a DB dump of my site, and nada. I'm asking for a B2 Evolution to WordPress importer. I was considering trying to go through MT, but with their changes, I'm not even sure that is a good idea. Can someone either come up with an Evo to WP importer, or a template to go from B2Evo to MT to WP? Thanks in advance.

  2. smikwily
    Member
    Posted 10 years ago #

    Guess that answers that. If anyone gets around to one of these, please let me know, as I'm still intrested.

  3. carthik
    Member
    Posted 10 years ago #

    smikwily, Generally folks do not answer things they cannot deal with, and there is no importer for b2evo blogs.
    I would be glad to change the b2 importer, or something to get this to work for you, but for that I would have to install b2evo, and then try to look at the tables and stuff.
    I beleive b2evo is a branch off of b2, so this should not be too difficult, however I cannot do this unless I have access to a running b2evo blog, and the associated tables. Same is the case with others, more or less, I guess.

  4. Fahim
    Member
    Posted 10 years ago #

    I'd be happy to work on this since I was actually working on an MT to b2evo importer before I gave up on that and moved straight on to WP :p But I'll try to work on this over the next few days and get you something that you can test out at your end :)

  5. smikwily
    Member
    Posted 10 years ago #

    Let me know what you need and I can get it for you, as I'm running a evo site. I can get you a DB dump, although I've held off upgrading to the latest version, fearing that when I do move, I'll miss the chance. Let me know what version of DB you need and I'll upgrade to that point.

  6. Fahim
    Member
    Posted 10 years ago #

    I'm using the latest b2evo to write my converter but I don't think there has been too much of a change in table structures from older versions - though I might be totally wrong. Let me write the converter, we'll test it out on your site and if it fails, then modify it accordingly :)

  7. Fahim
    Member
    Posted 10 years ago #

    OK, posted this yesterday but the server change seems to have wiped that one :p I've created a b2evo to WP importer and it seems to work fine on the test database that I installed. One thing to keep in mind is that though I do have an option to select the b2evo blog to import, it really doesn't work - it simply all existing entries at the moment since I'm not sure how b2evo users want to import their entries due to the wacky category-based blog definition system b2evo uses :p Anyway, try the script out and let me know how it goes for you. It can be found at: http://sm.farook.org/files/b2evo2wp.phps

  8. smikwily
    Member
    Posted 10 years ago #

    Got updated last nite late before bed and tried the importer once or twice. Think it only pulled a few records, but I'll play with it a bit more today and tonite and see if I have any additional luck.

  9. smikwily
    Member
    Posted 10 years ago #

    I know it's not nice to triple post, but wanted to give you a big thanks. I hate those people who "one hit wonder" for things, disappearing after their wish is granted. Thanks again for your hard work.

  10. Fahim
    Member
    Posted 10 years ago #

    Could you send me an SQL dump of your b2evo data by any chance? If you can, a link to download the file from is sufficient, if you don't want to e-mail me the stuff :)

  11. smikwily
    Member
    Posted 10 years ago #

    Fahim, I emailed a link to you via the email address listed on your website. If you need anything else, let me know.

  12. Anonymous
    Unregistered
    Posted 10 years ago #

    Contrary to common belief, the common root of both apps doesn't help a lot here. DB structures are way off from each other and writer a clean importer from one to the other is as complex as for any other pair of random blogtools out there.

  13. Anonymous
    Unregistered
    Posted 10 years ago #

    btw: there is a very good MT to b2evo script available.. just google and you shall find..

  14. smikwily
    Member
    Posted 10 years ago #

    If someone can get me from Evo to MT, I can go from MT to WP. I have no problems going that route, but was unsure of how to go that way either. I have done a fair share of digging, but haven't found anything yet.

  15. Fahim
    Member
    Posted 10 years ago #

    Actually, the DB structures are not that dissimilar - in fact, the latest version of b2evo seems to get even closer to the WP structures from what I saw of the structures in writing my b2evo to WP importer. But the problem seems to be that the b2evo database structures do change (or at least *have* changed) and so an importer script might not always work except for that particular release. Oh well :p

  16. smikwily
    Member
    Posted 10 years ago #

    Thanks again Fahim. Seems the new version worked pretty well. If I find any issues, I'll be sure to post them.
    Checking the DB, it appears the post_date_gmt in wp_posts didn't get filled in, although it doesn't appear to cause any issues currently.
    I didn't use many of the bells and whistles in the previous versions, so I can't verify if any of those work.

  17. carthik
    Member
    Posted 10 years ago #

    running upgrade.php after the import will fix the post_date_gmt problem, along with a few odd problems.

  18. smikwily
    Member
    Posted 9 years ago #

    The upgrade.php thing didn't work for me either, but I didn't have any major issues, so I more or less just skipped it. The GMT field is empty for me as well though.

  19. dappleyard
    Member
    Posted 9 years ago #

    I've fixed the GMT issue, and have posted the updated file on my blog at http://ppleyard.org.uk/tutorials_b2evoimport.php.

    I take no credit for any of this though, it's all fahim's work - i just made a couple of changes.

  20. giles
    Member
    Posted 9 years ago #

    I got an error that I am assuming is because I am using a different version to the one that it was written for.

    an error about an unknown field ..

    All right sparky, this is where the actual import takes place! Do you feel lucky today? :p<br />
    Importing User records …<br />
    Invalid query: Unknown column ‘dateYMDhour’ in ‘field list’<br />
    SQL : INSERT INTO
    gsblog_users (user_login,user_pass,user_firstname,user_lastname,user_nickname,user_icq,user_email,user_url,user_ip,user_domain,user_browser,dateYMDhour,user_level,user_aim,user_msn,user_yim,user_idmode) VALUES (’giles’,'a7050b133a7496ea15a181b722eb8db3′,’Giles’,'Shaxted’,'Shaggy’,'79223521′,’giles@shaxted.co.uk’,'giles.shaxted.co.uk’,'’,'’,'’,'2004-08-29 01:34:58′,’10′,’BarefootGiles’,'caymaniac@hotmail.com’,'Giles_99′,’firstname’);

    No posts seem to have been imported nor do any users (but i am the only user really)

    any help would be appreciated. I also tried the RSS import that said it worked .. but it didn't ... the trouble there is I have to import all blogs from my b2e site ... and i only want the defualt one .. but no biggee ... I so want wordpress now .. the lack of technical upgrading and desire to improve b2e is really disturbing.

  21. giles
    Member
    Posted 9 years ago #

    someone must know how to help me on this ... wouldn't it be nice to enable people using B2evolution (recent version now) to cross over to wordpress 1.5 (or recent version) ... this is a great thing that someone made, can it be made to work again now ? please .. please with a cherry on top.

  22. NullMind
    Member
    Posted 9 years ago #

    same problem here :(

    All right sparky, this is where the actual import takes place! Do you feel lucky today? :p
    Importing User records ...
    Invalid query: Unknown column 'dateYMDhour' in 'field list'
    SQL : INSERT INTO wp_users (user_login,user_pass,user_firstname,user_lastname,user_nickname,user_icq,user_email,user_url,user_ip,user_domain,user_browser,dateYMDhour,user_level,user_aim,user_msn,user_yim,user_idmode) VALUES

  23. giles
    Member
    Posted 9 years ago #

    If you guys at wordpress can work this out there are loads of people on te B2evo forums who aren't happy, it seems nice the whoel multiple blgo thing but most people use the multiple blog for friends list on the side or wishlists etc .. wordpress with it's new page maker system now kicks it's ass.

    But I need to be able to bring my posts over and i don't know how to do it in RSS and the B2evo2wp.php ain't working right now .. so comon sparky .. someonewho knows what up and whats down take control .. please !!

  24. giles
    Member
    Posted 9 years ago #

    Just to bring a solution to this website Dave Appleyard posted this in his personla thread on his site ... and this solution worked for me from B2Evo Paris to WP 1.5

    Anyone who can’t get this to work, try this new script here:

    http://www.khubla.com/b2evo2wp.php.txt courtesy of Dave.

  25. seadawg
    Member
    Posted 9 years ago #

    Great script! It took me a while to find it, but it did the trick for me :)
    I did, however, have one problem, and wrote my own script to fix it. In the conversion, the b2evo permalink titles (post_urltitle in the posts table) are not preserved, i.e. post_title_here becomes post-title-here, which breaks existing links.
    The script I wrote is at http://www.dawgiestyle.com/blog/2005/04/28/91/, where you can also read more about it.
    Perhaps somebody would like to include it in the b2evo2wp.php script?

  26. Michael Rodrguez Torrent
    Member
    Posted 9 years ago #

    Hi all,
    I've just finished hacking the updated khubla.com version of the script and have made the following changes:
    - Now checks for WordPress install and loads DB info automatically: no more step 2!
    - Inserts post_name data so that permalinks on imported posts will work.
    - Cleaned up coding style and switched to WP functions wherever possible (i.e. for string sanitizing and db operations).
    - Trimmed out about 100 lines of code.

    http://themikecam.com/downloads/import-b2evolution.php.txt (rename to .php, of course)
    Simply upload to your wp-admin folder and run.

    I've tested it on my own b2evo blog, but I'd welcome further testing and would be willing to fix any bugs that arise.

    Here's the unified diff if anyone's interested: http://themikecam.com/downloads/import-b2evolution.diff.txt

  27. Michael Rodrguez Torrent
    Member
    Posted 9 years ago #

    Updated to import category hierarchy (parents and children) instead of just a flat list as before.

  28. Roland
    Member
    Posted 9 years ago #

    Hi, I have a strict hosting plan on a shared server and scripts are killed if they take too much time or memory. And I get an email telling me to stop the script or they can close my account until I "fix" my scripts.

    So I would like to know if this b2evo to WP script operate in small chunk or import everything at once.

  29. Michael Rodrguez Torrent
    Member
    Posted 9 years ago #

    Hi Roland, this script imports everything at once. Unless you have a very large blog or your host has ridiculous limits, however, I don't believe you should have a problem. If you do, though, let me know and I'll see what I can do to help.

  30. Roland
    Member
    Posted 9 years ago #

    @mrtorrent,
    ok I will give it a try. It will be killed at worst so I don't have anything to loose. Thank you for your reply.

Topic Closed

This topic has been closed to new replies.

About this Topic