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
    5 Posts
    807 Views
    呆呆笨笨

    可以参考 https://nomad.justdoless.cn

  • 0 Votes
    5 Posts
    887 Views
    呆呆笨笨

    可以参考 nomad.justdoless.cn

  • 11 Votes
    74 Posts
    16k Views
    phenomlabP

    @baris thanks for this. Really appreciated. We'll wait for 3.2.0 to drop.

  • IMGUR upload issues

    5
    0 Votes
    5 Posts
    355 Views
    phenomlabP

    @DownPW said in IMGUR upload issues:

    IMGUR sucks

    News Flash - it always did

  • 0 Votes
    1 Posts
    108 Views
    Shantur RathoreS

    Hi,

    I am thinking of setting up NodeBB and Ghost and connect them with the plugin for comments.
    At the same time, I want to be able to publish some a tutorial / guide written in one of the NodeBB Topic as an article for Ghost.

    Is this something done by any plugin?

    Thanks

  • chatGPT moderation

    11
    8 Votes
    11 Posts
    1k Views
    omegaO

    AI moderating "conspiracy theories", that's a conspiracy theory confirmed! ☑ 🤣

  • ldap plugin for current version 2.5.2

    20
    0 Votes
    20 Posts
    975 Views
    q16marvinQ

    Hi,

    i have a little Change, that will also leave User when NOT in ldap group:

    groupJoin: (ldapGroup, ldapId, uid, callback) => { winston.verbose("[LDAP] groupJoin " + ldapGroup.cn + " for user " + ldapId + " uid " + uid) nodebb_ldap.createGroup(ldapGroup, (err, groupId) => { if (err) { return callback(err); } let members = ldapGroup.uniqueMember; if (!Array.isArray(members)) { members = [members]; } winston.verbose("[LDAP] groupJoin members " + members && typeof members) let found = false if (members) { members.forEach(member => { if (member && member.indexOf(ldapId) != -1) { found = true } }); } if (found) { const groupsToJoin = [groupId]; if ((master_config.admin_groups || '').split(',').includes(ldapGroup.cn)) { winston.verbose("[LDAP] joins admin group") groupsToJoin.push('administrators'); } if ((master_config.moderator_groups || '').split(',').includes(ldapGroup.cn)) { groupsToJoin.push('Global Moderators'); } return groups.join(groupsToJoin, uid, callback); } else { const groupsToUnJoin = [groupId]; winston.verbose("[LDAP] unjoins group" + ldapGroup.cn + " uid " + uid); return groups.leave(groupsToUnJoin, uid, callback); //callback(); } } ); },

    thats realy cool for use 🙂 maybe someone else will help it 🙂

  • Plugin nodebb-plugin-insult-filter

    8
    0 Votes
    8 Posts
    594 Views
    barisB

    It's published 0.4.8 https://github.com/ninenine/nodebb-plugin-beep/pull/38#issuecomment-1576843703

  • nodebb-plugin-imgur invalid CSRF

    23
    0 Votes
    23 Posts
    2k Views
    barisB

    imgur is temporarily over capacity. Please try again later is an issue on imgurs end. The plugin just sends the image and if it errors shows it in the composer.

  • How to install plugin locally?

    10
    0 Votes
    10 Posts
    4k Views
    B

    @julian But then I get the following, because it's not looking in the right place for the package.json:

    npm ERR! code ENOENT npm ERR! syscall open npm ERR! path /usr/bin/nodebb/nodebb-plugin-btcsso/package.json npm ERR! errno -2 npm ERR! enoent ENOENT: no such file or directory, open '/usr/bin/nodebb/nodebb-plugin-btcsso/package.json' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2023-05-16T09_24_17_811Z-debug-0.log
  • 0 Votes
    3 Posts
    329 Views
    PitaJP

    I suspect the error was caused by a corruption somewhere. I'd suggest deleting node_modules and reinstalling. Maybe even try clearing your npm cache.

  • 0 Votes
    6 Posts
    279 Views
    phenomlabP

    @DownPW Good call. I've done the same 🙂 Great minds and all that...

  • iFramely settings do not save under v3

    8
    0 Votes
    8 Posts
    293 Views
    barisB

    >Error: Failed to lookup view this error almost always means you need a ./nodebb build It means nodebb can't find the template to render in the build folder.

  • 0 Votes
    3 Posts
    188 Views
    phenomlabP

    @baris Perfect. Thanks

  • 4 Votes
    7 Posts
    387 Views
    DownPWD

    Very good. test ASAP 😉

  • video player

    6
    0 Votes
    6 Posts
    294 Views
    q16marvinQ

    and it works immediately, how cool is that! THANKS!

  • How to add topics_list template for widget?

    Solved
    6
    0 Votes
    6 Posts
    332 Views
    B

    This settings for widgets not work on /category and /recent page

    Set the topic IDs you want to display this widget on (separated by commas) Set the category IDs you want to display this widget on (separated by commas)

    Cat Typing GIF

  • 0 Votes
    3 Posts
    305 Views
    PitaJP

    If it works on desktop, there's no reason it shouldn't work on mobile. Did you try clearing your cache?

  • 1 Votes
    2 Posts
    531 Views
    D

    I'd love to use this plug-in, but when I installed it with Lavender theme, it created issues with categories (invalid category IDs, unable to create new categories, unable to post in existing categories).

    Once I uninstalled this plug-in, all was fine.

    Is there perhaps a newer version that works with Lavender?

  • 14 Votes
    31 Posts
    14k Views
    volanarV

    693d5bb5a4c6622ec36ad20313f1bf4e.jpg