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
    444 Topics
    2k Posts
    Sky FoxxS
    Perfect! Does the job super elegantly thank you
  • Need a plugin developed? Ask here!
    226 Topics
    1k Posts
    juseJ
    like this [image: 1732282083034-snipaste_2024-11-22_21-27-43.png] or [image: 1732282134821-snipaste_2024-11-22_21-28-46.png]
  • Getting user data from UID

    3
    0 Votes
    3 Posts
    2k Views
    S
    Just saw this section on the git! Thank you so much for showing me an example ^_^
  • Proper way to store JSON data under a user?

    Solved
    5
    0 Votes
    5 Posts
    2k Views
    S
    @psychobunny Perfect! I sent you a PM regarding such.
  • Getting UID from socket.io event & managing events

    6
    0 Votes
    6 Posts
    2k Views
    P
    This would be an excellent addition to our documentation
  • [nodebb-widget-singlepost] Ever wanted to embed a post in a widget?

    6
    4 Votes
    6 Posts
    2k Views
    J
    @psychobunny It has options to show/hide the title and render the title as a link to the post itself. So, yeah you can let people go comment on it, or really just make it look like a static piece of content on the site. [image: dYuxEAA.png]
  • Access socket.io, client and server-side. As-well as redis database.

    Solved
    12
    0 Votes
    12 Posts
    4k Views
    S
    @yariplus Oh yes... Thank you haha
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    4 Views
  • This topic is deleted!

    2
    0 Votes
    2 Posts
    30 Views
  • How to get a csrfToken from an /api req object?

    4
    0 Votes
    4 Posts
    2k Views
    J
    @julian Thanks this did the trick! I used it like this in my client side code: <input id="csrfToken" type="hidden" name="_csrf" value="" /> ... $(window).on('action:ajaxify.end', function(data) { require(['csrf'], function(csrf) { var csrfToken = csrf.get(); console.log('obtained csrfToken: ' + csrfToken); $('#csrfToken').val(csrfToken); }); }); @yariplus I'm not really sure about your specific question. I have a feeling that the csrf tokens are generated based on a csrfSecret that is stored in the user's session. You could check that the session has this loaded on the server side with this: var util = require('util'); console.log('user session' + util.inspect(req)); For me, this results in: user session: { cookie: { path: '/', _expires: Sun Nov 22 2015 09:52:23 GMT-0800 (PST), originalMaxAge: 1209599988, httpOnly: true }, csrfSecret: '70lFS_InV_56D1gvV9TDKgJX', flash: {}, passport: { user: 1 } }
  • How to guide for writing your first plugin

    36
    2 Votes
    36 Posts
    24k Views
    B
    the widgets guide is especially scant video tuts are really very good; screen capture walkthrough of a plugin from birth to running.
  • Documentation on making ajaxify.go work for custom routes?

    12
    1 Votes
    12 Posts
    4k Views
    J
    Sweet!
  • NodeBB Oauth SSO Plugin and Wordpress

    23
    0 Votes
    23 Posts
    22k Views
    Mohit AgrawalM
    Try https://github.com/beingmohit/NodeBB-Wordpress-Auth
  • Question about SSO plugin

    2
    0 Votes
    2 Posts
    1k Views
    许宸皓
    oh lt is easy to solve this question Go to redis Find the key of SSO plugins [image: fGFFtOF.png] copy that and add that in your ordinary [image: jClfZHB.png] [image: VpOSOC6.png] [image: igIcEZH.png] [image: PdKhIyR.png] Excellent!
  • Plugins for syncing social media posts

    2
    0 Votes
    2 Posts
    2k Views
    P
    That's one way of doing it. There's a similar plugin that auto posts from RSS feeds: https://github.com/barisusakli/nodebb-plugin-rss So perhaps you can change the code where it parses an RSS feed to reading the twitter feed instead. Or use an twitter to RSS service like https://twitrss.me/ If you wrote an IFTTT plugin though, that would be pretty cool
  • 0 Votes
    1 Posts
    1k Views
    N
    Hello, I am using nodebb 0.8.2 on mongodb 3.07/ nodejs v0.10.25 and configured nodebb-plugin-sso-google & nodebb-plugin-sso-facebook. Both Plugin are working perfectly, but I am getting following warning on node app. -- Can I ignore this as its working fine or should I do something to fix this. any advise is much appreciated... node app 30/10 15:36 [1470] - info: NodeBB v0.8.2 Copyright (C) 2013-2014 NodeBB Inc. 30/10 15:36 [1470] - info: This program comes with ABSOLUTELY NO WARRANTY. 30/10 15:36 [1470] - info: This is free software, and you are welcome to redistribute it under certain conditions. 30/10 15:36 [1470] - info: 30/10 15:36 [1470] - info: Time: Fri Oct 30 2015 15:36:43 GMT-0400 (EDT) 30/10 15:36 [1470] - info: Initializing NodeBB v0.8.2 30/10 15:36 [1470] - info: [database] Checking database indices. 30/10 15:36 [1470] - warn: [plugins/nodebb-plugin-sso-google] Hook filter:user.delete is deprecated, please use an alternative 30/10 15:36 [1470] - warn: [plugins/nodebb-plugin-sso-facebook] Hook filter:user.delete is deprecated, please use an alternative 30/10 15:37 [1470] - info: NodeBB Ready 30/10 15:37 [1470] - info: Enabling 'trust proxy' 30/10 15:37 [1470] - error: Error: listen EADDRINUSE at errnoException (net.js:901:11) at Server._listen2 (net.js:1039:14) at listen (net.js:1061:10) at Server.listen (net.js:1135:5) at listen (/home/ngsankar/nodebb/src/webserver.js:180:17) at /home/ngsankar/nodebb/src/webserver.js:57:3 at EventEmitter.<anonymous> (/home/ngsankar/nodebb/src/emitter.js:17:5) at EventEmitter.emit (events.js:92:17) at /home/ngsankar/nodebb/src/meta/js.js:218:12 at Object.oncomplete (fs.js:107:15) 30/10 15:37 [1470] - error: NodeBB address in use, exiting...
  • [HIRING] NodeBB Plugin Developer with AngularJS experience

    7
    3 Votes
    7 Posts
    4k Views
    P
    If you're paying me to learn angular too, sure I have really limited experience, just for messing about no real-world experience.
  • [nodebb-widget-steamserverstatus] Steam Server Status

    3
    1 Votes
    3 Posts
    2k Views
    L
    @Fez-Vrasta hey there buddy, first i have to thank you for that useful widget. in your features list it says "show a message when the server is down" well, i implemented the widget in the global sidebar. But when our arma3 server is down or going to restart, the website is not able to load completly. it tries to reach the server which seem to be unreachable and does not jump into some kind of timeout. since i am far away from beeing able to fix that, i would like to ask if you have any idea where i should take a look at. thanks and regards, larvell
  • [nodebb-plugin-sso-ok] Odniklassniki

    5
    2 Votes
    5 Posts
    3k Views
    S
    I apologize for such a dirty job.
  • Can it work if home is other than categories ...

    3
    0 Votes
    3 Posts
    1k Views
    N
    Unfortunately No. It does n't come up , I hv tried after restarting too. any possible tweak to make it work ? thanks.
  • How to properly add HTML elements

    5
    0 Votes
    5 Posts
    3k Views
    M
    @yariplus, thank you very much! I found that composer is really the way to go. I'm currently reading the code of default composer, it looks like a really good starting point. There are two options: one is to modify the default composer; another is to implement something like "nodebb-plugin-poll" which basically injects HTML to composer. I will need to read more code to get a better idea.
  • Need a working example of grabbing post data

    12
    0 Votes
    12 Posts
    5k Views
    NivixN
    @yariplus said: Actually, yes. That is something I've been wanting to do. I jumped into NodeBB development as a total newbie to Javascript, so I probably have a good perspective for beginners. I have some formal education in technical writing as well. Please do this! We need more tutorials and technical guides. I've been trying to immerse myself more in the source and writing plugins so I can write some stuff for the community.