Skip to content

NodeBB Development

Stay tuned here to hear more about new releases and features of NodeBB!

2.8k Topics 18.6k Posts

Subcategories


  • Posts from the NodeBB Development Blog
    96 Topics
    780 Posts
    kainosK
    Very good Vlad. I am Vladislav.
  • Found a bug? Why not make a bug report here?
    1k Topics
    7k Posts
    nhl.plN
    Indexes are used to speed up database/datastore. https://en.wikipedia.org/wiki/Database_index
  • Focused discussion related to ActivityPub integration in NodeBB

    111 Topics
    2k Posts
    kainosK
    What about Design v4, is the same like 3.11.0? Is there Grid categories Options with images? Invision Community tests v5 Beta 6. Here some Forums https://www.fanclubs.org/ https://jimiwikman.se/ https://www.internazionale.fr/ https://krscanski.chat/
  • Help Translate NodeBB
  • Get username / encrypt password

    2
    0 Votes
    2 Posts
    1k Views
    yariplusY
    Why would you do this? You should never be storing the password in more than one database. I think you seriously need to re-think the design of your app. If you want to retrieve the hashed password. You need to call the database directly. db.getObjectField('user:' + confirmObj.uid, 'password', function (err, password) { // Now you have the hashed password. })
  • requesting user reputation

    9
    0 Votes
    9 Posts
    3k Views
    E
    @yariplus said in requesting user reputation: Sure. Here's the custom-pages render function as an example. https://github.com/psychobunny/nodebb-plugin-custom-pages/blob/master/library.js#L18-L23 You can modify it to add getUserUsers to the render vaiables, using the req.uid var User = module.parent.require('./user'); function renderCustomPage(req, res) { var path = req.path.replace(/\/(api\/)?/, '').replace(/\/$/, ''); User.getUserFields(req.uid, ['username', 'topiccount', 'reputation'], function (err, user) { if (err || !user) user = null; res.render(path, { title: plugin.pagesHash[path].name, user: user }); }); } Now on all the custom pages templates, the variable {user.reputation} will be available. (and undefined for guests) works perfect @yariplus 4 president
  • About pagination ajaxify

    4
    0 Votes
    4 Posts
    2k Views
    jareyJ
    @baris would be nice to have the pagination component build as a plugin. That way people could just use the same hooks at the actual component and modify or implement different ways of pagination. I think that if i would want to build a different way of pagination (lets say, use a lib for that) even if i use the same hook for pagination socket.on('event:new_post', onNewPost); , because the pagination code still present in the core of nodebb, that code would execute anyway, so even if i use my own code to paginate, the core code would execute, even it would not needed at all. I think it should not be difficult to migrate the pagination mechanism to a plugin, as it was made for the composer. Or maybe the bast majority of the core code should still present but a few new hooks should be created. Powerfull and more usefull IMO.
  • Adding mongo with a custom URL (Modulus.io)

    3
    0 Votes
    3 Posts
    3k Views
    Anthony YoungA
    @pichalite Thanks Rookie mistake by me
  • Add Categories in Sidebar

    2
    1 Votes
    2 Posts
    2k Views
    barisB
    You can use the categories widget for this.
  • Is it possible to only show the original poster's replies

    2
    0 Votes
    2 Posts
    1k Views
    PitaJP
    @Hao-Lee do you mean filtering the posts by poster?
  • Hosting information?

    12
    0 Votes
    12 Posts
    4k Views
    A
    To be honest there are only 3 reasons when to use managed services: You do not know any better You are too lazy It is cheaper (rarely; only for enterprises commonly) Using NodeBB's managed service would cost me 750$ just for my forum alone. Not even to mention "side" applications like a CMS or a few static HTML pages. If I would count the traffic costs in (DO based calculation) the plan wouldn't be affordable for me. Assuming I just need the +5M PV plan for 750$ it still would mean that I pay more than 720-730$ more than for my current system, while losing many benefits of a dedicated setup. Another example, imagine I would have NodeBB on all my sites and those I manage (+90). Sometimes a rented server might not be an option anymore. Maybe you want more scalability and therefore actually need a cloud server, but it is too expensive. Or maybe it is sensitive data which you want to keep out of the cloud for security reasons. Lets take it even further. Despite the massive one time costs a server brings, you will even have to hire someone to monitor that one machine (usually you use a cluster, so you actually have +2 machines). Now you could have costs of approximately 3500-5000$ compared to 750$. Sure in the above case with multiple sites you would have to take 750*90. But imagine you have one big site with the same amount of visitors. Then it makes sense and actually saves you tons of ash. Some might ask himself now: "Why don't you do it better then?" First of all I am not that desperate for cash, second I won't be the dickface who steals useful funds.
  • Hiding subcategories of a particular category on the homepage

    6
    1 Votes
    6 Posts
    2k Views
    barisB
    Hiding it with css seems to be the best option here @yariplus has already given the necessary css.
  • This topic is deleted!

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

    Unsolved
    1
    0 Votes
    1 Posts
    38 Views
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    30 Views
  • Dev Question: Multiple Topics - Categories Page

    5
    0 Votes
    5 Posts
    3k Views
    S
    @yariplus thanks. That has given me a ton of areas to research / grep and try out.
  • Emoji in Username

    8
    0 Votes
    8 Posts
    4k Views
    snodejokeS
    Thanks a lot @JasperNL, that's really helpful. If I get some availability any time soon, I'll sort out a PR for accepting the emoji unicode range.
  • What happened to the recent route on 1.1.0?

    4
    0 Votes
    4 Posts
    2k Views
    N
    My fault , thought it was in /recent
  • Programatically create users

    7
    0 Votes
    7 Posts
    4k Views
    B
    @julian Oh definitely, will do. Thanks.
  • Updating User Profile picture using Write API

    Unsolved
    7
    0 Votes
    7 Posts
    3k Views
    G
    @pichalite Sigh alright, thanks for the help.
  • Get topics in category?

    6
    0 Votes
    6 Posts
    3k Views
    JamJ
    @yariplus cool, got it , thanks ~!
  • Render current URL in template file

    3
    0 Votes
    3 Posts
    2k Views
    barisB
    https://github.com/NodeBB/NodeBB/commit/8ea5752b506637803d09b546eadc7fde55f5ff2d It will be available in all routes, you can use it with {url}
  • Is there some suggested user scale or machine type for noddbb?

    2
    0 Votes
    2 Posts
    1k Views
    T
    @xidui said in Is there some suggested user scale or machine type for noddbb?: We have more than 100k users and more than 400k contents(mongodump make about 1G size of directory). Initially we use 1G memory machine, we find that 503 error always come. Then we upgrade the machine to 2G, some error still comes. We now have upgraded it to 4G. I wonder that is there a suggested machine for our scale? Where is community.nodebb.org hosted? Totally, we find the response speed is too slow for some pages of noddbb. We are not satisfied about it. Take a look here. I won't answer your question fully. I can say with about 50 users I was very quickly hitting 503 errors and I had to move to 1G of memory. I had some discussion with others in this thread: https://community.nodebb.org/topic/9109/503-temporarily-unavailable-due-to-excessive-load
  • Possible bug? Deleted Posts listed

    13
    0 Votes
    13 Posts
    4k Views
    julianJ
    @wktang Yes, this does apply to IS as well.