Giter Club home page Giter Club logo

nodebb-plugin-ns-custom-fields's People

Contributors

jongarrison avatar nicolassiver avatar rekkisomo avatar veegie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

nodebb-plugin-ns-custom-fields's Issues

Profile fields are not visible on profile edit page

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

./src/emitter no longer exists

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.

Internal Error

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.

acp won't build

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)

Issue on loading on nodeBB 1.16.2

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?

Markdown in fields

Especially for an "about me" section, markdown formatting would be appreciated! :)

The plugin makes it impossible to nodebb start

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 !

Refresh required within profile

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.

How to create custom fields programatically while creating new user through API?

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!

ACP Will Not Load

Trying to navigate to admin/plugins/custom-fields leads to this error message:
image

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

Can't access to "Change Extra" section in Profile

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!

Input fields are displayed in the breadcrumbs area in 0.9.1

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.

Looks like this:
bildschirmfoto 2015-12-04 um 19 18 03

The markup (where it should be):
bildschirmfoto 2015-12-04 um 19 20 13

The markup (where it actually is):
bildschirmfoto 2015-12-04 um 19 19 07

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>
...

Field input types

Multiple data representation methods would be great: For example checkboxes/radio buttons, text areas and text fields, selects etc.

administation panel

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.

how to use?

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?

Question - Default key/type/name

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.