First of all, I'm new to NodeJS development. I'm liking it so far (except for a few annoyances here and there).
I am extending development of nodebb-plugin-import-ipboard (forked and will send a PR once it's done) to support a bunch of stuff the current plugin does not currently support, for instance:
IPB replies which are in a special blockquote format.
A few more things...
On my nodebb-plugin-import-ipboard/index.js file, which I'm requiring from a manual test.js file (so it's not running inside NodeBB!), I placed a:
var db = require('nodebb-plugin-import/server/db');
But when I try to use it like this:
var imported_post = db.getObject("_imported_post:1566");
I just get "undefined".
I can see on the debugger variables Redis is loaded (but I don't know if it was loaded correctly.)
I also tried loading data instead of db:
var data = require('nodebb-plugin-import/server/data');
var imported_post = data.getImportedPost("1566");
And I just get undefined.
Can someone tell me what I'm doing wrong?
Thank you for the links. As the "how to import" question will be important for many users I'd highly suggest to add this information into the docs and wiki.
Did no one (including the "paid support") wrote this importer before?
If not I'd even suggest the "paid support" have at least a thought if an official import option for Allura exports would help nodeBB in general to grow - especially now as SourceForge (which uses Allura and has the same export) looses users which look for alternatives which are able to import the old forum data with as less as possible effort.