nicolassiver / nodebb-plugin-ns-custom-fields Goto Github PK
View Code? Open in Web Editor NEWAdds additional fields to the user's account
License: MIT License
Adds additional fields to the user's account
License: MIT License
Seems like this conflicts with a recent nodebb update, unfortunately I cannot tell which because my users just told me today it was no longer working. Any idea? I have the following error in the dev console, don't know if its related or not:
Uncaught TypeError: c[a.type] is not a function
o @ nodebb.min.js?bf90aa35:21
s @ nodebb.min.js?bf90aa35:21
(anonymous function) @ nodebb.min.js?bf90aa35:21
d.onack @ nodebb.min.js?bf90aa35:8
d.onpacket @ nodebb.min.js?bf90aa35:8
(anonymous function) @ nodebb.min.js?bf90aa35:8
n.emit @ nodebb.min.js?bf90aa35:8
h.ondecoded @ nodebb.min.js?bf90aa35:8
(anonymous function) @ nodebb.min.js?bf90aa35:8
n.emit @ nodebb.min.js?bf90aa35:8
d.add @ nodebb.min.js?bf90aa35:10
h.ondata @ nodebb.min.js?bf90aa35:8
(anonymous function) @ nodebb.min.js?bf90aa35:8
n.emit @ nodebb.min.js?bf90aa35:8
d.onPacket @ nodebb.min.js?bf90aa35:8
(anonymous function) @ nodebb.min.js?bf90aa35:8
n.emit @ nodebb.min.js?bf90aa35:8
o.onPacket @ nodebb.min.js?bf90aa35:9
o.onData @ nodebb.min.js?bf90aa35:9
ws.onmessage @ nodebb.min.js?bf90aa35:9
Would be awesome for write API support.
Much like this plugin has done: https://github.com/NodeBB/nodebb-plugin-friends
I have a use case for only allowing an administrator to manage a custom field. Would be great if this were a field-creation option.
This plugin no longer loads when nodebb is starting, and gives the following error:
2018-12-18T17:11:56.526Z [4567/25413] - error: Error: Cannot find module './src/emitter'
inside the nodebb.js
file.
Good morning,
I have an error in the admin of this plugin.
Erreur Interne.
Oops ! Il semblerait que quelque chose se soit mal passé !
/admin/plugins/custom-fields
Failed to lookup view "admin/plugins/custom-fields" in views directory "/var/www/webapps/ddril/prison/build/public/templates"
I have the version 1.6.1 of NodeBB
Thanks in advance for your support.
when i add a new filed, how can i get the user's info by querying database? I mean, how to code?
OSX, custom fields version 5.0.1
I have tried with node 8.1.4 and 9.6.1, and I keep getting this after installing and running the build script for the acp, yet the file in question has not been changed:
jasperspeicher:acp jjs$ npm run build
> [email protected] build /Users/jjs/Documents/Business/AWE/awe-member-directory/nodebb-plugin-ns-custom-fields/client/acp
> NODE_ENV=production browserify index.js -g [envify --NODE_ENV 'production'] -t [ babelify --presets [ es2015 react ] ]| uglifyjs -c -m > ../../public/js/acp.js
TypeError: /Users/jjs/Documents/Business/AWE/awe-member-directory/nodebb-plugin-ns-custom-fields/client/acp/index.js: _esutils2.default.keyword.isReservedWordES6 is not a function
at Object.isValidIdentifier (/Users/jjs/Documents/Business/AWE/awe-member-directory/nodebb-plugin-ns-custom-fields/client/acp/node_modules/babel-types/lib/validators.js:167:61)
at toIdentifier (/Users/jjs/Documents/Business/AWE/awe-member-directory/nodebb-plugin-ns-custom-fields/client/acp/node_modules/babel-types/lib/converters.js:210:10)
at Object.toBindingIdentifierName (/Users/jjs/Documents/Business/AWE/awe-member-directory/nodebb-plugin-ns-custom-fields/client/acp/node_modules/babel-types/lib/converters.js:218:10)
at exports.default (/Users/jjs/Documents/Business/AWE/awe-member-directory/nodebb-plugin-ns-custom-fields/client/acp/node_modules/babel-helper-function-name/lib/index.js:41:12)
at PluginPass.ObjectProperty (/Users/jjs/Documents/Business/AWE/awe-member-directory/nodebb-plugin-ns-custom-fields/client/acp/node_modules/babel-plugin-transform-es2015-function-name/lib/index.js:20:63)
at newFn (/Users/jjs/Documents/Business/AWE/awe-member-directory/nodebb-plugin-ns-custom-fields/client/acp/node_modules/babel-traverse/lib/visitors.js:276:21)
at NodePath._call (/Users/jjs/Documents/Business/AWE/awe-member-directory/nodebb-plugin-ns-custom-fields/client/acp/node_modules/babel-traverse/lib/path/context.js:76:18)
at NodePath.call (/Users/jjs/Documents/Business/AWE/awe-member-directory/nodebb-plugin-ns-custom-fields/client/acp/node_modules/babel-traverse/lib/path/context.js:48:17)
at NodePath.visit (/Users/jjs/Documents/Business/AWE/awe-member-directory/nodebb-plugin-ns-custom-fields/client/acp/node_modules/babel-traverse/lib/path/context.js:105:12)
at TraversalContext.visitQueue (/Users/jjs/Documents/Business/AWE/awe-member-directory/nodebb-plugin-ns-custom-fields/client/acp/node_modules/babel-traverse/lib/context.js:150:16)
I've recently installed ns-custom-fields on nodeBB 1.16.2 and I'm hitting a loading issue as from the log below
2021-03-30T12:37:58.105Z [4568/23965] - error: Error: Cannot find module './src/emitter'
Require stack:
- /home/standarduser/backstage_prd/require-main.js
- /home/standarduser/backstage_prd/app.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
at Function.Module._load (internal/modules/cjs/loader.js:667:27)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Module.require.main.require (/home/standarduser/backstage_prd/require-main.js:8:10)
at /home/standarduser/backstage_prd/node_modules/nodebb-plugin-ns-custom-fields/plugin/nodebb.js:9:31
at Object.<anonymous> (/home/standarduser/backstage_prd/node_modules/nodebb-plugin-ns-custom-fields/plugin/nodebb.js:47:3)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
2021-03-30T12:37:58.105Z [4568/23965] - verbose: [plugins] Could not load plugin : nodebb-plugin-ns-custom-fields
is it a known problem?
Especially for an "about me" section, markdown formatting would be appreciated! :)
Hi !
Quick disclaimer : I'm a front-dev and I'm very bad at back-end for now so it may be my fault. I don't understand fully everything when it comes to console, error logs, etc.
I tried yesterday to install this plugin to my nodeBB forum in local but once I stop nodebb and re-start it, it just doesn't work : the "node.exe" console pops in and out 3 to 4 times before not launching anymore and when I look at the error logs, it says that the server isn't running - eventhough it is.
When I uninstall this plugin, it works just fine.
If anyone have a solution, I'd like to hear it !
Thanks !
Sometimes when opening a profile, the custom field(s) partial does not show up within the profile unless you refresh the page entirely.
Using Lavender on v0.7.0.
Hey, we create new user automatically using API. We like to add custom fields, while doing so.
With this plugin, I am able to add new custom fields from profile page. How do I do the same while creating user?
Basically, I like to do something like this:
User.create({username: '...', email: '...', fullname: '...', customField: '...'})
and be able to edit that field using nodebb-plugin-ns-custom-fields
plugin.
is that possible?
Thank you!
Trying to navigate to admin/plugins/custom-fields leads to this error message:
I am using the latest version of the plugin available in NodeBB v1.12.2. In addition, the following error messages appear on restart:
2019-08-28T14:24:19.767Z [4567/8025] - �[33mwarn�[39m: [deprecated] requiring core modules with `module.parent.require('./src/emitter')` is deprecated. Please use `require.main.require("./src/<module_name>")` instead. at /home/forum/NodeBB-1.12.2/node_modules/nodebb-plugin-ns-custom-fields/plugin/nodebb.js:9:31 2019-08-28T14:24:19.769Z [4567/8025] - �[31merror�[39m: Error: Cannot find module './src/emitter' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Module.require (internal/modules/cjs/loader.js:690:17) at require (internal/modules/cjs/helpers.js:25:18) at Module.require.main.require (/home/forum/NodeBB-1.12.2/require-main.js:8:10) at /home/forum/NodeBB-1.12.2/node_modules/nodebb-plugin-ns-custom-fields/plugin/nodebb.js:9:31 at Object.<anonymous> (/home/forum/NodeBB-1.12.2/node_modules/nodebb-plugin-ns-custom-fields/plugin/nodebb.js:47:3) at Module._compile (internal/modules/cjs/loader.js:776:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10) at Module.load (internal/modules/cjs/loader.js:653:32) 2019-08-28T14:24:19.770Z [4567/8025] - �[33mwarn�[39m: [plugins] Unable to parse library for: nodebb-plugin-ns-custom-fields
Hello! I'm running NodeBB 1.5.2 and Custom Fields 5.0.0.
I have successfully added the into profile.tpl, but, when I go to "Edit" in my Profile and click on Change Extra, it returns to a non-existent page. In addition, it adds a "dot" between the NodeBB url and the custom-fields link:
https://walkingplayers.com/foro./edit/custom-fields
My Forum is https://walkingplayers.com/foro
How could I fix this?
In advance, thank you so much!
Hi, Can you support custom field as textarea ?
Hi Nicolas, I'm currently trying to update to 0.9.1, including your plugin.
After changing postTools
to posts
in app/nodebb.js
on line 10, the plugin appears to work pretty well. When trying to edit my profile fields though, I noticed the input section is displayed in the breadcrumbs instead of the intended location in the template.
The markup (where it should be):
The markup (where it actually is):
The template code:
...
</a>
<!-- END sso -->
</div>
<!-- ENDIF sso.length -->
</div>
<div class="panel panel-default ns-custom-fields-panel">
<div class="panel-body text-center">
<div class="row">
<div class="col-md-12">
<!-- BEGIN customFields -->
<span class="account-bio-label">{customFields.name}</span>
<span class="account-bio-value">{customFields.value}</span>
<!-- END customFields -->
</div>
</div>
</div>
</div>
</div>
</div>
...
When setting a custom field of the type "select" that field is not shown in the profile.
Multiple data representation methods would be great: For example checkboxes/radio buttons, text areas and text fields, selects etc.
Hi im having some trouble with this plugin running 1.19.3 and the stock persona theme . this plugin will install and activate fine .. but does not appear in plugins list or anywhere in the admin panel .. am i missing something totally obvious or is this an issue ? hope you can advise .. thanks.
Looks like ns-custom-fields is causing some issues after upgrading: NodeBB/NodeBB#5756 (comment)
Is there any way to implement this amazing view on the admin panel using vanilla theme?
Is this compatible with NodeBB 1.13.3? I've installed and activated it, and restarted NodeBB, but I don't see it under Settings -> Plugins. Is that where it should appear?
What would be the best method to insert a set of default keys and values for them also push/store them to all users including new ones when they join too?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.