phpBB

Development Discussion Board

phpBB's testing ground of bleeding edge code
Advanced search

[RFC] Ability to @mention specific users in posts

Publish your own request for comments or patches for the next version of phpBB. Discuss the contributions and proposals of others. Upcoming releases are 3.1/Ascraeus and 3.2/Arsia.

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

Postby 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
Sorry for my bad english, still improving.
ecwpa
Registered User
 
Posts: 169
Joined: Mon Jan 24, 2005 2:10 am

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

Postby 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?
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.
User avatar
MichaelC
Website Team
Website Team
 
Posts: 797
Joined: Thu Jan 28, 2010 6:29 pm

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

Postby 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.
Sorry for my bad english, still improving.
ecwpa
Registered User
 
Posts: 169
Joined: Mon Jan 24, 2005 2:10 am

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

Postby callumacrae » Thu May 03, 2012 8:13 pm

Both + and @@ are horrfic, imo.
"In JavaScript, there is a beautiful, elegant, highly expressive language that is buried under a steaming pile of good intentions and blunders"
—Douglas Crockford

View my MOD, phpBB Mobile
User avatar
callumacrae
Website Team
Website Team
 
Posts: 882
Joined: Tue Apr 27, 2010 9:37 am
Location: England

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

Postby 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
drathbun
Registered User
 
Posts: 72
Joined: Wed Feb 15, 2006 6:40 pm
Location: Texas

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

Postby 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
User avatar
AliasM2K
Registered User
 
Posts: 82
Joined: Tue Mar 27, 2012 2:33 am

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

Postby 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.
Atramez_Zeton
Registered User
 
Posts: 32
Joined: Mon May 08, 2006 10:14 am

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

Postby 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.
User avatar
Pony99CA
Registered User
 
Posts: 466
Joined: Sun Feb 08, 2009 2:35 am
Location: Hollister, CA

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

Postby 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.
Oleg
3.1 Release Manager
3.1 Release Manager
 
Posts: 1150
Joined: Tue Feb 23, 2010 2:38 am

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

Postby 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?
Sorry for my bad english, still improving.
ecwpa
Registered User
 
Posts: 169
Joined: Mon Jan 24, 2005 2:10 am

Previous Next

Return to [3.x] RFCs

Who is online

Users browsing this forum: No registered users and 11 guests