Skip to content

NodeBB Development

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

2.8k Topics 18.5k Posts

Subcategories


  • Posts from the NodeBB Development Blog
    96 Topics
    779 Posts
    G
    Very Nice!
  • Found a bug? Why not make a bug report here?
    1k Topics
    7k Posts
    barisB
    Because you ran the forum without indexes you have documents that violate the index constraints. You will have to remove these documents for the create index command to work.
  • Focused discussion related to ActivityPub integration in NodeBB

    107 Topics
    2k Posts
    julianJ
    Could it be that the idea that quoted posts on forums are not rich resources (and thus liable for deletion) are an artifact of an older age of the internet, but at the same time is a feature, not a bug? 100% agreed that in a forum context the ability to quote the text of a post is important. Forum users often extend this in many ways, not limited to: Holding a user accountable (by preserving their words from future editing) Emphasis of certain portions of text Excision of unrelated portions of text Simply displaying the quoted post as a linked resource robs the end user of all that additional functionality, and that is something I am not sure I want to concede. @Christian-Stange @[email protected] @Panzz
  • Help Translate NodeBB
  • Browsing of topics in mobile

    3
    1 Votes
    3 Posts
    2k Views
    julianJ
    I'm loathe to do it on desktop mostly because people can become quite attached to their flow To me, it's much easier to hit "end" a couple times to get to the end of a topic. (Replying by email, so let's hope this gets through!)
  • Markdown missing image option?

    5
    0 Votes
    5 Posts
    2k Views
    P
    Thanks @Mega and on top of that, look here for extra buttons to add for composer: https://community.nodebb.org/topic/2298/nodebb-plugin-buttons-galore-nodebb-buttons-galore
  • 1 Votes
    1 Posts
    2k Views
    A
    Hi, We want to migrate wordpress posts as well as comments and replies associated to that post into nodeBB under General Discussion category. Please note our wordpress site is multi-site network. We have search for the implemented plug-in but we have not found any plug-in. So if you know any kind of a plug-in supported for latest version 0.6.0 which fulfil our requirement, please let us know. If there is no such kind of a plugin is available we are planning to implement wordpress plugin which migrate posts as well as comments and replies associated to that post. To implement wordpress plugin we need REST/MOBILE API. So by using that REST/MOBILE API, We can create topics/comments/reply from outside the nodeBB environment. So please let us know if nodeBB supports such kind of REST/MOBILE API. So any help would be greatly appreciated. Thanks!!!
  • Node js process.nextTick doesn't work properly

    1
    0 Votes
    1 Posts
    2k Views
    K
    Well, I have this issue that I need to do following things: 1.Mongo Find 2. Foreach 3. MongoFind 4 one more Foreach. because of asynchronaus mongo calls it is difficult to get proper result, however process.nextTick should handle this problem and still I have problem: function find(dbComm) { dbComm.forEach(function (current) { id= parseFloat(current.ID); db.anotherCollection.find({ ID: id}, function (error, result) { result.forEach(function (rank) { if (parseFloat(result.ID) == parseFloat(current.ID)) { rank.rank = 'Some calculations'; } }); }); }); } app.get('/someparams', function (req, res) { db.collection.find().sort({ "rank": order }).skip(pagenumber).limit(5, function (err, result) { process.nextTick(function () { find(result, function () { }) }); process.nextTick(function () { res.send(result); }); }); And on client side I should recive an array where the rank equals 'Some Calculations' but unfortunetly it is not... However...! If I add setTimeout(function(){}) before res.send(result) (and res.send(result) will be placed inside setTimeout) it actually does work and on client side I recive data with "Some Calculations" but it is just timeout and it fails sometimes and client dont recive "Some Calculations" if I put process.nextTick instead of setTimeout it doesnt work and "Some calc..." are not sent. Something is beeing done eralier then it should (probably in forEach in find() function) and my question is how to deal with it? maybe I should put process.nextTick in different function ?
  • Possible to use mysql database?

    9
    0 Votes
    9 Posts
    8k Views
    A
    @José-Ángel-Rey-Liñares "version": "0.1.0", Yepp, exceptionally out of date.
  • This topic is deleted!

    Locked
    1
    1 Votes
    1 Posts
    36 Views
  • Do I need to call user.isAdministrator on my plugin's admin page?

    2
    0 Votes
    2 Posts
    1k Views
    barisB
    You don't have to. NodeBB core makes sure all requests to those routes are from admins. https://github.com/NodeBB/NodeBB/blob/master/src/routes/index.js#L125-L126
  • Shouldn't be the Watched Topics list, sorted by last message?

    5
    1 Votes
    5 Posts
    2k Views
    X
    @julian said: What's it currently sorted by, initial post time? This: @baris said: Sorted by the time you watched the topic.
  • Are developer docs falling behind?

    4
    0 Votes
    4 Posts
    2k Views
    julianJ
    @frissdiegurke is correct, we've moved the list of plugin hooks to the wiki. It needs a bit of standardisation, since new hook documentation was added rather haphazardly, but most (if not all) of the hooks should be there. If not, they can be added by anybody who wants to, by editing the wiki doc itself.
  • Plugin Compatibility Prior to Update

    1
    0 Votes
    1 Posts
    1k Views
    J
    Hello All, I'm pretty sure this isn't a feature, besides on install. But is it possible to tell of plugin compatibility before updating your NodeBB instance? Just putting this out there for example, WordPress: [image: 4SPjA9K.png] If we can automatically update in the future, this might be a good suggestion.
  • Wrapping nodebb using android WebView

    5
    0 Votes
    5 Posts
    3k Views
    tgezginisT
    @quahfamili said: @julian I solved it, its okay already How did you solve this problem? I have this problem too.
  • Add infinitescroll to custom page

    2
    0 Votes
    2 Posts
    2k Views
    PitaJP
    @learner are you taking about using the infinite scroll module? Or implementing your own infinite scroll?
  • Redirection to route in plugin

    8
    0 Votes
    8 Posts
    4k Views
    L
    Up, Can anyone help me, please?
  • 1 Votes
    12 Posts
    7k Views
    Dustin FalgoutD
    @julian Right, I understand. It just makes it difficult to migrate from a more traditional forum like phpBB (which is the most, or perhaps second-most, used forum software today). I think making it easier to migrate from phpBB's format could only help nodeBB gain more ground Here is the github issue I opened a couple weeks ago. It was closed, though I hope we can reopen it. I'm more than willing to contribute. Let me know if there's anything I can do. https://github.com/NodeBB/NodeBB/issues/2549#issuecomment-69857946
  • How to create a new route for a new custom page

    7
    2 Votes
    7 Posts
    6k Views
    X
    @psychobunny
  • What is the problem in this library.js?

    3
    0 Votes
    3 Posts
    1k Views
    L
    Thanks, problem solved, it was the nodebb version. Now I have 0.6.1
  • plugin.json changes

    1
    0 Votes
    1 Posts
    973 Views
    barisB
    As per https://github.com/NodeBB/NodeBB/issues/2578 The properties id, name and description in plugin.json will be phased out in 0.6.1. You can still have them but the values from package.json will be used.
  • Do an action when users go to topics

    3
    0 Votes
    3 Posts
    3k Views
    L
    Thanks, I have just solved the error. But the code doesn't work for now. How can I do execute a function when user go to topic? Thanks
  • Hook when user's group has been changed

    2
    0 Votes
    2 Posts
    2k Views
    MegaM
    Sorry for bothering guys, I found it in the source code. There are two hooks already: action:group.join action:group.leave Both of them takes only one argument: { groupName: groupName, uid: uid } join: https://github.com/NodeBB/NodeBB/blob/master/src/groups.js#L633-L675 leave: https://github.com/NodeBB/NodeBB/blob/master/src/groups.js#L711-L742 Exactly what I'm looking for! Edit: action:groups.* hooks in the source code were renamed to action:group.*
  • Custom Reputation Plugin

    1
    1 Votes
    1 Posts
    1k Views
    M
    I was looking through the docs, but could not find this. Sorry if I missed it. Is there a way to see how exactly the reputation system works, without browsing the source code? If I wanted to implement some very specific rules, how easy/hard is it to customize? Could I just write my own reputation plugin and swap it out?