Skip to content

Technical Support

Need help with installing or configuring NodeBB? Look here.

4.7k Topics 26.2k 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.

    YouTube Setting up SendGrid mailer for NodeBB

  • NodeBB guides, how-to's and general tips and tricks

    82 Topics
    599 Posts
    barisB

    Quick start plugin has an example on how to add a new api route https://github.com/NodeBB/nodebb-plugin-quickstart/blob/master/library.js#L40-L76.

    The hooks that are fired client side are for client side code in plugins. If you want to pass data from the client to the server you have two options.

    Create an api route like in quick start plugin Create a new socket event listener on the server side and use socket.emit() client side. Example here
  • 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.

  • send email error 404

    Unsolved
    1
    0 Votes
    1 Posts
    776 Views
    Krissanawat KaewsanmuangK

    can't send email error in log appear
    0_1476424059317_upload-ad740a92-55a2-4d83-8e5e-1875658e3961

  • Cannot Reply or Create Threads - Help!

    4
    0 Votes
    4 Posts
    1k Views
    julianJ

    Is the wrong version installed? Run npm i --production to ensure the proper composer version is installed.

    Otherwise, perhaps the issue has been fixed in a newer version of NodeBB... what commit are you on?

  • 2 Votes
    5 Posts
    2k Views
    A

    @MJ My solution. For demo you can look at my forum (russian language)

    WARNING!!! It is dirty solution (change source code may cause problem with updating in future, you must know how to solve it) and I am not recommend use it, if you didn't understand what you do. Solution without localization, use it only if your forum use only one language (or change code and use number month)

    1. Set cutoff settings for timeago library

    Open acp > custom HTML&CSS > Custom Header and add this:

    <script type="text/javascript"> jQuery(document).ready(function() { jQuery.timeago.settings.cutoff = 2419200000; }); </script>

    In this example I set 28 days for relative date (1000 * 60 * 60 * 24 * 28 = 2419200000), you can change it.

    Didn't forget turn on checkbutton "Enable Custom Header" and save changes. After this, all dates older 28 days become unvisible.

    2 Change timeago library

    Onen file public/vendor/jquery/timeago and this code:

    if (!isNaN(data.datetime)) { if ( $s.cutoff == 0 || Math.abs(distance(data.datetime)) < $s.cutoff) { $(this).text(inWords(data.datetime)); } }

    replace to this:

    if (!isNaN(data.datetime)) { if ( $s.cutoff === 0 || Math.abs(distance(data.datetime)) < $s.cutoff) { $(this).text(inWords(data.datetime)); } else { var monthNames = [ "Jan", "Feb", "Mar", "Apr", "May", "June", "July", "Aug", "Sept", "Oct", "Nov", "Dec" ]; var day = data.datetime.getDate() var year = data.datetime.getFullYear(); var monthIndex = data.datetime.getMonth(); var hours = ("0" + data.datetime.getHours()).slice(-2); var minutes = ("0" + data.datetime.getMinutes()).slice(-2); $(this).text(day + ' ' + monthNames[monthIndex] + ' ' + year + ' ' + hours + ':' + minutes); } } 3. Restart forum

    All must work fine

    Revert changes back

    If you need revert changes, you can do it with command

    git checkout /public/vendor/jquery/timeago/jquery.timeago.js

    And remove added text from acp > custom HTML&CSS > Custom Header

  • unable to edit groups/bad data

    1
    0 Votes
    1 Posts
    699 Views
    Brass ManB

    A while back I restored my database from a backup, and I have a feeling that backup may have been corrupt.

    when I try to visit the admin/manage/groups page, my nodebb instance crashes and reboots. I get the error Cannot read property 'indexOf' of undefined. After doing a little debugging I found that that the query for groups:createtime (line 152 in src/database/mongo/sorted.ja), is returning some objects that DONT have "groups:createtime" as their key ... these documents don't have the expected schema, which is what's throwing that undefined error.

    I've found, using the mongo console, when I use find('_key': 'groups:createtime') I only get the objects I expect, but find('_key': \groups:createtime\) returns the bad objects (note that the substring "groups:createtime" appears nowhere in _key string for those objects). More upsettingly, if I remove those bad objects by their ObjectId, they STILL return in that query ... despite the remove command returning without error, despite no longer being able to look the object up by it's ID.

    I'm not clear on whether this is a NodeBB issue at all, or entirely on the Mongo side, but in the meantime, I can't edit anything in regards to groups (including adding/removing members to existing groups), and attempts at upgrading my forum version fail at the database migration step.

  • Some issues after upgrading to 1.2.1

    5
    0 Votes
    5 Posts
    2k Views
    A

    @alff0x1f Nice work around. Tks buddy 😉

  • 0 Votes
    6 Posts
    2k Views
    A

    @metalkramp said in [Solved] Color profil missing in the resized uploaded photos.:

    @azeus Do you mind posting the solution?

    I just installed the plugin nodebb-plugin-imagemagick as suggested by @baris 🙂 (And of course ImageMagick in the server).

  • Merge categories based on tags

    2
    0 Votes
    2 Posts
    1k Views
    PitaJP

    @metalkramp it sounds like it may be easier for you to only use tags in this case, and use a custom plugin to display certain tags as if they are categories.

  • 0 Votes
    17 Posts
    9k Views
    F

    Answer to self: enable the custom header and the global vars will be there. Sounds about right?

  • problem when install on digitalocean

    Solved
    4
    0 Votes
    4 Posts
    2k Views
    T

    One thing to try as well; bump the amount of RAM up for the install, then lower it down after the install finishes.

  • 0 Votes
    4 Posts
    2k Views
    M

    Due to problems with dbsearch plugin mentioned above I switched to solr plugin. Seems to resolve problems that occured with dbsearch + solr gives better search results.

  • SSO Google Plugin

    1
    0 Votes
    1 Posts
    785 Views
    H

    I am getting this error from Google when I tried to register with Google account on my NodeBB forume:

    ""The redirect URI in the request, http://discuss.tafsirahlam.co/auth/google/callback, does not match the ones authorized for the OAuth client. Visit ""

    The Authorized redirect URIs in Google Console is the same which is "http://discuss.tafsirahlam.co/auth/google/callback"

    Please advise.

  • 0 Votes
    4 Posts
    2k Views
    P

    @spwolf unless you applied custom css on your site to make the icons and text smaller, there shouldn't be any difference. Persona theme is used as is on this site. I am sure that there is no custom css applied here.

  • Upgrade from v1.1.2 to v1.2.1

    5
    0 Votes
    5 Posts
    2k Views
    ljhardyL

    @pichalite That did it. Thanks!!

  • 0 Votes
    7 Posts
    3k Views
    BriB

    @julian Not sure if related, but 2FA isn't working again for whatever version community.nodebb is running right now, I just tried to disable 2FA and nothing happens (Trying to port over my codes to a new device)

  • favicon reverted to the default

    3
    0 Votes
    3 Posts
    1k Views
    T

    @baris Thanks! I may pull down that change, I feel so weird not having my favicon.

  • Node 1.21

    5
    0 Votes
    5 Posts
    2k Views
    P

    @torn2 everything added in 1.2.1 is listed in the 1.2.1 milestone.

    Link Preview Image 1.2.1 Milestone · NodeBB/NodeBB

    Node.js based forum software built for the modern web - 1.2.1 Milestone · NodeBB/NodeBB

    favicon

    GitHub (github.com)

  • Installation Errors

    1
    0 Votes
    1 Posts
    941 Views
    C

    Installing on a KVM VM, Centos 6 64bit. Followed the tutorial https://docs.nodebb.org/en/latest/installing/os/centos.html

    Getting errors though...

    [root@localhost ~]# curl https://raw.githubusercontent.com/creationix/nvm/v0.13.1/install.sh | bash source ~/.bash_profile % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 101 3442 101 3442 0 0 16694 0 --:--:-- --:--:-- --:--:-- 98342 => Downloading nvm from git to '/root/.nvm' => Initialized empty Git repository in /root/.nvm/.git/ remote: Counting objects: 5491, done. remote: Compressing objects: 100% (7/7), done. Receiving objects: 100% (5491/5491), 1.58 MiB, done. remote: Total 5491 (delta 0), reused 0 (delta 0), pack-reused 5484 Resolving deltas: 100% (3321/3321), done. Note: checking out 'v0.13.1'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b new_branch_name HEAD is now at eef12cc... v0.13.1 Deleted branch master (was f9e14b7). => Appending source string to /root/.bash_profile => Close and reopen your terminal to start using nvm [root@localhost ~]# source ~/.bash_profile /usr/bin/which: no node in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/root/bin) [root@localhost ~]# nvm install v0.12.7 # as of this writing check the result of the list-remote to see all choices ######################################################################## 100.0% -bash: manpath: command not found Now using node v0.12.7 [root@localhost ~]# systemctl start redis -bash: systemctl: command not found [root@localhost ~]# [root@localhost ~]# systemctl enable redis -bash: systemctl: command not found'
  • Can I Duplicate My Prod Instance Locally?

    Solved
    3
    0 Votes
    3 Posts
    1k Views
    deiden26D

    @baris Thanks. Will do

  • How do we bulk delete spam posts / messages?

    6
    0 Votes
    6 Posts
    2k Views
    P

    @greenmoon yes you can. Select multiple topics and then use the "Delete Topic" under "Topic Tools"

  • 0 Votes
    1 Posts
    592 Views
    T

    I see that its possible to convert from BBpress to Nodebb, But I want to take my attachments from GD bbPress Attachments and my likes from all posts from WP ULike with me, I know this is a very far-fetched request, but someone may have done this before, is there anything out there to perform this conversion?