[nodebb-plugin-write-api]How do I POST form data with UTF-8 encoding by using curl?

NodeBB Plugins

Suggested Topics


  • 0 Votes
    2 Posts
    335 Views

    You need to upgrade to latest nodebb for the latest recent cards plugin. If you want to stay on 1.14.3 downgrade recent cards to 1.0.13

  • 0 Votes
    17 Posts
    6k Views

    Sooooo, that worked. 🙂

    Removed the whack and it started working right away.

  • 5 Votes
    4 Posts
    2k Views

    any reason you have the link text field hidden on settings page, i want to set a default link text, and i noticed the form group you have a class of hidden, so its not shown on the settings page

  • 0 Votes
    1 Posts
    1k Views

    I am wanting to add some fields to the registration page, so I thought I'd write a plugin for it.

    It looks like the process would be:

    Add a 'filter:register.build' hook function to insert the html for the extra form inputs. Add a 'filter:user.custom_fields' function to insert the key/value to the userData object.

    I looked at the spam-be-gone plugin to get an understanding of how to go about it, but my question is: Is it possible to place my added field(s) at the top of the form -- or anywhere else -- rather than the bottom?

    I can also do this by adding my additional html into the register.tpl file and then adding the key/value to the userData object in /src/user/create.js, but I'd rather do it via a plugin as it seems cleaner. I don't need the data to appear on the site (i.e. the user's profile) so just these two things work fine.

    The problem is I believe I'd have to do a 'git pull --rebase' each time I wanted to get updates for nodebb which could break things over time. Seems hacky. Plus, it is more maintainable to keep my modifications modular.

    So, is there a better way? What's the best way to go about doing something like this? I'm just assuming that doing it via a plugin would be ideal, but if there are better options that are clean, then please let me know.

    Lastly, if I wanted to have a function run a check on this info for duplicates during the registration (exactly like the one for username) can you steer me in the right direction on how I'd go about it?

    Thanks!

  • 0 Votes
    2 Posts
    1k Views

    We don't use any libraries that emulate classical inheritance. For namespacing we utilize:

    For front end, we use require.js The node.js backend uses (CommonJS module).

    If you're writing a plugin, feel free to use whatever method you are comfortable with 🙂