Skip to content

Technical Support

Need help with installing or configuring NodeBB? Look here.

4.8k Topics 26.7k 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.
  • Help with Custom Skin in V3

    Solved
    34
    0 Votes
    34 Posts
    3k Views
    T
    @baris this makes me so happy. Thank you!!! [image: happy-dance-happy.gif]
  • Using NodeBB with MySQL

    3
    1 Votes
    3 Posts
    3k Views
    N
    By default, it's no possible to use mysql directly. But if you really want it, some efforts could be take to migrate the db from existing dbs to mysql database. So, in short, it's possible to use mysql only if you can successfuly migrate all schemas and existing database operations in the code from mongodb/redis/postgresql(any of these) into mysql.
  • Upload File API - 403 Forbidden

    Unsolved
    11
    0 Votes
    11 Posts
    1k Views
    julianJ
    @clementneveu said in Upload File API - 403 Forbidden: To get the csrf_token with the config api, no problem for me ! How are you getting this token? Can you show us the code?
  • Help Accessing Group Slug

    Solved
    8
    0 Votes
    8 Posts
    477 Views
    T
    @baris Fantastic! Thank you!
  • Pagination Setting Not Working

    Unsolved
    3
    0 Votes
    3 Posts
    259 Views
    T
    @dave1904 ah there it is! Is there a way to reset that for all users?
  • Help with my Custom Function

    Solved
    13
    0 Votes
    13 Posts
    732 Views
    barisB
    @oplik0 yeah and if you don't want an upgrade script and just want to run some code that connects to the database to modify stuff or create reports etc. you can run custom script. These go in the nodebb folder and can be executed by node my_custom_script.js. Below is a template that we use frequently. /* globals require, console, process */ 'use strict'; const nconf = require('nconf'); nconf.file({ file: 'config.json', }); nconf.defaults({ base_dir: __dirname, views_dir: './build/public/templates', upload_path: 'public/uploads', }); const db = require('./src/database'); db.init(async (err) => { if (err) { console.log(`NodeBB could not connect to your database. Error: ${err.message}`); process.exit(); } await doSomethingUseful(); console.log('done'); process.exit(); }); async function doSomethingUseful() { console.log('global object', await db.getObject('global')); }
  • Guests can't post in topic via form if enable pre-moderation

    Solved
    7
    0 Votes
    7 Posts
    508 Views
    barisB
    https://github.com/NodeBB/NodeBB/issues/11897
  • Process "20108" from pidfile not found, deleting pidfile

    Unsolved
    12
    0 Votes
    12 Posts
    1k Views
    T
    @baris I'm able to fix it. I switched to v16, deleted the pidfile, then start nodebb again. Thanks!
  • Left border transition out

    Unsolved
    7
    0 Votes
    7 Posts
    370 Views
    phenomlabP
    @baris thanks
  • Changes in the .tpl files are not reflecting after deployment

    Moved
    2
    0 Votes
    2 Posts
    232 Views
    dave1904D
    You find the login.tpl in the plugin folder of the theme you are using, e.g. /node_modules/nodebb-theme-harmony/templates/login.tpl After changing a template you have to rebuild & restart your nodebb to see effects.
  • Install Nodebb using AWS env

    Unsolved
    2
    0 Votes
    2 Posts
    225 Views
    phenomlabP
    @Vishal-Grover if you're just using EC2, you can use the Ubuntu guide as it's the same. I'd recommend you don't use the AWS Linux build though - use the Ubuntu one.
  • Clustered nodeBB and rolling restarts

    Unsolved
    4
    0 Votes
    4 Posts
    326 Views
    barisB
    @razibal that would work for a single server but once you have multiple servers each running multiple nodebbs you would need the socket.io redis adapter. https://github.com/socketio/socket.io-cluster-adapter/issues/1
  • How to add custom value like author name to Title?

    Unsolved
    2
    0 Votes
    2 Posts
    197 Views
    barisB
    Not exactly what you want but one would be to use filter:topic.build hook and set the title to templateData.title = `${templateData.title} | @${templateData.mainPost.user.username}` Haven't tested it but it would look like 3.0.0 Upgrade Support Thread | @baris | NodeBB Community
  • Retrieve ALL children of specific category via API?

    Unsolved
    2
    0 Votes
    2 Posts
    209 Views
    barisB
    This is one of the socket.io methods that is not available in the v3 read API yet. If you want to load all the subcategories you can do it with a socket.io emit. See below function async function getSubCategories(cid) { // store current loaded children let subCats = ajaxify.data.children.slice(); let newCats = []; // start from the nextSubCategory index let start = ajaxify.data.nextSubCategoryStart; do { // load the next page newCats = await socket.emit('categories.loadMoreSubCategories', { cid: cid, start: start, }); // move start to next page start += ajaxify.data.subCategoriesPerPage; // add the newly loaded children to our sub categories subCats = subCats.concat(newCats); // we are done if no new categories were loaded } while (!newCats.length); return subCats; } You can call this function on a category page and it would return all the subcategories of that category.
  • How to limit flood connections?

    Unsolved
    2
    0 Votes
    2 Posts
    241 Views
    barisB
    The traffic management settings only kick in when the module detects the nodejs event loop lagging behind. At that point it starts serving a 503 page. It applies to all users so it is not a targeted DDoS protection like limit_req_zone which can target a single IP.
  • API logins counted?

    Unsolved
    2
    0 Votes
    2 Posts
    165 Views
    barisB
    Since the api calls the standard login controller https://github.com/NodeBB/NodeBB/blob/master/src/controllers/write/utilities.js#L32 it behaves the same as someone going to /login and logging in.
  • The effective time of cookies and csrf_token

    Unsolved
    5
    0 Votes
    5 Posts
    402 Views
    barisB
    https://github.com/NodeBB/NodeBB/commit/bcb2733f5c7ea463fb6f4e05c7f104b811ebac16
  • Cache refresh

    Unsolved
    4
    0 Votes
    4 Posts
    269 Views
    R
    Thank you, that works perfectly. In most cases something like this is much better handled through the write API. However in this instance, due to the large number of updates, it was much more efficient to process them through a script (roughly 50x faster).
  • How to get all topics name, not only from index data?

    Solved
    3
    0 Votes
    3 Posts
    250 Views
    eeeeeE
    You can see it working here https://aignite.nodebb.com/category/11 Would be easy to add sort
  • 0 Votes
    5 Posts
    325 Views
    barisB
    Seems like all that code is gone in latest 3.x so the issue might be resolved already.