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
    traarrrT

    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
    B

    @baris 👍

  • emailer-sendgrid doesn't load config page

    2
    0 Votes
    2 Posts
    366 Views
    Sandeep BhuiyaS

    try to rebuild and restart sometime it solves the issues.

  • Any code format plugin?

    7
    0 Votes
    7 Posts
    2k Views
    Q

    @oplik0

    Awesome. Legend. Thanks for that!

  • Reply-to-email mailer plugins?

    2
    0 Votes
    2 Posts
    424 Views
    julianJ

    Only SendGrid and Mandrill plugins support it at this time.

  • 7 Votes
    76 Posts
    43k Views
    M

    How to reset all points to 0?

  • Recaptcha for guests to post

    Unsolved
    10
    0 Votes
    10 Posts
    1k Views
    oplik0O

    Seems like it can work without any backend, although is easy to circumvent when used in that way. I think the hardest part here would be making it look sensible, as the version on that website seems far too big for the composer 😄
    As for implementing it properly - you'd have to somehow pass its response along with the post, but if you manage to do that it shouldn't be hard to actually handle it as it's just one simple http request to their api.

  • Cloud Storage plugin

    13
    4 Votes
    13 Posts
    2k Views
    6676

    @satishbh Also to add more context to this for others who come across it (using the older version):

    Link Preview Image Aws s3 don't work · Issue #2 · june07/nodebb-plugin-cloudstorage

    2019-08-28T08:05:49.848Z [4567/1207] - error: uncaughtException: Cannot read property 'Key' of undefined TypeError: Cannot read property 'Key' of undefined at ManagedUpload.callback (/usr/src/app/node_modules/nodebb-plugin-cloudstorage/l...

    favicon

    GitHub (github.com)

    The root cause of the error was having an S3 bucket that wasn't public. The plugin then handled the thrown error by the S3 API incorrectly, which was fixed in:

    https://github.com/june07/nodebb-plugin-cloudstorage/commit/05f437482500a9605d3c51e8c4632b9e011a99a0#diff-6b49b62ca6c8a7110bdda9c1189098aeR214-R215.

    I found the reason that my bucket wasn't public.

  • Hidden information for the user

    4
    0 Votes
    4 Posts
    646 Views
    G

    @zerefgg if soon I don’t find the plugin I will write it myself and u can up my rep ?)

  • Any plugin to add a field to the topic form

    3
    0 Votes
    3 Posts
    973 Views
    H

    Screenshot_22.jpg
    I would like to add a new field to the topic submission form

  • 0 Votes
    13 Posts
    1k Views
    cleoC

    @baris I'm on nodebb-plugin-friends 1.2.0, latest master and unfortunately, it doesn't 😞

  • Points and Points Store plugin

    1
    0 Votes
    1 Posts
    331 Views
    Madeline JonesM

    So, I'm well aware of the current points plugin that exists, but sad to find out that it doesn't include a points store where you can add items for people on your forum to buy with their points. After doing some research through old topics it seems forum gamification used to be a really big priority around nodeBB but that seems to have died off. 😞 Does anyone know of any points/points store systems similar to what they have currently on myBB?

  • 0 Votes
    1 Posts
    314 Views
    D

    Yesterday I created a plugin to track the user actions on the client-side and send them to a Facebook Pixel. I hope it will be helpful. If you like the plugin, don't mind giving it a star on GitHub.

    How The Facebook Pixel Works
    When someone visits your website and takes an action (for example, buying something), the Facebook pixel is triggered and reports this action. This way, you'll know when a customer took an action after seeing your Facebook ad. You'll also be able to reach this customer again by using a Custom Audience. When more and more conversions happen on your website, Facebook gets better at delivering your ads to people who are more likely to take certain actions. This is called conversion optimisation.

    Installation

    npm install nodebb-plugin-facebook-pixel

    Supported Hooks

    action:ajaxify.end action:ajaxify.contentLoaded action:composer.topic.new action:composer.post.edit action:composer.addQuote action:composer.post.new action:composer.addQuote action:posts.loaded action:topics.loaded action:category.loaded action:app.loggedIn action:app:loggedOut action:profile.update action:search.fillOutForm action:infinitescroll.loadmore action:chat.renamed action:chat.loaded action:chat.closed action:chat.minimized action:chat.sent action:chat.received

    GitHub Repository
    https://github.com/Doonloo/nodebb-plugin-facebook-pixel

  • 1 Votes
    2 Posts
    2k Views
    A

    Precision : step to disable markdown-it-checkbox in code is now not necessary since the following change made by @julianlam in nodebb-plugin-markdown...

    Link Preview Image How to disable use of markdown-it-checkbox... · Issue #108 · NodeBB/nodebb-plugin-markdown

    Hello ! I'm trying to make a nodebb plugin to extend nodebb-plugin-markdown without changing its code... One problem is that I really don't want markdown-it-checkbox (problem with LaTeX formulas parsing, like $P[X]=...$)... I see no opti...

    favicon

    GitHub (github.com)

  • User 2FA Broke, How Can I Disable?

    2
    0 Votes
    2 Posts
    354 Views
    julianJ

    Hi @scottalanmiller you should be able to disable a user's 2fa from the admin settings page for 2fa:

    68360b3f-4589-4ffb-80ca-bddd8d685adb-image.png

  • Proper way to render error page (404...)

    3
    0 Votes
    3 Posts
    406 Views
    A

    @baris Thanks !!

  • Download file with app.get problem

    6
    0 Votes
    6 Posts
    572 Views
    A

    Finally, I made it simpler...

    I made a link from /toto/myfiles to public/uploads/myfiles. Then, I wrote this app.get code in my plugin :

    app.get('/uploads/myfiles/:file(*?)', function (req, res) { // Things TODO with req.params.file for permissions (after work on it)... var longfilename = path.resolve('public' + req.url); if (fs.existsSync(longfilename)) { res.status(200); res.sendFile(longfilename); } else { console.log('Fichier non trouvé'); res.status(404); res.render('404', {path: req.path}); } });

    Now, there is no problem with the ajaxify thing... Ouf !

    I'm going to open another topic for another question about the 404 error rendering... 😉

  • Is the Adsense plugin working?

    8
    0 Votes
    8 Posts
    2k Views
    H

    @baris said in Is the Adsense plugin working?:

    Are you getting any errors in the browser console or ACP?

    No, I don't see any error. Thanks!

  • Recent Card Problem

    2
    0 Votes
    2 Posts
    346 Views
    PitaJP

    I see a few warnings there, none of which are from the plugin you're talking about. I see one error but it doesn't look like it crashed NodeBB. I don't know what you're referring to.

  • I did not find plugin

    2
    0 Votes
    2 Posts
    472 Views
    barisB

    Please see https://community.nodebb.org/topic/11510/boxes-on-the-side

  • 1 Votes
    1 Posts
    288 Views
    omegaO

    Is there a plugin that automates the following - for example, watching a twitter account or youtube account and grabbing the title and link to the latest posts to an acc or channel to create new topic for each new event at the watch targets.

    populate: title

    populate opening post: Title + link etc. etc.

    That's it.

  • Embed Live Content

    3
    1 Votes
    3 Posts
    469 Views
    crazycellsC

    I think you can also try ns-embed plugin, because youtube live video url is the same as regular video url, so I am assuming it will work.