Skip to content

NodeBB Plugins

Discussion regarding NodeBB Plugin development.

1.8k Topics 15.0k Posts
Most Voted Plugins

Subcategories


  • Have a question about building a plugin? Ask here
    427 Topics
    2k Posts
    Bharat RathiB

    Hi all,
    Well this is my first time writing a plugin which involves using client side hooks...
    For a start, i would want my plugin to listen to a hook which activates when the topic page is completely loaded and topic tools are loaded too.

    For which I wrote this function:

    'use strict'; /* globals document, $ */ $(document).ready(function () { function alertType(type, message) { require(['alerts'], function (alerts) { alerts[type](message); }); } console.log('nodebb-plugin-quickstart: loaded'); $(window).on('action:topic.loaded', notifyBox); function notifyBox() { console.log("in notify box"); alertType('success', "done") } });

    but this is not working... I can only see "nodebb-plugin-quickstart: loaded" on the console.

    Where am i going wrong here??

  • Need a plugin developed? Ask here!
    222 Topics
    1k Posts
    barisB

    Plugin doesn't show usernames if they set their status to offline AFAIK

  • 5 Votes
    5 Posts
    3k Views
    julianJ

    @niro That's right... I encourage plugin writers to use the scripts property in plugin.json over the scripts.get hook if at all possible, as the script is then minified on production.

  • 2 Votes
    2 Posts
    3k Views
    meetdilipM

    Another reason to love NodeBB. I am not making much changes to my forum now as I am under the impression that 0.5x will be out soon. Please correct me if I am wrong.

  • 3 Votes
    15 Posts
    6k Views
    S

    @a_5mith That's it!

    @psychobunny It was cache issues as usual, i should have learnt by now haha.

  • [nodebb-plugin-mixcloud] MixCloud Embedding

    3
    4 Votes
    3 Posts
    2k Views
    P

    Just did a quick count, we're at 92 plugins. Won't be long before we hit 100 😄

  • 0 Votes
    6 Posts
    5k Views
    P

    Maybe it would be better to keep that config in the plugin's directory and then modify this line to:

    AWS.config.loadFromPath('./node_modules/nodebb-plugin-emailer-amazonses/config.json');

    ?

    Also, am looking forward to you releasing this plugin 🙂

  • 0 Votes
    2 Posts
    1k Views
    barisB

    when will the appropiate hook be to be able to parse the recipe and arrange and pretty it to show it to the users?

    The hook you want is probably plugins.fireHook('filter:post.save', postData, next);. This is called right before the post is saved into the database.

    How are posts saved? in raw text? is the text parsed with Marked when each post loads?

    Yes the raw text is saved into the database and parsed on the way out.

    The easiest way for this to work would be to listen to that hook and find the file links in the postData.content they will be in the form [link text](link url). You can grab link url, make sure it exists and read it and then append it to the postData.content in your plugin.

  • Hackpad plugin?

    3
    0 Votes
    3 Posts
    2k Views
    P

    Sounds like its doable. Apparently you can embed Hackpad on your site using their code:

    <script src=“https://hackpad.com/<string>.js”></script><noscript><div>View <a href=“https://hackpad.com/<string>.js”>To-Do</a></div></noscript>

    So all you'd have to do is create a static page maybe and paste the above in a template

  • LF Subforums / Application Plugin

    7
    0 Votes
    7 Posts
    3k Views
    J

    i guess you just dont understand what im talking about maybe some one will come by and see what im talking about but thanks for your reply

  • Event Import from File

    1
    0 Votes
    1 Posts
    783 Views
    ?

    Hey ok,
    I do not know where to start. this is perhaps more a plugin suggestion...
    I have a Border "events" and then much much topics. I want to do this easily through a file (csv, xlsx or so)...
    and let the subjects after the date Sort ... this is possible?

    I initially made ​​the times in MongoDB a few entries. but that do not appear ....

  • Is there a way to reset the theme?

    5
    0 Votes
    5 Posts
    2k Views
    G

    @psychobunny here: https://community.nodebb.org/topic/1543/bug-can-t-edit-template

  • 2 Votes
    4 Posts
    3k Views
    S

    What is this nodebb-script magic that I must've missed.

    Edit: nvm I'm dumb and didn't read enough. Haven't had my coffee yet.

  • Is that Any Plugins to change nodebb's slug?

    6
    0 Votes
    6 Posts
    3k Views
    linL

    @psychobunny
    Nothing happen.
    This url of the link was with slug also, when I removed the english slug in brower, it was ok, but if the slug is Chinese and I removed, I got error.
    I run it on parallels with ubuntu server for my macbook.
    It's a repo that git clone forked from nodebb.

  • 0 Votes
    3 Posts
    1k Views
    G

    @a_5mith I did, but I can't expect the user to understand that. He just complains that it's not working. 🙂

  • Korean Language Pack

    7
    1 Votes
    7 Posts
    3k Views
    julianJ

    Thanks @g6123 Looking into it now.

  • emoji did not display the pictures

    19
    0 Votes
    19 Posts
    6k Views
    A

    @frissdiegurke More specifically this plugin, will let the plugin developer know.

  • 1 Votes
    24 Posts
    10k Views
    B

    awesome !!!

  • 0 Votes
    4 Posts
    3k Views
    mashlerM

    @psychobunny
    demo link
    [smurfy]http://mwo.smurfy-net.de/mechlab#i=148&l=b76c795ad56e93d30b3607f5bf6b411ff3ba88f7[/smurfy]

  • Polls Plugin?

    5
    0 Votes
    5 Posts
    2k Views
    F

    @Schamper

    We completely understand, @Schamper. Take your time.

  • What is NodeBB's way to do Class?

    2
    0 Votes
    2 Posts
    1k Views
    P

    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 🙂

  • List of Included Libraries?

    5
    0 Votes
    5 Posts
    2k Views
    R

    Thank you 🙂