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.
  • 0 Votes
    1 Posts
    994 Views
    co-ownerC
    [nodebb-plugin-write-api] https://github.com/NodeBB/nodebb-plugin-write-api I would like to POST (send) some form data to a webserver using cURL on a terminal-prompt. This is what I got so far: curl -X POST -H "Content-Type: application/x-www-form-urlencoded; charset=utf-8" -H "Authorization: Bearer 7ae9463c-146d-440d-b729-890c73bb9d46" --data "title=I Love You" --data "content=我真的不爱你" --data "cid=1" http://localhost:4567/api/v2/topics pause The problem is that the chinese word ("我真的不爱你") are replaced by "����IJ�����" when I browse the website page.
  • [Solved]error: /assets/templates/admin/plugins/write-api.js

    2
    0 Votes
    2 Posts
    2k Views
    co-ownerC
    Error: ENOENT: no such file or directory, open 'C:\Users\User\Downloads\1.7.x\NodeBB\build\public\templates\admin\plugins\write-api.tpl'
  • Getting logged in uid

    5
    0 Votes
    5 Posts
    2k Views
    PitaJP
    Depending on the plugin hook, the uid is included in the payload.
  • 8 Votes
    4 Posts
    3k Views
    P
    Welcome back @frissdiegurke
  • Custom meta tag and facebook og

    1
    0 Votes
    1 Posts
    737 Views
    C
    Hello, is there a plugin to customize meta tag and facebook og for every post? Thanks
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    24 Views
  • 0 Votes
    1 Posts
    888 Views
    W
    Hi @psychobunny We are experiencing problems with an add-on. We have previously made a pull request that hasn't been actioned https://github.com/NodeBB/nodebb-rewards-essentials/pulls Here is the plug-in and the issue : https://github.com/NodeBB/nodebb-rewards-essentials I have posted a request to assist fix the issue on our forum. No point if you will never pull the fix.
  • Updating my custom-made plugin issues

    4
    0 Votes
    4 Posts
    1k Views
    barisB
    @giggiux Nope
  • How could I resolve plugin warning about setting "set hookData.html"

    6
    0 Votes
    6 Posts
    2k Views
    JenklerJ
    @baris said in How could I resolve plugin warning about setting "set hookData.html": widget.html = html; Thanks, seams to work
  • 5 Votes
    2 Posts
    2k Views
    barisB
    Just an FYI we are building this into core https://github.com/NodeBB/NodeBB/issues/6158, it will deprecate this plugin and 2 forks https://github.com/dangerusslee/nodebb-plugin-category-sort-by-votes-next and https://github.com/jimmykane/nodebb-plugin-category-sort-by-votes-next
  • How to access req and res objects in hooks?

    6
    0 Votes
    6 Posts
    2k Views
    julianJ
    Yes... adding in continuation local storage is something we really wanted to do, although when @akhoury tried to do it a couple years back, the technology was as-yet still a little immature. Perhaps it is time for us to take a look at it again
  • Django SSO serveur with nodebb sso client

    1
    0 Votes
    1 Posts
    1k Views
    remydevR
    Hello, I'm working on a SSO integration from a django SSO. In my django project i add 'oauth2_provider' https://django-oauth-toolkit.readthedocs.io/en/latest/ And i get this : [image: gRuoX3M.png] On the nodebb side, I started from the plugin https://github.com/julianlam/nodebb-plugin-sso-oauth Which I modified as a result: The config.json file "oauth": { "id": "rs2yEx7aqrj7ZIgVRC9IFL7p0DyIjQwWPST4BqVW", "secret": "6A678EDFqAYtl0sALS5rqk2mfhlBQi0HIgoGH5mPaeIpnZGni8BdOFiv" }, and in the library.js) i change this lignes var constants = Object.freeze({ type: 'oauth2', // Either 'oauth' or 'oauth2' name: 'nodebb_django', // Something unique to your OAuth provider in lowercase, like "github", or "nodebb" oauth: { requestTokenURL: '', accessTokenURL: '', userAuthorizationURL: '', consumerKey: nconf.get('oauth:key'), // don't change this line consumerSecret: nconf.get('oauth:secret'), // don't change this line }, oauth2: { authorizationURL: 'https://beta.esprit-bourse.com/oauth/authorize', tokenURL: 'https://beta.esprit-bourse.com/oauth/token', clientID: nconf.get('oauth:id'), // don't change this line clientSecret: nconf.get('oauth:secret'), // don't change this line }, userRoute: '' // This is the address to your app's "user profile" API endpoint (expects JSON) }), I've never programmed in JS nodes, so I don't really know what to do, and I don't understand all the code. I may have to change the information as indicated. Update profile information (around line 137 of library. js). But there is no user account to use the Oauth system After a git clone, i can't enable the plugin so i think there is something else to change. if someone can help me I will document everything for the link Oauth django/nodeBB. Otherwise, I'll keep the site and forum separate.
  • 2 Votes
    2 Posts
    1k Views
    ShardS
    I'll take a crack at it. Where are you looking to place the tipper?
  • nodebb-plugin-emailer-ses? Not working

    5
    0 Votes
    5 Posts
    2k Views
    S
    @pitaj said in nodebb-plugin-emailer-ses? Not working: There is an SES preset in the admin panel under email settings. Maybe you should try that as well? That is what I ended up using.
  • Approval Topic

    14
    0 Votes
    14 Posts
    4k Views
    barisB
    @andrea-cardinale that's a good idea https://github.com/NodeBB/NodeBB/commit/9a3a5192c4d25fecea0d0002f3892c814ea6380a
  • Is there a wiki plugin for Nodebb?

    1
    0 Votes
    1 Posts
    1k Views
    V
    Hi! I'm searching for a Wiki Plugin/Widget for Nodebb. I'd like to have a Widget/Plugin with which I can see a list of "tools" and if I click one tool, there should be information fields, images and richtext for this specific item. Just like: Tool XYZ Imageslider: [Image] [Image] Name Category Year ... Infotext: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus rhoncus nulla quis interdum feugiat. Sed eleifend mattis urna id dapibus. Morbi pharetra cursus lacus id bibendum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Integer in accumsan erat. Fusce maximus nulla libero, ac tincidunt erat maximus eget. Vestibulum laoreet ex diam, eget euismod augue porttitor eu. Aenean et felis et tortor aliquam eleifend nec non orci. Vivamus quis finibus turpis, sed congue lectus. Mauris eget rhoncus nulla, quis viverra ligula. Proin in magna gravida, malesuada dolor a, bibendum ex. Donec metus eros, dignissim eu lacus ut, volutpat iaculis mauris. Cras hendrerit metus quis nibh pretium suscipit et sit amet eros. Quisque scelerisque turpis erat, ac aliquet justo malesuada non. Aenean suscipit, ligula vitae scelerisque rutrum, massa sapien vulputate sem, eleifend iaculis augue quam in arcu. Sed eget dolor justo. Donec molestie vel tortor sit amet laoreet. Pellentesque ligula orci, venenatis et cursus eget, porta sit amet quam. Is there already something like that? Or do you have an idea how to do it?
  • Integration with LinkedIn SSO oAuth2 - Users with commas

    3
    0 Votes
    3 Posts
    1k Views
    Christian MendietaC
    Thanks @julian for your answer, yes, I already tried: handle = handle.replace(",",""); But all I can get is: [image: J3G2ANw.png] I think that I have to save the whole name (including commas) in Mongo... does it make sense? Thanks! Christian
  • Custom homepage does not work in 1.6.1

    8
    0 Votes
    8 Posts
    2k Views
    JenklerJ
    Update: [email protected] works with 1.6.1
  • A teaser?

    30
    4 Votes
    30 Posts
    12k Views
    F
    @schamper I love you schamper for your awesome work on all the plugins.
  • Google, Facebook and Twitter SSO Plugins Working?

    5
    0 Votes
    5 Posts
    2k Views
    E
    you must forgot to set related informations in admin panel(social authentication)