Skip to content

Technical Support

Need help with installing or configuring NodeBB? Look here.

4.8k Topics 26.5k Posts

Subcategories


  • User documentation for NodeBB

    44 Topics
    44 Posts
    Jay MoonahJ
    One of the first important things to do after setting up NodeBB is to set up an emailer plugin. While NodeBB does include a local emailer, if your forum is particularly active we recommend using an third-party emailer such as SendGrid which provides better deliverability for sites that send a high volume of email. Setting up SendGrid in NodeBB is very easy. Open the administrative dashboard using the 'gear' icon on your forum. Open the Extend > Plugins menu, and select the Find Plugins tab. Use the search on the right. Type 'SendGrid' and the plugin should appear -- select Install when you see it. From Installed tab on the Plugins menu, search again for 'SendGrid' and select Activate. Activating the plugin will require a restart of your forum. To restart, select the Dashboard menu and press the Restart button to the right. After NodeBB restarts, the SendGrid plugin will be active. After you restart, there should be a item called Emailer (SendGrid) under the Plugins menu -- if you don't see this right away, try refreshing your browser. Sign up to SendGrid Go to the SendGrid website, open the pricing page and scroll to the bottom. Click on the link and create your free account. Once you've confirmed your SendGrid account via email, you should be able to login to the SendGrid website. On the left side of your SendGrid dashboard, open Settings and click on API Keys. Click the button in the top right to create a new key. Make sure that the key has Full Access for Send Mail and Alerts.  When you are done, the new key to your clipboard. Now, return to the SendGrid menu on your NodeBB admin panel. Paste the API key into the field, and save your changes. Now go back to the Dashboard to restart your forum one more time. SendGrid should now be working for your forum. [image: youtubelogo.png] Setting up SendGrid mailer for NodeBB
  • NodeBB guides, how-to's and general tips and tricks

    83 Topics
    601 Posts
    Z
    not sure the plugin worked for firefox. saw a-z in the sort icon. when i used it, i expected the topics in the category would be sorted a-z. they werent
  • 25 Topics
    201 Posts
    eeeeeE
    I think you answered my point, by agreeing there are issues. I didn't even attempt to deploy nodebb, I had problems with much smaller projects! Nextjs routing was going through a change of design at the time, so perhaps that is less confusing now, but there were multiple other headaches. I would get build errors and issues with package management.
  • On Docker timezone ok but not ok for logs

    Moved Unsolved
    3
    0 Votes
    3 Posts
    260 Views
    barisB
    @PitaJ
  • Why not showing anchor ads?

    Unsolved
    2
    0 Votes
    2 Posts
    168 Views
    omegaO
    @none-anonymou Do you have auto ads on too? Personally I think anchor ads cause mayhem with UI elements on mobile. They are my least favourite ads type, as they crowd out the view and so I never use them.
  • Connecting to socket endpoint from a custom frontend

    Solved
    10
    0 Votes
    10 Posts
    2k Views
    oplik0O
    @nullpointer said in Connecting to socket endpoint from a custom frontend: var socket = io('https://dev-forum.domain.io', { transport: ["polling", "websocket"], path: "/socket.io/", extraHeaders: { withCredentials: true, cookie: 'express.sid=s%3Am0UuuyatTTSajjAnI5gGSukaJSHJaiKpIVhb3H7L.TW4c4vZn4blOnWV1gilF9HhMqFc9g9V7NnLLZHMAmFg; Domain=dev-forum.domain.io; Path=/; HttpOnly; SameSite=Lax', }, }); withCredentials is not a header - it's an option that should be on the same level in the settings object as extraHeaders. It should be used instead of setting the cookie header manually in the browser - but it will only work if the browser has the cookies for the website you're connecting to and needs explicit permission from it via headers (the Access-Control-Allow-* headers). This should look more like this: var socket = io('https://dev-forum.domain.io', { transport: ["polling", "websocket"], path: "/socket.io/", withCredentials: true, }); The reason the NodeBB test example works is that it's not ran inside a browser - NodeJS, as a server environment, has quite different security requirements than browsers and also just can't save credentials for each page (imagine what programming horror having this kind of mutable state in code would be...). I'm not sure what is your ultimate goal with this code, so that's why I mentioned the cookies as needed for server-side code.
  • How to disable local login at setup?

    Unsolved
    4
    0 Votes
    4 Posts
    302 Views
    Siddharth SardaS
    @julian I assumed that since this was a managed container environment where containers are ephemeral and can be moved around, I would need to run ./nodebb setup every time. Is my assumption wrong? Can I just run setup once to populate the database and then just run ./nodebb build the other times?
  • How to change font of persona theme

    Moved
    9
    0 Votes
    9 Posts
    2k Views
    S
    @phenomlab said in How to change font of persona theme: Should still be possible if you use the !important flag in CSS - for example Ah thx, good to know!
  • Post count : how can I meddle with what's counted

    8
    0 Votes
    8 Posts
    915 Views
    julianJ
    Learn something new every day
  • Headless Integration with Nodebb

    Unsolved
    4
    0 Votes
    4 Posts
    364 Views
    E
    I might be overthinking this and Auth0 is perfectly usable if I create that in React, and use the bearer token or whatever from Nodebb. The issue still remains though that I want that to be the only way to register for an account (in the custom registration page on the front-end.) I'll have to disable user registration with SSO I guess or hide that alternative login option... What's odd though is that only the alternative login works when an account is created that way. It looks like when the account is made, it gets added to the users list in nodebb, so you should be able to login with the email and password you registered with on Auth0, right?
  • Upgrading from 1.19.5

    Unsolved
    9
    0 Votes
    9 Posts
    563 Views
    B
    Ah yes, it seems I overlooked that when I deactivated all the plugins and only reactivated the persona theme. Seems to be working to a fashion, just need to get some plugins I rely on updated.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
  • Where is the data of a MongoDB database stored?

    Unsolved
    1
    0 Votes
    1 Posts
    143 Views
    T
    I am trying to understand where is the user data from the installation guide stored? Since my MongoDB /bin /db folder is empty i am wondering where it is stored. ^^ I know this is basic but i am trying to understand nodebb better. Is the maybe something written or a video explaining the basics?`I dont really know where to start...
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    16 Views
  • How to distinguish topic, comment and reply

    Solved
    3
    0 Votes
    3 Posts
    255 Views
    barisB
    @Arun-K You can look at the data in the post object in a topic. For example in this topic your post is the main one so it has an index of 0. A comment like @PitaJ 's post doesn't have a toPid field so it is a top level reply. I have directly replied your post so my post object has a toPid field. [image: 1669587344856-c40c84ac-34ba-4c71-b3dd-d73334f4eec7-image.png]
  • Does NodeBB work with MongoDB 6.0?

    Solved
    5
    0 Votes
    5 Posts
    770 Views
    T
    Thank you very much! I was able to use the Admin user that was created in this authentification
  • Running nodebb on multiple ports on a single machine.

    Unsolved
    2
    0 Votes
    2 Posts
    230 Views
    barisB
    Your config.json should look like this for multiple ports { "url": "http://example.org", "secret": "your-secret-goes-here", "database": "mongo", "port": [4567, 4568, 4569], "mongo": { "host": "127.0.0.1", "port": "27017", "database": "0" }, "redis": { "host":"127.0.0.1", "port":"6379", "database": 0 } } After ./nodebb setup modify config.json remove port from url and add the port array. Then use ./nodebb start to start nodebb. It should start up 3 nodejs processes, you can check if it worked with top
  • Tutorial for hosting nodebb on firebase and mongodb cloud

    Unsolved
    7
    0 Votes
    7 Posts
    549 Views
    B
    @julian any updates please post here.
  • How to deploy and start on the production cloud server

    Unsolved
    1
    0 Votes
    1 Posts
    140 Views
    J
    I just want to deploy the files needed for startup,exclude files such as test,.eslintrc,webpack.dev.js... And I don't want to install git and other tools in the server. I want to develop locally, and then send the built files to the server. Can I just send the files in the build to the server?And How do I start it? Thanks all.
  • Theme not found

    Solved
    10
    0 Votes
    10 Posts
    779 Views
    C
    Oh thanks @julian! I didn't realise that, thanks for clarifying it! All working now cheers
  • number 1 at the end of the link

    Unsolved
    4
    0 Votes
    4 Posts
    283 Views
    julianJ
    No, it doesn't affect SEO. It's just a way to easily navigate to the proper post on the topic (by its index).
  • Uploading photo to chat in Android

    Unsolved
    1
    0 Votes
    1 Posts
    138 Views
    eeeeeE
    Found an issue in mobile chat Its not possible to drag & drop photo in mobile I think there may be a grey box to upload file (can just see edge of it) But the Blue send arrow on Right of Input bar is obscuring it. Im running 2.5.2, unless this issue has been fixed since?
  • deleting posts of an account

    Solved
    6
    0 Votes
    6 Posts
    415 Views
    crazycellsC
    @baris thanks for the code