Skip to content

[NodeBB] Auto assign a label or group title

Solved Customisation
  • 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
    6 Posts
    784 Views
    @kadir-ay-0 marking as resolved based on https://community.nodebb.org/topic/17109/manual-build-a-night-mode-for-harmony/5 Please do not raise requests in two places - here and the NodeBB forums. All this does is create unnecessary load for both parties.
  • nodebb error logs

    Bugs
    6
    2
    4 Votes
    6 Posts
    496 Views
    I just wanted to ask because I don’t have much knowledge about the new installation. Thank you for the explanatory answer.
  • 4 Votes
    7 Posts
    847 Views
    @phenomlab oh no, that is 1 cent on the video, but you are right, symbols are similar… I just converted it to $1 , since it is more intuitive in daily life…
  • Smart Widgets

    Solved Configure
    9
    3 Votes
    9 Posts
    533 Views
    @Panda said in Smart Widgets: So why is that, or conversely why would the function to expose username ever be required, as it seems app.user is already an available global object? It is, yes, but not if you are using it outside of a widget. The function I wrote is also historical and comes from the 2.x train
  • Title on homepage of nodebb forum

    Solved Customisation
    2
    1 Votes
    2 Posts
    714 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.
  • [NODEBB] Welcome Message

    Solved Customisation
    18
    2
    13 Votes
    18 Posts
    2k Views
    For anyone reviewing this post, there’s an updated version here that also includes an sunrise / sun / moon icon depending on the time of day https://sudonix.com/topic/233/nodebb-welcome-message-with-logo-footer-change/3?_=1645445273209
  • NodeBB Footer

    Solved Customisation
    10
    1 Votes
    10 Posts
    1k Views
    @phenomlab said in NodeBB Footer: @jac and you. Hope all is well and you recover quickly Thanks pal
  • NodeBB Discord Plugins

    Unsolved Customisation
    7
    0 Votes
    7 Posts
    1k Views
    @RiekMedia hi. Just following up on this thread (I know it’s old) but was curious to understand if it’s still an issue or not ?