JavaScript Display usernames while tagging

Discussion in 'HTML, CSS & JavaScript' started by I A 1, Oct 5, 2018.

  1. I A 1

    I A 1 Enthusiast

    When you type @ in a Facebook comment, it displays a list of your friends whom you can tag. How can we implement the same to display participants list of a thread when replying?
  2. PoetJC

    PoetJC ♠ Jacquii: Black Kween of Hearts ♠

    Which forum script are you using?
    There may be add-ons/plugins for such functionality.

  3. I A 1

    I A 1 Enthusiast

    I'm using vbulletin 4.2.

    Even if this type of functionality exists in other form softwares, I can try to study them and create similar plugin for vB.
  4. LeeonApp

    LeeonApp Fullstack WebDeveloper

    I now is late feedback, currently facebook is using React for the interface, in react this is simple to create since every data what are you typing in is stored in a state of javascript.
    You can simply match if the character is @ added in the form and then just read from some data the list of users that starts with the next characters added after @.

    Mostly javascript is used for this solution.
    • Informative! Informative! x 1
    • List
Draft saved Draft deleted
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.