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

  • undefined phenomlab marked this topic as a regular topic on 24 Dec 2022, 13:36
  • @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

  • undefined DownPW marked this topic as a question on 24 Dec 2022, 14:08
  • undefined DownPW has marked this topic as solved on 24 Dec 2022, 14:09
  • @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 💗


3/5

23 Dec 2022, 13:05


Threaded Replies


Related Topics
  • MogoDB v6 to v7 upgrade

    Solved Configure 5 May 2024, 13:21
    1 Votes
    5 Posts
    613 Views
    @Panda if you used the Ubuntu PPA, I think this only goes as far as 6.x if I recall correctly.
  • 36 Votes
    55 Posts
    6k Views
    @DownPW I see why. The code relies on the existence of [component="topic/quickreply/container"] However, this by definition means that the below has to be enabled [image: 1679077966615-aeef638f-4188-489d-a9f2-f3a26dbca9d8-image.png] It will then work [image: 1679077992245-7fb38631-e0f3-46ef-b652-00929d927b13-image.png] For some unknown reason, this is hidden in Harmony, and only shows if you select it. In v2, it seems that the <section> is deleted altogether in Persona if “Quick Reply” is disabled, meaning it won’t fire as it can’t locate that specific component. The downside is that you might not want the quick reply function, but I think it’s a PITA to scroll up to the top of the post just to reply, so I have it on
  • 0 Votes
    4 Posts
    723 Views
    @cagatay You’d target the body tag and use the below line of CSS background: url(/assets/customcss/backgrounds/default/default.png) no-repeat center center fixed; Obviously, you need to change the path to suit where your image is being stored. More info around the background property can be found here https://www.w3schools.com/cssref/css3_pr_background.php
  • 1 Votes
    2 Posts
    742 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.
  • 5 Votes
    3 Posts
    515 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
  • 4 Votes
    33 Posts
    3k Views
    @phenomlab I find the problem Mark The error message indicated this path : http://localhost:4567/assets/plugins/nodebb-plugin-emoji/emoji/styles.css?v=6983dobg16u I change the path url on config.json [image: 1645128773854-47bacc80-f141-41e4-a261-3f8d650cc6f6-image.png] And all it’s good Weird, I didn’t have to change that path before 1.19.3 But this does not prevent the problem from a clean install with Emoji Plugin EDIT: After test, that resolv the problem installation for 1.18.x but not for 1.19.x (I have other error message when I run ./nodebb Setup For resume: NodeJS 16_x with 1.18.x is ok
  • 5 Votes
    8 Posts
    1k Views
    @phenomlab Aha…nice to know. As always thank you for the reply and information.
  • 0 Votes
    3 Posts
    930 Views
    Closing this thread as a duplicate of https://sudonix.com/topic/12/nodebb-customisation