[nodebb-plugin-topic-badges] Topic Badges


  • Admin

    No no, not user badges/rewards. That's coming up soon 😉 Here's a really simple plugin, I really built it for our plugin category page TBH

    NodeBB Topic Badges

    Allows users to label a topic with a badge by prefixing their title in square brackets like so:

    [my badge name] This is my topic
    

    Screenshots

    topic badges

    Installation

    npm install nodebb-plugin-topic-badges
    

    Get it on Github


  • Plugin & Theme Dev

    Pretty nice 👍

    • The first thing I tested was to use a title that only contains text within [ ] maybe you should exclude that case.
    • An other suggestion would be to instead of link the badges to the topic itself, link them to a search for their contents. Any thoughts about that?
    • I've hidden another suggestion within the topic called [test][with][more][than][one][badge] :). Can you see it? 😛
    • And the badge doesn't get excluded if I post a new topic without reloading...

  • Admin

    hahah, congrats, you've just been promoted to lead QA 😛


  • Plugin & Theme Dev

    🙂

    • Needs to be included also within Unread/Recent/Popular


  • Cant get this to work. The badges are not displayed and the [text] is still visible.


  • Admin

    how up to date is your nodebb? you'll need to be on the latest for this to work



  • @psychobunny On the latest with the widgets.


  • Admin

    Does it work for you on this site?



  • I can see them perfectly here.
    I have done the usual cache clear to see if it was that that was causing the problem. I have also tried different themes and its not showing on any.


  • Admin

    I just hopped on your site and noticed you're running on production so try this

    rm src/nodebb.min.js
    

    and reboot. I noticed this problem myself yesterday, if you can confirm that it works for you after that I'll make an issue



  • @psychobunny That worked 👍


  • Admin

    Awesome, okay, I'll make a note of that bug


  • Admin

    @frissdiegurke said:

    The first thing I tested was to use a title that only contains text within [ ] maybe you should exclude that case.

    fixed 😉

    An other suggestion would be to instead of link the badges to the topic itself, link them to a search for their contents. Any thoughts about that?

    maybe after the search gets refactored 🙂

    I've hidden another suggestion within the topic called [test][with][more][than][one][badge] :). Can you see it? 📄

    Is there a bug there? 😛

    And the badge doesn't get excluded if I post a new topic without reloading...
    Needs to be included also within Unread/Recent/Popular

    Fixed 🙂

    Latest version also includes an addition to Thread Tools which lets you quickly "mark as Solved" 🙂


  • Admin

    marksolved.png


  • Plugin & Theme Dev

    I've hidden another suggestion within the topic called [test][with][more][than][one][badge] :). Can you see it? 📄

    Is there a bug there? 😛

    Not a bug, but I wanted to suggest the feature of adding multiple badges to one topic 😉 Maybe limited to 3 badges...
    If you implement this keep in mind to reverse the order of HTML-tags therefor the test would be left of with, etc.

    Latest version also includes an addition to Thread Tools which lets you quickly "mark as Solved" 😀

    Awesome 🙂


  • Admin

    ah, I see

    I think I'll save that for the future. Would love to have an ACP where you could define colours for specific badge tags, and perhaps have a whitelist of badges allowed per category (optionally using regex so we could target nodebb-plugin-x and colour it one way). That's a lot of work and I think I'll stop here for now hopefully some altruistic individual will come and tackle the rest 😄


  • GNU/Linux

    I am back 🙂
    Looks nice. Is it like tags ? Or like prefix ?


  • GNU/Linux Admin

    More like a prefix... stylised tags like "Solved" and such.



  • @psychobunny said:

    ah, I see

    I think I'll save that for the future. Would love to have an ACP where you could define colours for specific badge tags, and perhaps have a whitelist of badges allowed per category (optionally using regex so we could target nodebb-plugin-x and colour it one way). That's a lot of work and I think I'll stop here for now hopefully some altruistic individual will come and tackle the rest 😄

    My current forum has this similar functionality, rather than typing in individual prefixes, the poster selects one from a dropdown. (Tags are predefined in ACP). Each prefix can be filtered so that only those prefixes are displayed. So I too hope an altruistic individual will tackle the rest. 😸


  • Admin

    haha yeah, ideally we'll have some ACP functionality to be able to select what tags are eligible per category, and have a dropdown. most of my plugins are kind of like "proof of concept" stuff, I really hope somebody will take it and make something more cooler with it. as per my youtube plugin, so many people have built plugins based on that for dailymotion, vimeo, etc etc. I'd love to do it but I'm just so busy 😞


Log in to reply
 

Suggested Topics

| |