Where would I start to build something that could do bulk tagging?

NodeBB Development
  • I'm thinking a plugin might be the best way to go about this, or just writing a script against the REST API. At a minimum, I want to be able to tag everything in a category with a specified tag or tags. Ideally, I would be able to perform a search/query, and then apply the tag to those results.

    Thoughts? Is there any documentation I can read on API's/functions? What's the function to add tags to a topic?

  • I'm using Studio 3T to explore the database, and I cannot see where tags are applied. I've tried looking at the topic and the post, and even with topics and posts that have tags, I don't see any fields for the tags associated with it.

  • Take a look at this file https://github.com/NodeBB/NodeBB/blob/master/src/topics/tags.js. You can find out which sorted sets/sets are used for tags there. The main one for topics is tid:<tid>:tags

  • I still cannot figure it out. I see the tid: in some of the topics, but it's got the topic id in it, not a tag id. I'll buy someone a $100 Amazon (or other) gift card (or $100 worth of ETH/BTC) if they release on github a bulk tagging plugin that allows me to add one or multiple tags to all topics/posts in a category. 🙂 I know it's not much, but I'm not generating any revenue off this site and have limited budget.

Suggested Topics

  • 0 Votes
    1 Posts

    Hey all,
    I'm helping someone set up a new community for a not for profit and they'll need some custom functionality to hit their goals.

    Can anyone point me in the right direction on how to use a plugin etc to add in html/css if a post or reply has a specific tag.

    Short version is: People will be discussing different things and the org wants to allow certain conversations but to auto add in a disclaimer/change the post format a little for specific post tags.

    IE: If the post has the tag: "marvel" on it, it'd show a div/text at the bottom of the post/reply saying "This person loves marvel".

    New to NodeBB, not entirely new to everything else. 🙂

  • 0 Votes
    5 Posts

    @Enrique the main problem you seem to be having is that you are not aware that there is a frontend and a backend to NodeBB. You have to wire up the controls from the ACP and make a call to the backend (via websocket, for example), and then you can call server side libraries.

  • 0 Votes
    1 Posts

    Re: Multiple tag search

    This should be made possible, at least by url, so links can be made from other posts.

  • 0 Votes
    1 Posts


    Is it possible to customise og: tags without editing NodeBB core?


  • 1 Votes
    8 Posts

    @Just1n 哦哦 多谢。。btw我已经安装了