0_1530439963530_d9624442-f25a-4fda-854f-30e64b78350d-image.png
Not adsense, just like a picture or js code. Widget plugin cant insert here.
After some research I have found that default ipb-importer doesn't provide options to import custom user fields, etc.
I will fork IPB Import
My main concern is data structure, for example in IPB, most addons
just altering users table by adding new fields. As for NodeBB
It seems It's better to create documents with _key
like someCustomField:uid
and don't alter User document.
What can you recommend? Main idea is to have some data in database that could be utilized by future plugins.
The Import plugin already alters some the records hashes and adds custom field for later use, they're all using the _imported_
namespace.
{
"tid": 29897,
"uid": 8,
"cid": 2,
"mainPid": 29897,
"title": "A quaint old forum tradition: The Introduction",
"slug": "29897/a-quaint-old-forum-tradition-the-introduction",
"timestamp": 1414978528000,
"lastposttime": 1415421136000,
"postcount": 41,
"viewcount": 9,
"locked": false,
"deleted": false,
"pinned": false,
"_imported_tid": 29887,
"_imported_uid": 16165,
"_imported_cid": 1,
"_imported_slug": "",
"_imported_path": "/Forum/207593/message/1414978528/A+quaint+old+forum+tradition-+The+Introduction%26gt%3B%26gt%3B%26gt%3B",
"_imported_title": "A quaint old forum tradition: The Introduction>>>",
"_imported_content": "",
"_imported_guest": "",
"_imported_ip": "96.232.167.174",
"_imported_user_slug": "",
"_imported_user_path": "",
"_imported_category_path": "",
"_imported_category_slug": "",
"relativeTime": "2014-11-03T01:35:28.000Z",
...
check this thread to find out why.
nodebb-plugin-import-network54/issues/2 and how you can delete them if you choose to, the importer does not force you to delete them.
If you want to add more fields, I am more than happy to accept a pull request or to add them my self, as long as they make sense and they're not redundant.
let me know what you have in mind
@bentael After some pause, I think I'm ready to work on custom importer. After some investigation I have found, that Importer works with classic/basic entities. Even If I will create custom importer, for example nodebb-plugin-import-ipboard-very-custom
, import plugin will use only designed methods (I will be able to import additional fields) like: setup, getPaginatedUsers, getPaginatedCategories, getPaginatedTopics, getPaginatedPosts, and several utility methods like logging, testRun, etc.
My question: as author of importer, what do you recommend to do if I want to import additional entities? (Example: awards)