[RFC] Ability to @mention specific users in posts

Discuss requests for comments/changes posted in the Issue Tracker for the development of phpBB. Upcoming releases are 3.2/Rhea and 3.3.
Post Reply
ecwpa
Registered User
Posts: 181
Joined: Mon Jan 24, 2005 2:10 am
Contact:

Re: [RFC] Ability to @mention specific users in posts

Post by ecwpa » Wed May 02, 2012 9:28 pm

What about + symbol like Google+? @ probably is still the best option. If a username start with @ then the easiest solution is just typing @@ :D
Slightly better English than it was in 2005, still improving :D

User avatar
MichaelC
Development Team
Development Team
Posts: 889
Joined: Thu Jan 28, 2010 6:29 pm

Re: [RFC] Ability to @mention specific users in posts

Post by MichaelC » Thu May 03, 2012 4:07 pm

ecwpa wrote:What about + symbol like Google+? @ probably is still the best option. If a username start with @ then the easiest solution is just typing @@ :D
It could start with @@ too?
Formerly known as Unknown Bliss
psoTFX wrote: I went with Olympus because as I said to the teams ... "It's been one hell of a hill to climb"
No unsolicited PMs please except for quotes.

ecwpa
Registered User
Posts: 181
Joined: Mon Jan 24, 2005 2:10 am
Contact:

Re: [RFC] Ability to @mention specific users in posts

Post by ecwpa » Thu May 03, 2012 4:23 pm

Well, if an username starts with @@ the it's going to be the first one to pop out as a suggestion if you type @@ and it's going to end up looking like this @@@etc , if you type @a then something starting with A like @aetc.
Slightly better English than it was in 2005, still improving :D

User avatar
callumacrae
Infrastructure Team
Infrastructure Team
Posts: 1046
Joined: Tue Apr 27, 2010 9:37 am
Location: England
Contact:

Re: [RFC] Ability to @mention specific users in posts

Post by callumacrae » Thu May 03, 2012 8:13 pm

Both + and @@ are horrfic, imo.
Made by developers, for developers!
My blog

User avatar
drathbun
Registered User
Posts: 72
Joined: Wed Feb 15, 2006 6:40 pm
Location: Texas
Contact:

Re: [RFC] Ability to @mention specific users in posts

Post by drathbun » Thu May 03, 2012 8:45 pm

I think to make it bullet-proof it needs to have an insertion algorithm / hidden link text like the user_id that I mentioned earlier. Rather than having a user type @ or + or anything, have them run an insertion process that is requested, not automatic. What I mean is, don't assume that as I'm typing an @ or whatever that I'm starting to type a reference, because frequently it will not be one. Have an "insert user" option along with the quote, and have it pop up a list that can be auto-reduced, and when I pick the name to insert then display it as @username but behind the scenes store it using some sort of syntax (apparently bbcode is already out) that can be properly parsed. By doing that, you could even build a cross reference table that contains a post_id and a user_id, call it phpbb_post_mentions or something like that. From a user then you can immediately, easily, and very efficiently get a list of posts where they are mentioned. The opposite is also true, you can take a post and know immediately which users are mentioned in the post. You could tie a notification (if you want to do that) to the same table, and get a list of all of the latest "mentions" into a single PM.

But I think it has to be done differently than just trying to guess if a user is typing in a username or not.
Sometimes you're the windshield, sometimes you're the bug.

User avatar
AliasM2K
Registered User
Posts: 82
Joined: Tue Mar 27, 2012 2:33 am

Re: [RFC] Ability to @mention specific users in posts

Post by AliasM2K » Fri May 04, 2012 12:25 am

drathbun wrote:I think to make it bullet-proof it needs to have an insertion algorithm / hidden link text like the user_id that I mentioned earlier. Rather than having a user type @ or + or anything, have them run an insertion process that is requested, not automatic. What I mean is, don't assume that as I'm typing an @ or whatever that I'm starting to type a reference, because frequently it will not be one. Have an "insert user" option along with the quote, and have it pop up a list that can be auto-reduced, and when I pick the name to insert then display it as @username but behind the scenes store it using some sort of syntax (apparently bbcode is already out) that can be properly parsed. By doing that, you could even build a cross reference table that contains a post_id and a user_id, call it phpbb_post_mentions or something like that. From a user then you can immediately, easily, and very efficiently get a list of posts where they are mentioned. The opposite is also true, you can take a post and know immediately which users are mentioned in the post. You could tie a notification (if you want to do that) to the same table, and get a list of all of the latest "mentions" into a single PM.

But I think it has to be done differently than just trying to guess if a user is typing in a username or not.
An insert user option is not bad, but then a custom bbcode like [user=###]User Nickname[/user] might have to be implemented.

Going with mentions using @ or + would be better as it is already familiar to almost everyone as everyone these days have a Facebook, Twitter, Github or Google+ account :D

Atramez_Zeton
Registered User
Posts: 32
Joined: Mon May 08, 2006 10:14 am

Re: [RFC] Ability to @mention specific users in posts

Post by Atramez_Zeton » Sat Dec 15, 2012 1:05 am

quote is kind of tagging IMO
and if @username is used to mention someone to see a post it doesnt have to be in the post itself -its a waste of other people's time to read a new post for a tag- and it can be "send to a friend" link if they want to see some topics or replies with a notification not PM.

still using @username in a post is nice but i dont think people wont abuse it in the way i mentioned above.

User avatar
Pony99CA
Registered User
Posts: 986
Joined: Sun Feb 08, 2009 2:35 am
Location: Hollister, CA
Contact:

Re: [RFC] Ability to @mention specific users in posts

Post by Pony99CA » Sat Dec 15, 2012 4:47 am

AliasM2K wrote:An insert user option is not bad, but then a custom bbcode like [user=###]User Nickname[/user] might have to be implemented.
Actually, I'd like to expand upon that BBCode idea. If something like this is used, let's generalize it to allow linking to other items. For example:
  • {user:xxx} links to the user with user name (and/or user ID?) xxx.
  • {forum:xxx} links to the forum with forum ID xxx (displaying the forum's name in the link).
  • {topic:xxx} links to the topic with topic ID xxx (displaying the topic's title in the link).
  • {post:xxx} links to the post with post ID xxx (displaying the post's title in the link).
  • {date:+/-something} adds the current date plus or minus the "something".
  • {time:+/-something} adds the current time plus or minus the "something".
We should also allow any of those to be used in Custom BBCodes and allow a "this" option to reference the current forum/topic/post/user (being quoted?). User tags would generate notifications to the user, but forum/topic/post tags could also generate notifications (if we wanted) to the subscribers.

Yes, this is more than this topic asked for, but let's make sure whatever we pick is generalizable to support other things. Just a thought....
AliasM2K wrote:Going with mentions using @ or + would be better as it is already familiar to almost everyone as everyone these days have a Facebook, Twitter, Github or Google+ account :D
I don't have any of those. :P

Steve
Silicon Valley Pocket PC (http://www.svpocketpc.com)
Creator of manage_bots and spoof_user (ask me)
Need hosting for a small forum with full cPanel & MySQL access? Contact me or PM me.

Oleg
Posts: 1150
Joined: Tue Feb 23, 2010 2:38 am
Contact:

Re: [RFC] Ability to @mention specific users in posts

Post by Oleg » Sat Dec 15, 2012 5:57 am

@ works for github most of the time, it's probably good enough.

From my experience @ does the right thing on github at least 95% of the time. There are however definitely some users you don't want to register as (@return, for example).

I estimate @ works a lot more than 95% of the time on twitter.

ecwpa
Registered User
Posts: 181
Joined: Mon Jan 24, 2005 2:10 am
Contact:

Re: [RFC] Ability to @mention specific users in posts

Post by ecwpa » Sat Dec 15, 2012 2:16 pm

Pony99CA wrote:
  • {user:xxx} links to the user with user name (and/or user ID?) xxx.
  • {forum:xxx} links to the forum with forum ID xxx (displaying the forum's name in the link).
  • {topic:xxx} links to the topic with topic ID xxx (displaying the topic's title in the link).
  • {post:xxx} links to the post with post ID xxx (displaying the post's title in the link).
  • {date:+/-something} adds the current date plus or minus the "something".
  • {time:+/-something} adds the current time plus or minus the "something".
That looks interesting. But I was wondering if that's how it's going to be saved in the database? If not why using that format? In the case of @mentions it would be more practical to replace it with a tradicional url bbcode, no?
Slightly better English than it was in 2005, still improving :D

Post Reply