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
  • Collapsing blockquotes on Harmony

    General nodebb harmony collapsible quotes
    2
    1
    2 Votes
    2 Posts
    980 Views
    phenomlab
    @dave1904 that’s a really good point actually. I know it was there previously on Persona, but you’re right - no such function exists on harmony. However, putting something in place to mimick the behaviour of Persona won’t be hard from the js standpoint, although I wonder if perhaps we should ask the NodeBB developers is this feature was overlooked?
  • 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.
  • Welcome to NodeBB V3!

    Pinned Moved General v3-prod code changes
    1
    0 Votes
    1 Posts
    862 Views
    No one has replied
  • Issues with 2nd NodeBB installation

    Solved General
    22
    3 Votes
    22 Posts
    10k Views
    phenomlab
    @cagatay yes, that will be fine. Just watch for potential caching conflicts as you will have two sites writing to the one instance of iframely.
  • Nodebb as blogging platform

    General blog
    10
    5 Votes
    10 Posts
    6k Views
    phenomlab
    @qwinter I’ve extensive experience with Ghost, so let me know if you need any help.
  • NodeBB vs Flarum for a non developer

    Solved General
    17
    10 Votes
    17 Posts
    6k Views
    phenomlab
    @marusaky That’s really easily done. I think the docs need updating for the latest release. Did you land up on the 18.x train ?
  • 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