[nodebb-script-paypal-donate] Paypal Donate button widget

NodeBB Plugins

Suggested Topics


  • 2 Votes
    4 Posts
    379 Views

    @gotwf said in [nodebb-tools] CLI tools for NodeBB management:

    Let us know, eh? Rock on!

    Will do 🙂

  • 4 Votes
    2 Posts
    526 Views

    Awesome work! Always nice to see new widgets be created 😄

  • 0 Votes
    1 Posts
    864 Views

    I wanted to debug some code I had written in my plugin and did a quick search to see if I could create a Node.js REPL that would function in the context of my plugin. It turned out to be quite simple to do.

    Just add this to your plugin's static:app.load method:

    setTimeout(function() { console.log("About to start REPL"); var repl = require("repl"); var util = require('util'); var replServer = repl.start({ prompt: "swf-cms> ", breakEvalOnSigint: true, ignoreUndefined: true, useGlobal: true, useColors: true }); var context = replServer.context; context.require = require; context.module = module; context.context = util.inspect(replServer.context, {depth: 0}); }, 3000);

    You'll want to wrap this in something to prevent it from running outside of dev mode. Also, load up the context object with anything that you want to be conveniently available in the REPL. FYI, I used the setTimeout to give Nodebb a chance to finish loading before it gives you the prompt.

    Have fun.

  • 2 Votes
    4 Posts
    2k Views
    Ran install command. Not listed in plugins. Check command - ran correctly. Anger Rage Check post "bleeding edge (v.5)" Despair.

    Can't wait to test this out!

  • 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 🙂