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
  • Where's the template file of 'composer' ?

    6
    0 Votes
    6 Posts
    3k Views
    K
    @Bri @pichalite I got it now , thank you guys
  • Opinions requested re: mobile notifications handling

    1
    0 Votes
    1 Posts
    843 Views
    julianJ
    https://github.com/NodeBB/NodeBB/issues/4695 In order to funnel responses into one place, please reply in the GitHub issue itself
  • Plugin Integration Test

    4
    0 Votes
    4 Posts
    2k Views
    B
    @julian It means that I can test my plugin with nodebb actually firing hooks for it.
  • Composer design ideas

    3
    3 Votes
    3 Posts
    1k Views
    E
    @baris said in Composer design ideas: Looks good, another improvement would be to make the composer a regular element in the body instead of static positioned div overlayed on top of everything else on mobile. that would probably help too
  • Modify arguments of user:profileLinks hook

    5
    1 Votes
    5 Posts
    2k Views
    P
    @jarey I believe the approach is to add breaking changes to major releases so, probably for 2.0.0 I think
  • Topic watching change

    1
    2 Votes
    1 Posts
    1k Views
    barisB
    Please see https://github.com/NodeBB/NodeBB/pull/4662 If you have a custom theme that has a partials/topic/watch.tpl you will need to update it for 1.1.0. You can see the changes you need to make in https://github.com/NodeBB/nodebb-theme-persona/pull/278/files Persona, vanilla and lavender themes are already updated.
  • i18n client side / user profile links manipulation

    4
    0 Votes
    4 Posts
    2k Views
    jareyJ
    Anyone knows if theres the possibility of registering an user link in the dropdown, that will be public only? Like the case for example of the "chat link", but registered vía filter:user.profileLinks hook. Since in that hook theres no user info, i cannot check if the user visualizing the page is the users itself that is visualizing his/her profile or if the user its logged in, to restrict the link registration. I want to implement the functionality of "ignore users" showing a link that can be used to ignore, unignore from the user profile. But it has no sense to show the link "ignore/unignore user" if it is the user itself or the user visiting the profile is not logged in. I know it can be easilly achived by adding one more attribute to the link object and modifying the menu.tpl with minor changes to reflect this behaviour (checking the new field), and without altering the existing behaviour of the theme. If the answer to the previous question is "no", what is needed to get a pull request including this behaviour accepted? Modification in all stable themes? (persona,lavender,vanilla?). Or would it be more suitable a request of a new action hook for action:user:viewProfile for example? To be able to make business logic checks with the data, and altering the content sent to the page for example? PS: Is there any way of contributing to document the list of hooks with a short explanation of each one? For example when they're fired and wich information do they send? I think it would be a good improvement for the documentation in order to make it easy to the plugin dev to without the need to dive into the core and check each hook one by one looking for one satisfying their needs. I wouldn't mind to throw 2/3 lines explaining the hooks I found useful that i'm seeing on my little plugin experiments from a noob perspective. Ping @administrators Thanks again and sorry for modifying the thread question.
  • is there a way to avoid client side script minification in dev mode?

    Solved
    3
    0 Votes
    3 Posts
    1k Views
    jareyJ
    Thanks for your reply @julian
  • Show accumulated child category topics and posts on categories page

    6
    1 Votes
    6 Posts
    3k Views
    N
    @baris you have any solution for the Cat A.1.1 ?
  • How to make Category Sections?

    11
    0 Votes
    11 Posts
    6k Views
    yariplusY
    @julian I checked a couple different forum softwares, and all of them were purely cosmetic. A few of them had privileges settings that propagated to their children, but this was completely unnecessary and just a shortcut for assigning to each child.
  • How to waiting a plugin finish initializing in another plugin?

    1
    0 Votes
    1 Posts
    896 Views
    SuperMikeS
    I am writing a plugin that depends on another one. So I have to make sure the depended plugin finish initializing(static:app.load), then I can start my init work. Is there a way to do this ? thanks
  • Possible issue preventing altering winston log-level?

    6
    1 Votes
    6 Posts
    2k Views
    J
    Well that works! Thanks!
  • Is it possible to add NodeBB to another project

    2
    0 Votes
    2 Posts
    1k Views
    anandA
    I think SSO will do the magic. But you will have to make your own plug-in to Integrate.
  • 0 Votes
    3 Posts
    1k Views
    BriB
    Admin > settings > General
  • filter:<template>.build changes

    1
    5 Votes
    1 Posts
    2k Views
    barisB
    Related issue https://github.com/NodeBB/NodeBB/issues/4587 As discussed in the issue, we had a bunch of hooks to modify a page on some routes like filter:recent.build. These were added as required but most pages didn't have a hook so if you needed one you would have to ask us to add it and wait for the next release. With the above change every route has a hook. The hook name is derived from the template name passed to the res.render(template, data); method. For example if your template is named myAwesomePage, you render it with res.render('myAwesomePage', data); and the hook that will be fired is filter:myAwesomePage.build Every hook gets 3 parameters {req: req, res: res, templateData: data}, data is the parameter you pass into the res.render method. We had a few inconsistencies in the parameters passed to the hook and the hook name below are the changes that needs to be fixed if you have a plugin that is listening to these hooks. filter:groups.build is now called filter:group/details.build as that is the correct name for that template. filter:popular.build used to pass in a extra term parameter, this moved into the templateData parameter. filter:header.build this is removed it was deprecated a while ago. Use filter:navigation.available instead. filter:search.build parameters changed, data is no longer passed in use req.query and req.params instead. results is now the templateData parameter. Feel free to ask any questions if anything isn't clear.
  • categories loop on a plugin

    6
    0 Votes
    6 Posts
    2k Views
    yariplusY
    Sure. library.js Plugin = module.exports; var categories = require.main.require('./src/categories'); // init hook Plugin.init = function (data, callback) { var router = data.router; var middleware = data.middleware; // Create route to render the template to. router.get('/example-categories', middleware.buildHeader, renderExampleCategories); router.get('/api/example-categories', renderExampleCategories); function renderExampleCategories(req, res, next) { // Get all the visible categories. categories.getCategoriesByPrivilege('cid:0:children', req.uid, 'find', function(err, categoryData) { if (err) return next(err); // Put the categories in a tree format. categories.flattenCategories([], categoryData); // Send the data to the template. `example-categories.tpl` res.render('example-categories', {categories: categoryData}); }); } }; example-categories.tpl <!-- BEGIN categories --> <a href="{config.relative_path}/category/{categories.slug}" itemprop="url">{categories.name}</a> <br> <!-- BEGIN categories.children --> - <a href="{config.relative_path}/category/{categories.children.slug}" itemprop="url">{categories.children.name}</a> <br> <!-- END categories.children --> <!-- END categories --> Should give you a list like this
  • Noob Plugin question: Alterin error message on filter hook.

    Solved
    18
    1 Votes
    18 Posts
    7k Views
    jareyJ
    @yariplus said in Noob Plugin question: Alterin error message on filter hook.: Yep, you can use this function here the same way. https://github.com/jarey/nodebb-plugin-tagstitle/blob/master/library.js#L17 Just declare it at the global scope so that your hook can see it. Thank you very much @yariplus ; I achieved what i needed thanks to your help. I was able to see my custom page with my custom messages like you pointed out. Then, because i only wanted to change the message displayed on the 403 error regarding the logic on my plugin i was able to change it to using another method; only if it could help anyone else, i just imported the helpers module and called the function notAllowed with my custom message: var helpers = require.main.require('./src/controllers/helpers'); // filter:topic.build tagsTitle.topicBuild = function (data, callback) { if (data.templateData.privileges.errorMessage) { helpers.notAllowed(data.req,data.res, data.templateData.privileges.errorMessage); }else{ callback(null, data); } }; Thanks again. I learned a lot of basic stuff just trying your suggestions. Kind regards.
  • In page Composer, is it possible?

    31
    3 Votes
    31 Posts
    15k Views
    BriB
    Composer is uncomposed.... When clicking into the text box I'm seeing this on safari iOS: [image: CDlUBjv.png] Comes back into view when I start typing
  • same problem bCrypt

    3
    0 Votes
    3 Posts
    2k Views
    D
    version 0.0.3, Well this problem was solved, in the function i was written 3 params and are 4 and the last is the callback . I have other problems now , i get the hash but when the value set to pasword not work, chage inside the function but out is the same value. Thanks bcrypt.hash(user.password, usersalt, null, function (err, hash) { if (err) { return next(err); } user.password = hash });
  • Hello! NodeBB of developers, We have something to say to you!

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    M
    i hope the nodebb dev team could consider our requests.We will make NodeBB better! @administrators