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

    108 Topics
    2k Posts
    julianJ
    @[email protected] happy to publish on fedi but it doesn't necessarily have to take place within the confines of ForumWG, the group just has an interest in the outcome @[email protected]
  • Help Translate NodeBB
  • How to invoke filter:topic.search ?

    1
    1 Votes
    1 Posts
    891 Views
    SuperMikeS
    I am working on a search plugin. There're two filters available for topic & post : filter:search.query plugin.search = function(data, callback) { winston.info('enter search') winston.info(data) return callback(null, []); }; filter:topic.search plugin.searchTopic = function(data, callback) { winston.info('enter topic search') winston.info(data) return callback(null, []); }; now I can see the log in search after I search something, as well as advanced search. But searchTopicnever show. Can someone tell me how to invoke this filter ?
  • NodeBB v0.7.2

    Moved
    6
    11 Votes
    6 Posts
    6k Views
    JenklerJ
    Love this
  • Node.js sokets

    4
    0 Votes
    4 Posts
    2k Views
    C
    I don't know of any plugin that is already built to do what you want. Like most of the rest of us, you will likely have to write some Node JavaScript to create the plugin to suit your needs. I don't have the time to write custom code for free, although if it is worth money to you, the NodeBB development team may be interested in consulting for you. Now that I re-read what you originally asked, I'm curious if you actually need "Sockets" (as in SocketIO, which is server-initiated TCP/IP connection to a browser) or if APIs on both the hosted NodeBB server and the localhost server would do this better. Either way, if you choose to go the NodeBB plugin route, you will need to know which Hooks are available. A "hook" is an event that your plugin subscribes to. When that event happens in the core NodeBB server, it will call the function in your plugin which subscribes to the event.
  • Is there api to new topic using nodejs code?

    2
    0 Votes
    2 Posts
    1k Views
    C
    I'm not sure if I understand your question exactly, but you can write a plugin to listen to a new route (URL endpoint) or interprocess communication and load and call NodeBB libraries. You may consider using this plugin Git repo as a bootstrap to get you started quickly. Remember that the plugin.json, package.json, and library.js are the first files to work with. The plugin repo name / directory name will need to match the glob nodebb-plugin-* and it needs to be directly under the node_modules/ directory which is at the root of your NodeBB directory.
  • Best way to keep changes...

    8
    0 Votes
    8 Posts
    3k Views
    B
    @julian WTF!!! even better!! ahaha!! this gets better everytime!.... my only gripe is that persona stinks on Windows Phones...--> new thread coming on.
  • Update all frames after the login/exit from the site

    1
    0 Votes
    1 Posts
    799 Views
    ?
    ...so if you exit to the site on one tab, then on the other you are still logged in. It looks quite strange - [image: wJyKjHo.png] [image: vQmOeRA.png] [image: dJGC4f7.png] [image: DUL50ps.png] As you can see, we can be a partial activity in exit. The session was completed. @julian @baris @psychobunny
  • Texas Hold'em Poker!

    8
    3 Votes
    8 Posts
    6k Views
    O
    HI, Signup link is not working....
  • want a div position: fixed; place it on the forum

    Solved
    2
    0 Votes
    2 Posts
    1k Views
    ogerlyO
    ok I have a solution. I have included in the CUSTOM HEADER my code. and the audio file is running even if I switch sides.
  • Registering a Font

    7
    1 Votes
    7 Posts
    3k Views
    snodejokeS
    @a_5mith Did you ever find the solution to this? Was the result the nodebb-plugin-custom-font plugin?
  • Is there a way to limit the use of tags?

    Unsolved
    2
    0 Votes
    2 Posts
    2k Views
    P
    @ludam you can set the minimum & maximum tags for a post in ACP -> Settings -> Tags page. I don't think there is any option to set which tags a user would be able to use.
  • How can I get category's special users

    3
    0 Votes
    3 Posts
    2k Views
    barisB
    Those userrs are stored in groups with special names, here are the names assuming the category id is 1. cid:1:privileges:find cid:1:privileges:read cid:1:privileges:topics:create cid:1:privileges:topics:reply You can get the user ids from these groups by. Groups.getMembers('cid:1:privileges:find', 0, -1, callback); This will give you all the user ids that have the find permission for category 1. If you want to get their basic info like username picture slug so you can show user icons you can just use Groups.getMemberUsers('cid:1:privileges:find', 0, -1, calllback);
  • What is for ''/compose" route?

    Solved
    3
    0 Votes
    3 Posts
    2k Views
    epidemiya30E
    Understood. Thank you for response
  • Tags - Are they timestamped?

    1
    0 Votes
    1 Posts
    1k Views
    S
    Guys, Have a quick question. Do tags have a timestamp on them in the backend? One of my new feature requirements is spotting trending tags and some sort of re-organisation of the tagging system to perhaps give people an alternative way to navigate the forum. Just curious...
  • file tpl were recovered after restart nodebb server

    3
    0 Votes
    3 Posts
    2k Views
    xinshoukeX
    Yes, It work as what you told. Thanks a lot!
  • Why would I follow another user?

    10
    1 Votes
    10 Posts
    4k Views
    BriB
    @julian So, now there's a setting that prevents chats from getting to you unless you follow that user trying to chat with you?
  • How to config welcome email template?

    1
    0 Votes
    1 Posts
    1k Views
    maniM
    Now I have to change theme's tempalte, can I just config it in plugin? Thanks!
  • 0.8.0 Breaking Changes

    1
    1 Votes
    1 Posts
    2k Views
    barisB
    Hook changes Filter filter:user.custom_fields removed see this commit filter:user.delete deprecated, use static:user.delete instead, now It is passed { uid: uid } instead of just uid, and is fired before user data is actually deleted, so you have one last chance to look up stuff if needed. Other changes Theme developers should now explicitly set the baseTheme in their theme.json if their theme is not based on Persona. Set this value to nodebb-theme-vanilla TBD
  • ... on changing the default theme to Persona

    3
    3 Votes
    3 Posts
    3k Views
    julianJ
    @Codejet said: can you still manually change to lavender in ACP after install / upgrade ? and run it this way what is the benefit of adding a hook listener, or are u removing vanilla/lavender functionality Yes, this change doesn't affect how you use NodeBB, it only affects you if you're a theme developer (with a Lavender-variant or vanilla-based theme) and you want to maintain compatibility post v0.8.x
  • How can I pass additional user data to header?

    Unsolved
    3
    0 Votes
    3 Posts
    2k Views
    epidemiya30E
    Can I do a pull request? Or someone else will do that?
  • How do you hide groups from being visible?

    Solved
    8
    0 Votes
    8 Posts
    3k Views
    L
    Cool, thanks.