Skip to content

NodeBB Plugins

Discussion regarding NodeBB Plugin development.

1.8k Topics 15.2k Posts
Most Voted Plugins

Subcategories


  • Have a question about building a plugin? Ask here
    440 Topics
    2k Posts
    barisB
    You could use the below custom javascript, it will open the last chat if there is no open chat. $(window).on('action:ajaxify.end', async () => { const { data } = ajaxify; if (data.template.chats && !data.template.roomId && data.rooms.length) { const Chats = await app.require('forum/chats'); Chats.switchChat(data.rooms[0].roomId); } });
  • Need a plugin developed? Ask here!
    223 Topics
    1k Posts
    Silver.meS
    I am willing to pay whatever it takes, $30 max.
  • Custom Meta description on posts!

    3
    0 Votes
    3 Posts
    1k Views
    JenklerJ
    I guess this is not needed. The first line in the post is applied to the meta description We learn something everyday
  • How to hide the posts that have been marked "Resolved" in the Plugin Q&A?

    Unsolved
    4
    0 Votes
    4 Posts
    2k Views
    H
    @rod said in How to hide the posts that have been marked "Resolved" in the Plugin Q&A?: Not a direct answer but take a look at @julian's "down voter" plugin, https://github.com/julianlam/nodebb-plugin-dwnvtr You may be able to modify the algorithm to look for something specific to a "resolved" post or you could copy out the opacity bits and add it to the Custom CSS setting area. not have idea for this yet. can someone help to look at this?
  • Is Imgur safe for a long term storage?

    3
    0 Votes
    3 Posts
    2k Views
    R
    Thanks for suggestion...appreciate it
  • Patreon plugin

    1
    0 Votes
    1 Posts
    1k Views
    G
    Hello, I am trying to create an sso plugin for Patreon.com. I posted about this on the generic version of the plugin and Julian Lam told me to fork the google or facebook plugin. I have done so. Now it connects to patreon but I am getting a url mismatch error. Please see my fork for the code I am using: https://github.com/gwhrengineering/nodebb-plugin-sso-facebook/blob/master/library.js I am unsure how to proceed from here. Any help would be greatly appreciated. Thanks
  • 1 Votes
    6 Posts
    3k Views
    julianJ
    @Kinchtwck Full text search is easiest with Latin characters only. Adding Unicode is good but gets much more complicated... I do believe Solr supports Chinese characters and can be installed on the same server as the forum...?
  • Plugin Templates Not Loading - Hello new build system!

    4
    0 Votes
    4 Posts
    2k Views
    J
    Found the solution, It turns out that I had missed this blog post before upgrading to 1.4.x: https://blog.nodebb.org/introducing-the-build-system-in-v1-4-3/ ./nodebb build
  • Help: How to modify the register UI?

    1
    0 Votes
    1 Posts
    791 Views
    T
    Hi guys, Now I start to write my plugin, and I have learned how to hook with "filter:register.build" and add some new input in the hook function, just by: function(params,callback) { params.templateData.regFormEntry.push(phoneInput); // phoneInput is some html input element It works well, but just add a new input in the "Registration Question" location, and I'd like to modify some about the Email Input, like the tip or check logic. So how can I do this? Thanks!
  • [nodebb-plugin-html5videoplayer] Embeds HTML5 Video

    12
    5 Votes
    12 Posts
    5k Views
    CJ InfantinoC
    @Bri I saw that. I am trying to use the ns-embed plugin. I'm assuming that's what we should be using now. Does it support embedding an html player for uploaded videos?
  • Create a plugin!

    4
    0 Votes
    4 Posts
    2k Views
    JenklerJ
    @yariplus Nice short, I will try to update my plugin to the new style Is it easy to read a json file from disk when you visit a page, Lets sat that you have somthing in stuff.json and that file is updated now an then on the disk.
  • Any client-side hook before new topic submit?

    10
    0 Votes
    10 Posts
    4k Views
    barisB
    Maybe we should move those checks after the hook then?
  • Minecraft for Nodebb

    7
    0 Votes
    7 Posts
    2k Views
    JenklerJ
    @yariplus Yeah, that's a better name for it. Maybe this could be a fun todo projekt. It would be easy to fix this in PHP but nodejs is better. Problem is that It takes too long time to for me (write and understand) nodebb and nodejs.
  • Composer Autocomplete and asynchronus replace

    2
    0 Votes
    2 Posts
    1k Views
    barisB
    We use https://github.com/yuku-t/jquery-textcomplete, I don't think it supports async calls in the replace function. You might have to find another way to load that data and use it in the replace function.
  • Debugging frontend js with chrome dev tools

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    PitaJP
    @Qwertyzw you could put a debugger; statement where you want it to break.
  • nodebb-plugin-custom-homepage

    8
    0 Votes
    8 Posts
    3k Views
    JenklerJ
    Now its updated and it works. Small patch, but me == happy anyway. Great work
  • How to write a hovered music player as a plugin?

    2
    0 Votes
    2 Posts
    1k Views
    julianJ
    Oof, that's a lot to ask in one post, which explains why nobody has responded yet Have you tried getting a base plugin made, to open a music player in something like a bootbox.dialog?
  • How to configure plugins?

    6
    0 Votes
    6 Posts
    2k Views
    MirkoM
    Ok, thanks, I'll try once more.
  • Unexpanded tokens in topics list parsed template output. No errors

    Solved
    5
    0 Votes
    5 Posts
    2k Views
    PitaJP
    @Qwertyzw in the future, you can use the Github search to find the source code for different apis.
  • How get all Users when the plugins is installed

    7
    1 Votes
    7 Posts
    2k Views
    barisB
    Those hooks weren't working the way they were meant to, that's why they are deprecated. If you need to do a one time operation when the plugin is installed. Just set a flag in the database stating that the operation is done so it is not repeated on every restart of NodeBB.
  • How does SSO integrate with existing users ?

    3
    0 Votes
    3 Posts
    2k Views
    hukadanH
    @yariplus Now I feel stupid because I never noticed the presence of those options on my profile... Thank you for the quick answer. I still have to check if one of the two discord plugins allow that.
  • extends nodebb write-api?

    Solved
    7
    0 Votes
    7 Posts
    4k Views
    G
    To anyone searching the same thing, I resolved the problem using the custom write-api hooks, I wasn't aware of: https://github.com/NodeBB/nodebb-plugin-write-api/blob/master/routes/v1/index.js#L45 filter:plugin.write-api.routes that gives you data, I used it in this way: function(data, callback) { var app = data.router; var apiMiddleware = data.apiMiddleware; var middleware = data.middleware; var errorHandler = data.errorHandler; app.post('/route', apiMiddleware.requireUser, function(req, res) { // do stuff }); callback(null, { router: app }); }; Obviously you should have nodebb-plugin-write-api installed.