Skip to content

Modify the tagging behavior in NodeBB

Locked General
11 2 3.5k 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.

    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
  • 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
  • Fresher in Nodebb install

    General nodebb
    24
    15 Votes
    24 Posts
    11k Views
    phenomlab
    @Hari I’ve been reading a lot about APO. Looks impressive.
  • NodeBB v2.4.0

    Solved General nodebb version error
    3
    1
    2 Votes
    3 Posts
    2k Views
    Sampo2910
    @phenomlab As always…Thank you. Worked for me.
  • 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.
  • 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/
  • 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 - Created pages not found?

    General
    20
    3 Votes
    20 Posts
    6k Views
    phenomlab
    @jac Exactly. Hard point to argue.