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
    E
    @julian I have the same issue and both ./nodebb logs and output.log and webinstall.log files have nothing. I'm running also running ./nodebb start -dl. It seems build is failing silently and there's no way for me to see what's wrong
  • Focused discussion related to ActivityPub integration in NodeBB

    108 Topics
    2k Posts
    silverpill@mitra.socialS
    @mario 61cf explains how to log in to "target" instance using "home" credentials, but I can't follow the algorithm past this step:>2. The /magic endpoint at the user's home instance first checks that the user is logged in.How does it check that the user is logged in? Does it present a login form?And then, after login, which instance generates activities?What URI is being put into actor field of activity, and what URI is being put into keyId parameter of HTTP signature?cc @fentiger
  • Help Translate NodeBB
  • 0 Votes
    3 Posts
    2k Views
    C
    Duke ... Thank you. This command solved the problem: ./nodebb reset -p nodebb-plugin-map
  • Change username color by using CSS

    Moved
    3
    1 Votes
    3 Posts
    2k Views
    M
    @pitaj said in Change username color by using CSS: What should the color be based on? It probably requires a theme modification. just on the username if it's possible. Or on the group, like admins username is red, mopderator username is green, gamers username is purple, etc.
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    32 Views
  • Custom plugin: Which is better jQuery post Or socket.emit and Why?

    4
    0 Votes
    4 Posts
    1k Views
    C
    I am done with this. If somebody needs help for this topic, he/she may send a notification to me.
  • Accessing the user's uid in the plugin's library.js

    3
    0 Votes
    3 Posts
    1k Views
    C
    Cool answer.. It worked. Thanks.
  • Category Permissions

    1
    0 Votes
    1 Posts
    858 Views
    ShardS
    I'm working on a plugin that programmatically adds group and/or user perms to a dynamically created category. I mimicked the call used in the write API, but I'm not sure I'm constructing the perms correctly - and that still doesn't answer the issue of single user perms for a category.
  • Existing Plugins that demonstrate CRUD operation

    2
    0 Votes
    2 Posts
    950 Views
    PitaJP
    nodebb-plugin-write-api is one
  • Redirect to login before the plugin's template is rendered

    16
    0 Votes
    16 Posts
    3k Views
    C
    Finally it worked. Thank you very much. Just two points: a. Ajaxing ends up with this URL: http://localhost:4567/map?_=1514797485831&loggedin=true I mean the internal details are visible to the user. An ideal solution is to reset the URL to something like this: localhost:4567/map b. Suppose I cold load with an invalid URL: http://localhost:4567/map?loggedin=FALSE it still renders the map page. Ideally, it should display the "Page Not found message" Any solution to these two? Or, shall I consider them as "OK let it behave so!"?
  • Error: Browser's Cache not cleared

    4
    0 Votes
    4 Posts
    1k Views
    C
    Thanks Pita
  • How can I redirect user to a URL after successful Logout?

    7
    0 Votes
    7 Posts
    4k Views
    barisB
    @livey0u It is just a requirejs module so just require it. require(['components'], function (components) { components.get('user/logout').off('click').on('click', function() { // your custom behaviour here }); });
  • Supporting ES6 (in 2017)?

    3
    0 Votes
    3 Posts
    1k Views
    7kbot7
    @pitaj Thanks for the correction!
  • 0 Votes
    1 Posts
    2k Views
    C
    I am writing a plugin. Can anybody pl. write the code pattern for this requirement of mine... When a logged in user enters some data, the backend should do the following in response: The user sends the data to the NodeBB backend in the following format: { key1: data-value1, key2: data-value2, ... } Get the user id of the user and check if the key1, key2, etc. already exists in the Mongo DB (the user's collection/document) If yes, overwrite the data If not, store the data Tell the client that the action has been taken Actually, it is quite simple if you're writing an app from the scratch. What I am looking for is the pattern/way the NodeBB is currently handling this scenario and I want to code using the same pattern. Thanks
  • Adding support to Google Maps API

    2
    0 Votes
    2 Posts
    2k Views
    C
    To further clarify, the order of sequence of execution of scripts should be ... maps.googleapis.com jquery.js my-custom-script.js
  • How do I set up my dev environment for child themes?

    Moved
    3
    0 Votes
    3 Posts
    1k Views
    PitaJP
    You don't need to run ./nodebb upgrade every time you make changes. You just need to run ./nodebb build. You can use the --dev flag to make it faster because you don't need minification during dev. You can also use grunt to dev but you'll need to disable the emoji plugin.
  • 404.tpl

    Moved
    3
    0 Votes
    3 Posts
    1k Views
    A
    ok, I found out how. you simply create a template with the error name inside your theme. example 404.tpl hopefully, this might help someone.
  • Using a module written in ES6

    6
    1 Votes
    6 Posts
    2k Views
    C
    Thank you for putting me on track once again. Where shall I write this polyfill code ... in my map.js?
  • is it possible to alter the pattern of the URL pattern for topics

    Moved
    1
    0 Votes
    1 Posts
    959 Views
    A
    I am trying to change create a different pattern for the URL. for example : from this URL : ...../topic/125/topic-title to this URL : ...../fragen/topic-title which means I want to replace topic with fragen and remove the topic number. is it possible?
  • Browser Error: Plugin's Image not found

    9
    0 Votes
    9 Posts
    2k Views
    C
    I am right because I manually copied the images directory under the build/public directory and the icon image was there on the map. But how to tell the build process about the same? Pl. guide. If there is no proper answer to this problem, we should avoid minifying the leaflet's stylesheet. And it should be kept separate. In this scenario, how shall the plugin.json look like?
  • Powered By footer is displayed above the plugin contents .. Why?

    2
    0 Votes
    2 Posts
    957 Views
    C
    Looks like this problem is because of an error in my CSS file. So I have it to fix it myself.
  • Help me fill the missing pieces of code

    2
    0 Votes
    2 Posts
    847 Views
    C
    I am able to solve the first issue. I needed to add checks in map.tpl instead of relying upon pure client-side JS solution.