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
  • 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?
  • Welcome to NodeBB V3!

    Pinned Moved General v3-prod code changes
    1
    0 Votes
    1 Posts
    862 Views
    No one has replied
  • 36 Votes
    55 Posts
    30k Views
    phenomlab
    @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: aeef638f-4188-489d-a9f2-f3a26dbca9d8-image.png] It will then work [image: 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
  • 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
  • Nodebb Hashtag plugin

    Solved General
    15
    1 Votes
    15 Posts
    6k Views
    phenomlab
    @jac Great ! I’ll close this off.
  • Nodebb best plugins

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