WordPress to NodeBB
-
okay.png,
@vegetagz6 unless you can figure out the answers to my questions, I don't think i can help you much, sorry
anyone else has a standard WP DB with some data?
-
Mentioning previous people that wanted this plugin
-
Ok am sending u a standard database, which has all the standard tables like wp_comments, wp_users etc. Check your pm and lemme know
Ya the previous database was heavily modified, in the sense that it was part of a multisite installation, and belonged to one of the most active site I have.
-
@vegetagz6 no updates yet - maybe next week, sorry ive been very busy combined with very sick for the past 2 weeks.
-
wordpress exporter released,
https://www.npmjs.org/package/nodebb-plugin-import-wordpress@vegetagz6
I only tested against your "dota" db, looks good so far except that you only use 1 out of 2 categories. Your "droid" db had only 2 users..Needs more testing of course,
but can't do much without many DB Dumps,
I also need to export tags for topics but I need more dumps to test with.
-
@John-Smith
@Hawon-Nguyen
@Flexi-Hackify
@Tan-Nguyenread 1 post up
To use it, you just need to install https://github.com/akhoury/nodebb-plugin-import and follow instructions in the Admin plugin page -
@Tan-Nguyen nothing redirects automatically, you have to set something in the middle to redirect. The import plugin will provide a map from old to new.
Read this note: https://github.com/akhoury/nodebb-plugin-import#imported-now-what focus on the redirect section
-
[email protected] now supports importing topic tags - to use it, just use the latest
nodebb-plugin-import
, and select thenodebb-plugin-import-wordpress
from the exporters list (or paste it in the input field) and it will install the latest. As a precaution, uninstall the previous version first
npm uninstall nodebb-plugin-import-wordpress
Right now I query all tags and create a map using the topic ids, I know you don't care, but the impact of this is that if you have millions or maybe hundreds of thousands of tags, depending on your machine, you might run into memory issues
are u a sql guru?
If you are a MySQL guru and can help optimizing the query, try to answer this question.
http://wordpress.stackexchange.com/questions/169863/wordpress-custom-sql-query-get-all-posts-with-category-id-and-a-concated-listif you need to look at the exporter code, it has more fields to select here than the stackexchange question because I wanted to simplify the question as much as possible.
https://github.com/a5mith/nodebb-plugin-import-wordpress/blob/master/index.js#L127-L233 -
even more, now the wordpress gallery shortcodes are supported, with the old post ids, i.e.
[gallery ids="123,456,789"]
shortcodes can be converted to, either,<img>
tags, if you want a gallery plugin, you can then use @psychobunny's nodebb-plugin-gallery, or you can just convert theids
to full URLs which then you can use within your own plugin.read this section for more details
https://github.com/a5mith/nodebb-plugin-import-wordpress#gallery-shortcode-note