@cagatay You should ask in the NodeBB forums. Perhaps reference this postWho read - Flarum Community
Unsolved [NodeBB] Custom fields plugin
pwsincd last edited by pwsincd
Hi again , on our sire we require the use of custom user fields so we can refer to them with our own bespoke plugin we are going to develop , however this plugin https://github.com/NicolasSiver/nodebb-plugin-ns-custom-fields fails to function on recent builds of nodeBB i wonder if anyone here has had any success in getting custom fields to work ? some of the code in the default nodebb suggests it is already possible .
Also this plugin would be more suitable as it suggests registration fields… but likewise it fails https://www.npmjs.com/package/nodebb-plugin-itu-custom-registration-fields
@pwsincd This is always a problem with Open Source development in the sense that packages are often suddenly abandoned and no response ever provided to any requests. Does this plugin make NodeBB crash, or does it actually install ?
I think the only way forward here is to fork and update it for the latest version, which may take some time.
pwsincd last edited by
@phenomlab it appears to install but has nothing to work on … no admin edits visible etc…
@pwsincd On checking this plugin, the install appears to actually fail - see the below from the log
022-04-01T10:43:11.554Z [4567/513037] - [33mwarn[39m: [plugins/nodebb-plugin-ns-custom-fields] The plugin.json field "library" is deprecated. Please use the package.json field "main" instead. 2022-04-01T10:43:11.555Z [4567/513037] - [33mwarn[39m: [plugins] Unable to load library for: nodebb-plugin-ns-custom-fields 2022-04-01T10:43:11.555Z [4567/513037] - [31merror[39m: Error: Cannot find module './src/emitter' Require stack: - /home/sudonix/nodebb/require-main.js - /home/sudonix/nodebb/app.js at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15) at Function.Module._load (internal/modules/cjs/loader.js:746:27) at Module.require (internal/modules/cjs/loader.js:974:19) at require (internal/modules/cjs/helpers.js:101:18) at Module.require.main.require (/home/sudonix/nodebb/require-main.js:8:10) at /home/sudonix/nodebb/node_modules/nodebb-plugin-ns-custom-fields/plugin/nodebb.js:9:31 at Object.<anonymous> (/home/sudonix/nodebb/node_modules/nodebb-plugin-ns-custom-fields/plugin/nodebb.js:47:3) at Module._compile (internal/modules/cjs/loader.js:1085:14) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10) at Module.load (internal/modules/cjs/loader.js:950:32)
@pwsincd hi. Just following up on this thread (I know it’s old) but was curious to understand if it’s still an issue or not ?