WordPress to NodeBB
-
@Flexi-Hackify said:
@a_5mith Any updates for this yet? I have been waiting since forever.
@a_5mith said:
I've hit an obstacle at getting the comments in due to their ID, but I will get to it.
I've not touced the wordpress plugin for a while. You're welcome to take a look to see how if it's easily doable. The issue is the IDs of the comments start at 1, as do the IDs of the posts. But there's nothing linking the comment IDs to the topic ID. From what I could see, I've not looked at this for a while. I may look now 4.0 is out and see how it's changed. But if someone else wishes to take a look at this, I won't say no.
-
I've upped what I've got so far so other people can take a look, I've made @bentael a collaborator on this as there's a few bits and pieces I'm not sure about. For example matching the comment to the post, as it's done in the term_taxonomy and not in with the actual data itself. So for example, comment 23 is for post 3 etc, rather than having everything together.
It's here if anyone wants to check it out (it's not done yet, there's still some SMF table names in the
getPosts
portion) -
-
@Tan-Nguyen said:
@a_5mith How is it going mate? Everything going good so far?
@bentael is in charge of the Wordpress Exporter these days. I'm not sure on the status of it however, you can find more info about it here
-
wordpress exporter is coming soon, probably couple of weeks, very busy this month guys sorry.
track it here
https://github.com/a5mith/nodebb-plugin-import-wordpress -
-
@Rahul-Ramesh said:
@a_5mith this would really help us if we could shift from wordpress to nodebb. Since wordpress is one of the most popular cms, this plugin might help a lot of people.
Any deadline for this one? Really curious to knowAs an extension to the chat message you sent, this is the progress on the Wordpress Plugin.
@bentael said:
wordpress exporter is coming soon, probably couple of weeks, very busy this month guys sorry.
track it here
https://github.com/a5mith/nodebb-plugin-import-wordpress -
@Rahul-Ramesh said:
@a_5mith @bentael really nice to hear that Just out of curiosity, how will the import preserve the images that are uploaded into wordpress media library.
Not thought about that. I guess the import process would copy over the link to the image from the post content, so if the server hosting the images is still live, then the images would be transferred (assuming Wordpress uses absolute URLs). However this would break when you transferred the domain name over.
One option could be to create the same folder structure in the public folder of Nodebb, so you'd have a folder that looks something like
public/wp-content/theme-name/images/uploads/
then the image file names, then all you'd need to do is copy all the images from your existing server to the new one. I've not used Wordpress for a while, so I'm not sure if that would work though. Depends how the images are linked. I could have a look into it when I've got a spare 10 minutes. -
about the images:
I would keep them live in their own links, or if you move them, you can create a JSON map to redirect all old links to the new ones.
You can basically do the same thing with old categories, topics, and user links (maybe not for posts links because a lot of them are just #pid which are handled on the JS)read this note: https://github.com/akhoury/nodebb-plugin-import#imported-now-what
and see this module: https://github.com/akhoury/RedirectBB - you can basically use it for any linksOR if you're fancy, and dont want to run another process, you can use http://wiki.nginx.org/HttpMapModule
PS: Wordpress importer soon, maybe end of next month. it's ok to bug me every 2 weeks so I wont forget.
-
@Flexi-Hackify said:
WordPress to NodeBB
@Rahul-Ramesh said: @a_5mith this would really help us if we could shift from wordpress to nodebb. Since wordpress is one of the most popular cms, this plu...
NodeBB Community (community.nodebb.org)
-
any of you have a decent wordpress 4.x DB I can develop against?