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

  • 0 Votes
    2 Posts
    1k Views
    MegaM

    It's not an answer to your question but, just in case, for researching hooks better to use Github wiki
    https://github.com/NodeBB/NodeBB/wiki

  • Any user Invitation plugin under development?

    6
    1 Votes
    6 Posts
    3k Views
    E

    totally agreed, this is must have for large forum community

  • 0 Votes
    3 Posts
    2k Views
    P

    Thanks @baris. For some reason it didn't work for me when I started the plugin but it seems to work now.

  • 0 Votes
    3 Posts
    1k Views
    P

    thanks @julian

  • Multi select dropdown in plugin settings?

    19
    0 Votes
    19 Posts
    5k Views
    julianJ

    @pichalite Thanks for helping make NodeBB better! 😄

  • 0 Votes
    5 Posts
    2k Views
    barisB

    Yeah my latest commit addresses that, topics.follow on latest will just follow the topic and there is a new function called topic.toggleFollow that does the old functionality.

  • Ranking System

    2
    0 Votes
    2 Posts
    3k Views
    MegaM

    Probably it isn't what you expected to get as an answer
    https://github.com/NodeBB/NodeBB/wiki/Plugin-Hooks#actionuserset
    https://github.com/NodeBB/NodeBB/blob/8f5bf1a7edc991f7b40c3f8520cec87b8b10b8f8/src/user.js#L159-L196

  • 1 Votes
    16 Posts
    5k Views
    barisB

    Link Preview Image pass the loaded pids to action:posts.loaded · NodeBB/NodeBB@288d507

    Node.js based forum software built for the modern web - pass the loaded pids to action:posts.loaded · NodeBB/NodeBB@288d507

    favicon

    GitHub (github.com)

    You will get the loaded pids in the params of the hook with that commit.

  • 0 Votes
    3 Posts
    2k Views
    A

    exactly!
    Do u have one?

  • Custom Static Pages

    5
    0 Votes
    5 Posts
    3k Views
    J

    @pitaj Thanks!

  • Topic Color

    28
    8 Votes
    28 Posts
    13k Views
    esiaoE

    It's better when the good version of NodeBB is given (dumb me).
    Patch 1.3.1 "compatibility": "^0.5.0" → "compatibility": "^0.6.0"

  • This topic is deleted!

    6
    0 Votes
    6 Posts
    254 Views
  • Twitter stream or tweets widget

    6
    0 Votes
    6 Posts
    2k Views
    3malG3

    @baris said:

    Try this

    <a class="twitter-timeline" href="https://twitter.com/3malG" data-widget-id="507843649955041282">Tweets von @3malG </a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> <script> if(window.twttr !== undefined) { window.twttr.widgets.load($('.motd')[0]); } </script>

    Yes, now it works! Thank you very much!

  • 5 Votes
    80 Posts
    59k Views
    F

    @a_5mith happen on me too..
    I've used the correct version..it does show the settings and new widget area, however nothing happen on homepage except a new forum button appear at menu bar.

  • 0 Votes
    6 Posts
    3k Views
    A

    Usually PHPStorm, but I wiped my HDD when I went over to Windows 10. So at the minute, I'm without one. May try an up to date version of phpstorm, see how it's improved.

  • AdBlock Plugin

    2
    1 Votes
    2 Posts
    2k Views
    ?

    I'm sure you can find an existing script to detect adblockers and display messages in place of ads.

    I haven't looked extensively into it, but this site should have something similar to what you need.

  • 2 Votes
    7 Posts
    3k Views
    G

    @RazorAxis Yes

  • 1 Votes
    1 Posts
    2k Views
    wladistonW

    Sup guys?

    I did a plugin for who wants to keep files on AWS S3. It's good for who keeps the NodeBB on Heroku or others servers that have ephemeral filesystem.
    I wanted to maintain compatibility with NodeBB 0.6.x and nodebb-plugin-s3-uploads doesnt worked for me.

    I will need to increase some features like content access control in the next version.

    Link Preview Image Build software better, together

    GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 420 million projects.

    favicon

    GitHub (github.com)

  • 0 Votes
    8 Posts
    4k Views
    A

    @h3ku said:

    @mani @psychobunny
    I dont know why dont work.
    I have NodeBB v0.6.0

    That's probably why, not sure if this plugin was updated to support 0.6.0. Also I'm not sure it was ever designed to parse bbcode on the fly like that. But I could be wrong.

  • mailjet plugin?

    6
    0 Votes
    6 Posts
    3k Views
    P

    @raistlinthewiz try https://github.com/pichalite/nodebb-plugin-emailer-mailjet