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