Skip to content

[NodeBB] Auto assign a label or group title

Solved Customisation
5 2 815 1
  • Hello there 🤞

    I would like to automatically assign a label/or several (group title) for new users with a validated account

    2e2f8f97-74a2-42f8-9354-2dcfe39cbefb-image.png

    Like this all registered users will have at least one 🙂

    It’s possible to do that ?

    many thanks to the communauty 😉

  • @phenomlab said in [NodeBB] Auto assign a label or group title:

    @DownPW I’m almost positive there used to be a plugin that performed exactly this task, but I can’t seem to locate it within npm. I expect you could (relatively easily) perform this function by listening to the registration hook and leveraging that to add the user to a group programmatically, although this would need some development and testing

    Ok thanks for your answer @phenomlab

    I will rather look for a plugin allowing me to do it because I don’t have time to develop this function.

    I’ll keep you posted on my research 😉

    – >In fact, all my users are already in a group called “all”

    What interests me the most is to automatically assign the group label in the user profile

    @DownPW

    Resolve 🙂

    since all users are in this group by default. I just had to put this group in non-private and check the display of the badge.

    By default, NodeBB displays the user’s default group label unless the user changes it himself

  • Hello there 🤞

    I would like to automatically assign a label/or several (group title) for new users with a validated account

    2e2f8f97-74a2-42f8-9354-2dcfe39cbefb-image.png

    Like this all registered users will have at least one 🙂

    It’s possible to do that ?

    many thanks to the communauty 😉

    @DownPW I’m almost positive there used to be a plugin that performed exactly this task, but I can’t seem to locate it within npm. I expect you could (relatively easily) perform this function by listening to the registration hook and leveraging that to add the user to a group programmatically, although this would need some development and testing

  • @DownPW I’m almost positive there used to be a plugin that performed exactly this task, but I can’t seem to locate it within npm. I expect you could (relatively easily) perform this function by listening to the registration hook and leveraging that to add the user to a group programmatically, although this would need some development and testing

    @phenomlab said in [NodeBB] Auto assign a label or group title:

    @DownPW I’m almost positive there used to be a plugin that performed exactly this task, but I can’t seem to locate it within npm. I expect you could (relatively easily) perform this function by listening to the registration hook and leveraging that to add the user to a group programmatically, although this would need some development and testing

    Ok thanks for your answer @phenomlab

    I will rather look for a plugin allowing me to do it because I don’t have time to develop this function.

    I’ll keep you posted on my research 😉

    – >In fact, all my users are already in a group called “all”

    What interests me the most is to automatically assign the group label in the user profile

  • phenomlabundefined phenomlab marked this topic as a regular topic on
  • @phenomlab said in [NodeBB] Auto assign a label or group title:

    @DownPW I’m almost positive there used to be a plugin that performed exactly this task, but I can’t seem to locate it within npm. I expect you could (relatively easily) perform this function by listening to the registration hook and leveraging that to add the user to a group programmatically, although this would need some development and testing

    Ok thanks for your answer @phenomlab

    I will rather look for a plugin allowing me to do it because I don’t have time to develop this function.

    I’ll keep you posted on my research 😉

    – >In fact, all my users are already in a group called “all”

    What interests me the most is to automatically assign the group label in the user profile

    @DownPW

    Resolve 🙂

    since all users are in this group by default. I just had to put this group in non-private and check the display of the badge.

    By default, NodeBB displays the user’s default group label unless the user changes it himself

  • DownPWundefined DownPW marked this topic as a question on
  • DownPWundefined DownPW has marked this topic as solved on
  • @DownPW

    Resolve 🙂

    since all users are in this group by default. I just had to put this group in non-private and check the display of the badge.

    By default, NodeBB displays the user’s default group label unless the user changes it himself

    @DownPW very useful tip. Thanks


Did this solution help you?
Did you find the suggested solution useful? Why not buy me a coffee? It's a nice gesture, and a great way to show your appreciation 💗

Related Topics
  • 3 Votes
    1 Posts
    129 Views
    No one has replied
  • Whitespace fixes in Nodebb

    Solved Customisation nodebb
    18
    2
    7 Votes
    18 Posts
    2k Views
    @Panda Just circling back here with something of an update (which I think you’ll like). I’ve completely restructured the ranking system. There are now less ranks, with a higher point threshold to reach them. More importantly, if you reload the site, you’ll notice that the ranks are now icons. I also removed the “Author” badge, and made this a single icon, which (to me) looks much better.
  • Upgrade Problem from 2.8.3 to 2.8.4

    Solved Configure nodebb
    35
    1
    8 Votes
    35 Posts
    3k Views
    @cagatay No, you can ignore that.
  • NodeBB inline videoplayer

    Solved Customisation nodebb
    12
    3 Votes
    12 Posts
    1k Views
    @phenomlab YAY! It works Thanks so much
  • Title on homepage of nodebb forum

    Solved Customisation nodebb
    2
    1 Votes
    2 Posts
    826 Views
    @eveh Welcome board The code you are referring to is custom written as no such functionality exists under NodeBB. However, adding the functionality is relatively trivial. Below are the required steps Navigate to /admin/appearance/customise#custom-header Add the below code to your header, and save once completed <ol id="mainbanner" class="breadcrumb"><li id="addtext">Your Title Goes Here</li></ol> Navigate to /admin/appearance/customise#custom-js and add the below code, then save $(document).ready(function() { $(window).on('action:ajaxify.end', function(data) { // Initialise mainbanner ID, but hide it from view $('#mainbanner').hide(); var pathname = window.location.pathname; if (pathname === "/") { $("#addtext").text("Your Title"); $('#mainbanner').show(); } else {} // If we want to add a title to a sub page, uncomment the below and adjust accordingly //if (pathname === "/yourpath") { //$("#addtext").text("Your Title"); //$('#mainbanner').show(); //} }); }); Navigate to /admin/appearance/customise#custom-css and add the below CSS block .breadcrumb { right: 0; margin-right: auto; text-align: center; background: #0086c4; color: #ffffff; width: 100vw; position: relative; margin-left: -50vw; left: 50%; top: 50px; position: fixed; z-index: 1020; } Note, that you will need to adjust your CSS code to suit your own site / requirements.
  • Blinking text Effect

    Customisation nodebb text effect css
    3
    5 Votes
    3 Posts
    544 Views
    @phenomlab I love it too @phenomlab said in Blinking text Effect: Has that “broken neon light” look that you see in films. It’s exactly that, kind of old neon signs of bar or pubs a bit cyberpunk too
  • [NODEBB] Scroll Button

    Solved Customisation css javascript html scroll button
    7
    1
    0 Votes
    7 Posts
    1k Views
    @downpw ooops. Forgot that. Thanks for adding.
  • WordPress & NodeBB

    Solved WordPress
    6
    0 Votes
    6 Posts
    951 Views
    @jac That won’t matter. You just redirect at nginx or apache level and it’ll work. The generally accepted standard though is to use a subdomain.