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
  • How add something before </head>

    4
    0 Votes
    4 Posts
    2k Views
    barisB
    There is no filter.footer.build footer is rendered separately from the page. And those hooks are only used to add extra data to the page so templates can use them to render new stuff. Easiest is to just create a plugin and copy footer.tpl from your base theme ie persona and add your custom code there.
  • Why this script can't work?

    3
    0 Votes
    3 Posts
    1k Views
    a632079A
    @yariplus Thanks a lot
  • Problem in running nodebb on cloud9

    1
    0 Votes
    1 Posts
    728 Views
    A
    How to do following step on bash panel that come on cloud9 : The nodebb command after the git url will create a folder called nodebb so you have to cd into that directory after you have cloned NodeBB. Urgently help required
  • NodeBB v1.5.2

    Moved
    9
    8 Votes
    9 Posts
    6k Views
    P
    @vamsi-krishna said in NodeBB v1.5.2: Im not able to update to 1.5.2 Getting a 404 https://docs.nodebb.org/en/latest/upgrading/index.html https://docs.nodebb.org/configuring/upgrade/
  • how can I get all groups?

    3
    0 Votes
    3 Posts
    2k Views
    D
    @baris correct answer! thanks!
  • Section

    Solved
    12
    0 Votes
    12 Posts
    4k Views
    A
    @yariplus said in Section: ul.categories [data-cid="1"]::before { content: "Money"; background: #1e1f33 url(https://i.imgur.com/liB8eUb.png) no-repeat 10px center; } ul.categories [data-cid="3"]::before { content: "Blocks"; background: #1e1f33 url(https://i.imgur.com/eSUaQuV.png) no-repeat 10px center; } ul.categories [data-cid="1"]::before, ul.categories [data-cid="3"]::before { color: #fff; display: block; position: relative; height: 40px; line-height: 40px; font-size: 15px; border-bottom: 1px #0c2b51 solid; text-align: left; padding-left: 70px; font-style: normal; text-transform: uppercase; margin-bottom: 20px; font-family: "Roboto","Helvetica Neue",Helvetica,Arial,sans-serif; border-radius: 5px; margin-left: 10px; } Good! fnx
  • [WARM] Too many emits!

    5
    0 Votes
    5 Posts
    2k Views
    julianJ
    Could be emitting because of some queued requests from socket.io, and the server going down and reconnecting... socket.io behaves badly and sometimes floods the server with queued up calls, hence we added this detection to temporarily drop the connection.
  • User context in plugin button

    2
    0 Votes
    2 Posts
    1k Views
    yariplusY
    To get the current post, in the context of the button click, use the data-pid selector. var pid = $(this).closest('[data-pid]').data('pid'); Now for the current user, you would submit a socket or route call with your pid, and check server-side. For sockets, you get socket.uid https://github.com/NodeBB/NodeBB/blob/8ea5c060f50d1231c3ae3f7cbf5b2fe23ecf51e6/src/socket.io/notifications.js#L10 For routes, you get req.uid https://github.com/NodeBB/NodeBB/blob/54c951cc816b83168083000ae3e08af6c07d4c73/src/controllers/user.js#L12
  • Clarity on NodeBB

    Solved
    8
    0 Votes
    8 Posts
    4k Views
    A
    @esteban-constante I'm not too good in js and am trying to plug in angular as frontend and use nodebb api for integrating with one of our existing applications. But angular scopes are not recognized in nodebb. Can you please suggest me some links/posts to get started with nodebb development? I'm not able to understand the flow of the application.
  • Integrating Angular 1.3 with NodeBB

    1
    0 Votes
    1 Posts
    960 Views
    A
    I'm trying to integrate angular 1.3 with NodeBB as we need are looking for options to integrate it with our angular application with some customization. However, angular controller objects are not recognized in tpl files and I'm guessing that it's looking for those objects in respective js files instead of looking at angular scopes. I've included angular in header.tpl and tried to initialized ng-app on a div tag. How to achieve this? Code snippet - <head> <title>{browserTitle}</title> <!-- BEGIN metaTags -->{function.buildMetaTag}<!-- END metaTags --> <link rel="stylesheet" type="text/css" href="{relative_path}/assets/stylesheet.css?{config.cache-buster}" /> <!-- IF bootswatchCSS --><link id="bootswatchCSS" href="{bootswatchCSS}" rel="stylesheet" media="screen"><!-- ENDIF bootswatchCSS --> <!-- BEGIN linkTags -->{function.buildLinkTag}<!-- END linkTags --> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.10/angular.min.js"></script> <script> var RELATIVE_PATH = "{relative_path}"; var config = JSON.parse('{{configJSON}}'); var app = { template: "{template.name}", user: JSON.parse('{{userJSON}}') }; var myApp = angular.module('spicyApp1', []); myApp.controller('SpicyController', ['$scope', function($scope) { $scope.spice = 'very'; $scope.chiliSpicy = function() { $scope.spice = 'chili'; }; $scope.jalapenoSpicy = function() { $scope.spice = 'jalapeño'; }; }]); </script> <script src="{relative_path}/assets/nodebb.min.js?{config.cache-buster}"></script> <!-- BEGIN scripts --> <script type="text/javascript" src="{scripts.src}"></script> <!-- END scripts --> <!-- IF useCustomJS --> {{customJS}} <!-- ENDIF useCustomJS --> <!-- IF useCustomCSS --> <style type="text/css">{{customCSS}}</style> <!-- ENDIF useCustomCSS --> </head> <body class="{bodyClass} skin-{config.bootswatchSkin}" ng-app="spicyApp1"> <div> <div ng-controller="SpicyController"> {{SpicyController}} </div> </div>
  • I can not do the next step. Hepl me,please.!!!!

    1
    0 Votes
    1 Posts
    802 Views
    tanhiepT
    [image: jCMIXlQ.png]
  • Chat webhooks

    1
    0 Votes
    1 Posts
    980 Views
    orweinbergerO
    I'm trying to fire a hook whenever a new chat message is sent. I noticed there's a hook called action:chat.sent. My plugin however does not get that hook fired even when a new chat message is sent for some reason. I also noticed there's filter:messaging.parse and filter:parse.raw but these fire with all chat data, meaning that if I sent one message but in my history I have more messages, the hook will fire with all previous messages as well, and I would only like it to fire once when a new chat is sent. As a workaround I guess I can bind to filter:messaging.parse and manually filter out anything that isn't isNew: false, but I am looking for something cleaner if possible.
  • Is there Database model?

    8
    0 Votes
    8 Posts
    4k Views
    J
    Not ideal, but will do for the moment. Thanks!
  • NodeBB chat bot plugin

    3
    0 Votes
    3 Posts
    2k Views
    orweinbergerO
    This looks easy enough, thank you @yariplus!
  • AWS Cognito for authentication

    1
    0 Votes
    1 Posts
    1k Views
    T
    Hi, Is it possible to use Amazon Cognito to handle authentication or maybe sync with NodeBB? Thanks Todd
  • 1.5.0 Breaking Changes

    2
    3 Votes
    2 Posts
    4k Views
    julianJ
    As of v1.4.4 nconf.get('upload_path'); is no longer a relative path pointing to the uploas directory, it is now an absolute path to the uploads directory. Change introduced in commit aaacdb8413c9bc3f3d47c249c0d0287eac1cad88
  • New Persona Mobile Menus

    Moved
    15
    7 Votes
    15 Posts
    7k Views
    E
    good job, seems to work very nice only problem with chats one is it appears the date of each chat and then dissapears
  • Menu moved

    6
    0 Votes
    6 Posts
    2k Views
    J
    I missed the announcement thread somehow. I'll post there.
  • NodeBB ES6/7

    11
    0 Votes
    11 Posts
    4k Views
    julianJ
    Thanks @yariplus ... with that statement, at least two plugin developers I know are now writing code that cannot be used in Node 4, which is the oldest LTS we officially support. It certainly lends credence towards the eventual dropping of Node v4 support.
  • What's the tpl? View engine?

    6
    0 Votes
    6 Posts
    3k Views
    T
    @PitaJ Just wandering whether there is option to choose view engine. Personally , used pug a lot and familar with it.