User Tagging/Mentions - How To

Discussion in 'Forum Discussion' started by Cribbage, Sep 10, 2015.

  1. Cribbage RG Cribb

    (Firstly, to clarify what I mean when I use certain terms in this post, my 'username' is Cribbage and my 'simming name' is RG Cribb).
    ---

    As many of you noticed, yesterday I introduced user tagging. This works simply by using the @ character, followed by a user's username. So if I were to type @ Mousey without the space in between the @ and the M, it'd come out [MENTION=66]Mousey[/MENTION]. Moreover, it'd send Mousey a notification that someone mentioned him in this thread!

    I quickly discovered, however, that this messed up the simming name links we used. It used to be that if I typed @AJ Son, it'd link to Mousey's CricSim player profile on the stats site. This was useful for many reasons.. but the user tagging complicated this because, for example, when I tagged <a href=http://cricsim.com/site/players.php?id=85>SM Green</a>, it thought I was tagging the user [MENTION=20]SM[/MENTION] . As I result, I have changed the @'s in these links to %'s. If you used any quick little shortcuts for images etc (looking at you, [MENTION=87]HeathDavisSpeed[/MENTION], [MENTION=512]morgieb[/MENTION] and [MENTION=37]El Nino[/MENTION] ), these also now begin with % rather than @.

    The reason the forum was down for a couple of hours last night was so I could replace all the @'s in people's previous posts in the database with %'s. The replace queries took a lot of time given we have over 2,000,000 posts on the forum.

    To summarise:

    @ + Cribbage = [MENTION=1]Cribbage[/MENTION] : links to my forum profile, notifies me
    % + RG Cribb = <a href=http://cricsim.com/site/players.php?id=37>RG Cribb</a> : links to my stats site profile, does not notify me
     
    Last edited: Sep 10, 2015
  2. BigDougy DG Dafter

    Top work Cribb. The forum goes from strength to strength.
     
  3. abyrulesdforum AR Dforum

    That was too clear.. nice work [MENTION=1]Cribbage[/MENTION]
     
  4. cpr CP Raftery

    So clear that even MP doesn't need to ask anything :p
     
  5. HeathDavisSpeed HT Davis

    [​IMG]

    Edit: test

    [​IMG]

    <img src=http://cricsim.com/images/sr/trojans.png>
     
    Last edited: Sep 10, 2015
  6. HeathDavisSpeed HT Davis

    Nice. 10/10. Definitely would.
     
  7. Gazza GJ Weaver

    Loving your work Cribb
     
  8. stupersteve03 SJ Cambridge

    What a guy!
     
  9. Eggman DA Eggman

    Will @Vipers eventually lead to the team site pages?
     
    Last edited: Sep 10, 2015
  10. Captain SSD Dong

    [TABLE="class: grid, width: 500"]
    <tbody>[TR]
    [TD]Rulers[/TD]
    [TD]Droolers[/TD]
    [/TR]
    [TR]
    [TD][​IMG][/TD]
    [TD][​IMG][/TD]
    [/TR]
    [TR]
    [TD]@abyrulesdforum[/TD]
    [TD]@Fiery[/TD]
    [/TR]
    </tbody>[/TABLE]

    What's wrong?
     
    Last edited: Sep 10, 2015
  11. MightyPies DA Alessi

    Deadset cocksucker. Literal. Cock. Sucker
     
  12. Eggman DA Eggman

    Probably because its in a table, kinda like how it won't work when in
    Code:
     tags.
    
    [code]@Captain
     
  13. Chewie JA Chewie

    Do we still have hashtags?

    #toot
    [MENTION=3307]Chewie[/MENTION]

    %JA Chewie
     
  14. The Half Back JW Taylor

  15. Escath LE Schaw

    Got the Pumas and Ravens around the wrong way
     
  16. Cribbage RG Cribb

    @CricSim Herald
     
    Last edited: Sep 16, 2015
  17. Eggman DA Eggman

    "Bedsey Beefy Bender" is my favourite collection of members that make a sentence.
     
  18. Chewie JA Chewie

    I got notified I was mentioned in this post :confused1:
     
  19. Cribbage RG Cribb

    Lots of people were in the post originally; I kept editing it to figure out which users weren't working.
     
  20. Cribbage RG Cribb

Share This Page