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
    780 Posts
    kainosK
    Very good Vlad. I am Vladislav.
  • 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

    108 Topics
    2k Posts
    jupiter_rowland@hub.netzgemeinde.euJ
    @Ben Pate This looks like it’s pulled from Streams, yes? Which means it’s not related to the Forums and Threaded Discussions Working Group, is that right?Conversation Containers were originally built on and for (streams), yes. They were pretty much done some nine months ago.#FediMeta #FediverseMeta #CWFediMeta #CWFediverseMeta #Streams #(streams) #ConversationContainers
  • Help Translate NodeBB
  • Multiple tags

    1
    0 Votes
    1 Posts
    1k Views
    F
    Re: Multiple tag search This should be made possible, at least by url, so links can be made from other posts.
  • Debugging nodejs app.js at 100%

    19
    0 Votes
    19 Posts
    7k Views
    PitaJP
    @exodo I would imagine it's something like node --prof app.js
  • Any release date planned for 1.1.3?

    5
    1 Votes
    5 Posts
    2k Views
    Bruce LeeB
    @pichalite said in Any release date planned for 1.1.3?: @Bruce-Lee those are just weekly snapshots of master branch. Those are most likely less stable than master. I don't understand why they are even created and what purpose they serve. Thanks @pichalite, i guess i have to wait for the release then.
  • How can I add a section in the Admin Menu?

    Solved
    4
    0 Votes
    4 Posts
    3k Views
    J
    I know this is an old topic, but I just ran into this today and wanted to add an admin nav section in the minimally invasive way possible. This technique worked for me and I'm wondering if anybody has any thoughts about this being a good or bad approach to quickly adding a custom admin navigation menu from a plugin. Any critiques appreciated! plugin/static/js/admin/custommenu.js: var adminInitialized = false; $(window).on('action:ajaxify.start', function(data) { if (!adminInitialized) { $('ul#main-menu').append('\ <li class="dropdown menu-item">\ <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Custom Menu</a>\ <ul class="dropdown-menu" role="menu">\ <li><a href="/admin/my-custom-route">Custom Route</a></li>\ </ul>\ </li>'); adminInitialized = true; } }); plugin.json: "acpScripts": [ "static/js/admin/custommenu.js" ]
  • Avatar fields (picture vs uploadedpicture)

    2
    0 Votes
    2 Posts
    1k Views
    yariplusY
    uploadedpicture is their most recently uploaded profile picture. picture is their currently selected picture.
  • Plans to update jQuery in NodeBB? (Currently uses 1.10.2)

    9
    0 Votes
    9 Posts
    3k Views
    J
    @pichalite Very cool! Thanks!
  • Open new topic composer

    Solved
    10
    0 Votes
    10 Posts
    3k Views
    P
    @omedia aah yes... adding # in route should work. No need for data-ajaxify in that case. Totally forgot about that.
  • How can I adjust the default Reputation awarded for an upvote?

    3
    0 Votes
    3 Posts
    1k Views
    M
    @jarey thanks for pointing out that plugin. I had misinterpreted it's functionality before. When I saw "Max upvote weigh (points)" I assumed you could only use that configuration to scale the upvote-to-reputation ratio based on the reputation of the user doing the voting. For others that run into a similar issue. Using the plugin Jarey pointed out, if you'd like to make 1 upvote = 10 reputation I was able to do that by setting: Max upvote weigh (points) = 9 Since the default weight is 1 upvote = 1 reputation, and this plug in then adds the additional 9 reputation.
  • 0 Votes
    6 Posts
    3k Views
    julianJ
    @Tilen-Štraus Glad you got it working, and thank you for sharing your solution for others who may run into the same trouble
  • Native electron client

    3
    1 Votes
    3 Posts
    2k Views
    Moritz FriedrichM
    @teh_g sadly, this won't be possible with Electron, since it requires V8, Chromium and Node.JS to run, all of which are not available on neither iOS nor Android. You could maybe use Cordova for this, but it would require a C# developer, store licenses etc... not forget a great amount of time and effort. Electron, on the other hand, makes developing Desktop applications with JS easy and really quick... So it would be quite easy to craft a NodeBB client. I imagine board admins could run an installer like npm install nodebb-electron-client-setup, then do npm setup and have the client available for download at http://example.tld/client/:os for their users.
  • RFC: Drop support for old node.js versions?

    6
    0 Votes
    6 Posts
    2k Views
    T
    @julian said in RFC: Drop support for old node.js versions?: Those in enterprise environments? Edit: Good lord, it's 11-0 right now. Ehh, even enterprise needs to drop support for older dependencies. Especially these days where old versions can lead to security issues!
  • Which nodebb files/directories need to be persisted?

    9
    0 Votes
    9 Posts
    3k Views
    JenklerJ
    https://www.nodebb.se/topic/7/installation-av-nodebb-anteckningar That is how i Do it I guess you can figure it out even if its in Swedish
  • How to add a new route

    9
    0 Votes
    9 Posts
    3k Views
    J
    It is working now! Thanks guys! It was the variable name top. I changed it to _top and it works perfectly
  • Where can I read up on Architecture and local development

    4
    0 Votes
    4 Posts
    1k Views
    J
    Thanks guys. This solved my problem for now. I guess the main info I was missing was how plugins and themes work for this. Now that I have that, I am good to go for a bit Thanks so much for your help!
  • How do I make a HTML widget to show a specific topic?

    4
    0 Votes
    4 Posts
    2k Views
    yariplusY
    @osirisguitar You may want to try my plugin featured-topics-extended, it comes with the widget Featured Topics List, which displays a list of topics just as they would appear on the category page. Admins can select exactly which topics to display in the Topic Tools menu when visiting a topic. Here is an example with two topics selected. http://puu.sh/qNtIw/06e4701164.jpg
  • What's happening with package manager?

    10
    0 Votes
    10 Posts
    3k Views
    jareyJ
    @julian Yep that's correct. It wasn't showing at the moment @exodo 's wrote, but a while after that it showed up. Thanks @julian
  • Templates.js html server rendering

    6
    0 Votes
    6 Posts
    2k Views
    Bruce LeeB
    @PitaJ do you mean to code as res.render('user/hello', req.query); instead of res.render('user/hello.tpl', req.query);
  • Are the docker builds no longer maintained?

    10
    0 Votes
    10 Posts
    4k Views
    BriB
    @julian said in Are the docker builds no longer maintained?: nothing that can beat the feeling of a fresh server install with only the software you need. However, you do have to consider the cost... in that you'll be spinning up multiple containers for multiple services (if you follow "best practice"), with all of the duplication of resources that entails. That's the thing though, the fresh server doesn't stay fresh forever because it's not immutable. And any OS will come with software you don't need. I'm just getting started with Docker, but I can see the appeal when trying to deploy quickly and consistently. I'm dreading moving servers because that means I have to re-install everything I need on a fresh server and reconfigure it. If I was using docker, it's pretty much just create a new VM -> install Docker (unless using an image that already has it) -> docker run myservice and done.
  • Image not displaying because of data-state="loaded" missing on img tag.

    3
    0 Votes
    3 Posts
    1k Views
    jareyJ
    @julian thanks a lot! And for the second question, is there any way to do it? Thanks again. EDIT (just to clarify, in order to be helpfull for anyone in the future): Since my image, didn't had the data-state="unloaded" (in fact id didn't have the data-state at all on the img tag) i had to first, use posts.unloadImages(post); an then posts.loadImages(); to get the image loaded. That's because posts.loadImages() only searches for data-state="unloaded", posts.unloadImages. gets all images in the post provided without the class .not-reponsive and puts the data-state="unloaded" in each img tag.
  • 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. })