Skip to content

Modify the tagging behavior in NodeBB

Locked General
11 2 3.5k 1
  • wrote on last edited by
    #1

    Hi

    In Harmony Theme, how can I change the tagging functionality. right now its take user-slug / username. I should take fullname of the user. Actually in my project user’s fullname is automatically added while registering to forum.

  • Hi

    In Harmony Theme, how can I change the tagging functionality. right now its take user-slug / username. I should take fullname of the user. Actually in my project user’s fullname is automatically added while registering to forum.

    wrote on last edited by
    #2

    @Vijay-Kumavat Are you referring to the user assigned at registration?

  • @Vijay-Kumavat Are you referring to the user assigned at registration?

    wrote on last edited by
    #3

    @phenomlab ,

    Yes i did this now at the time of user registering it takes fullname with current-time.

    Before this it takes

    email : abc@xyz.com
    username : abc-xyz-com
    fullname : abc def.
    

    Now i set it to :

    email : abc@xyz.com
    username : abc-def-2343423423
    fullname : abc def.
    

    This is fine for now. 😜

    Now, I want do this with already registered users. Because while tagging user by someone its display user email 🤔

  • @phenomlab ,

    Yes i did this now at the time of user registering it takes fullname with current-time.

    Before this it takes

    email : abc@xyz.com
    username : abc-xyz-com
    fullname : abc def.
    

    Now i set it to :

    email : abc@xyz.com
    username : abc-def-2343423423
    fullname : abc def.
    

    This is fine for now. 😜

    Now, I want do this with already registered users. Because while tagging user by someone its display user email 🤔

    wrote on last edited by
    #4

    @Vijay-Kumavat So do you want to tag by email, or by display name?

  • wrote on last edited by
    #5

    By display Name

  • By display Name

    wrote on last edited by
    #6

    @Vijay-Kumavat I think an extension to nodebb-plugin-mentions would be necessary for this to work. If you look at /admin/plugins/mentions you’ll see the available options.

  • wrote on last edited by
    #7

    i dint found in admin/plugins/mentions. But in nodebb-plugin-mentions-> library.js Then after i got result like this. Ref. below image.

    MicrosoftTeams-image (154).png

    I need to do like this . Ref. below image

    testtest.png

  • i dint found in admin/plugins/mentions. But in nodebb-plugin-mentions-> library.js Then after i got result like this. Ref. below image.

    MicrosoftTeams-image (154).png

    I need to do like this . Ref. below image

    testtest.png

    wrote on last edited by
    #8

    @Vijay-Kumavat So is this now working based on modifications you’ve made to library.js ?

  • @Vijay-Kumavat So is this now working based on modifications you’ve made to library.js ?

    wrote on last edited by
    #9

    @phenomlab yes but only in post preview section only. before submitting post in post section its shows me email-id.

    how to replace this with fullname only. ( Also in autocomplete dropdown)

  • @phenomlab yes but only in post preview section only. before submitting post in post section its shows me email-id.

    how to replace this with fullname only. ( Also in autocomplete dropdown)

    wrote on last edited by
    #10

    @Vijay-Kumavat This is likely best answered by the NodeBB core devs themselves. This will require an additional feature which extends the mentions plugin.

  • wrote on last edited by phenomlab
    #11
  • phenomlab phenomlab locked this topic on

Related Topics
  • navbar

    Solved Customisation navbar harmony
    2
    2 Votes
    2 Posts
    1k Views
    phenomlab
    Marking as resolved, based on https://community.nodebb.org/topic/18625/navbar/2
  • NodeBB v4.0.0

    General nodebb sudonix version 4
    28
    4 Votes
    28 Posts
    8k Views
    phenomlab
    @Panda said in NodeBB v4.0.0: the workings of World aren’t intuitive Its not easy to get World populating when a forum is new to it This is a good point and one I’ve considered also. It’s a little confusing to be honest.
  • TNG + Nodebb

    General tng genealogy nodebb plugin
    4
    0 Votes
    4 Posts
    2k Views
    phenomlab
    @Madchatthew said in TNG + Nodebb: you have to try and use duck tape and super glue to change something to make it do what you want it to do I couldn’t have put that better myself.
  • nodebb-plugin-reactions not working @v1.0.2 with Harmony theme

    Solved General reactions v3-prod
    47
    12 Votes
    47 Posts
    16k Views
    phenomlab
    @dave1904 just coming back to this thread as @DownPW and I both experienced issues with other plugins today, and the fix was to use the plugin ordering in the ACP and move the Harmony theme to the very top so it comes before everything else in terms of other plugins. It might be worth at least trying this to see if it gives you a result rather than the previous bulldozer approach. Thinking about it, the previous fix I proposed is along the same lines and disabling plugins does in fact change the order when they are enabled again, so this is definitely worth a try. Let me know how you get on.
  • 0 Votes
    5 Posts
    2k Views
    phenomlab
    @qwinter this particular site uses the code I wrote if you want to see it in action. It’s a information and intelligence gatherer I designed for collecting various information security articles from around the globe and consolidating them in one place. Essentially, each “post” is in fact generated by the script, and the NodeBB API. https://hostrisk.com/
  • Discord Login - OAuth2 - NodeBB

    Solved General discord nodebb plugins
    32
    11 Votes
    32 Posts
    14k Views
    phenomlab
    @Galaxian hi, and welcome to Sudonix Can you check your config.json file and ensure that your forum URL doesn’t have a trailing backslash or forward slash in it ? This was the issue @Sampo2910 had.
  • NodeBB Blog Comments

    General nodebb blog
    3
    1 Votes
    3 Posts
    2k Views
    phenomlab
    @kurulumu-net Not specifically, but you should review this post from the very large thread as it will save you a lot of time. There’s significant customisation on the Ghost side of things, but not in NodeBB https://community.nodebb.org/post/86022
  • Nodebb best plugins

    General nodebb plugins
    18
    7 Votes
    18 Posts
    7k Views
    crazycells
    @phenomlab thanks