mybb2 icon indicating copy to clipboard operation
mybb2 copied to clipboard

User Mentions

Open euantorano opened this issue 10 years ago • 7 comments

It should be able to mention/tag a user within a post using the familiar @username syntax. Several conventions should be included.

Conventions

  • Usernames containing spaces should be tagged using the following syntax: @[long separated username].
  • Tags should be replaced upon parsing to a link to the user profile, possibly using a custom BBCode such as: [USER=1234]@euantorano[/USER], where 1234 is the user ID of the tagged user.
  • Invalid tags should be left as plain text upon parsing.
  • When tagged in a piece of content they can view, users should receive a notification.

euantorano avatar Mar 20 '15 11:03 euantorano

When tagged in a piece of content they can view, users should receive a notification.

The alert should always be inserted into the DB and filtered during notification system building IMO. Alike with permission checking, all that stuff should be done during building not saving. As an administrator I should be able to tag an user in a forum he/she is not allowed to see.

Sama34 avatar Mar 21 '15 04:03 Sama34

Of course. That's what that feature means.

On 21 Mar 2015, at 04:02, Omar Gonzalez [email protected] wrote:

When tagged in a piece of content they can view, users should receive a notification.

The alert should always be inserted into the DB and filtered during notification system building IMO.

— Reply to this email directly or view it on GitHub.

euantorano avatar Mar 21 '15 05:03 euantorano

Did you encounter the square bracket syntax anywhere else? I've seen @complex username@ as well, but my impression is that the consensus is to surround the username with quotation marks (@"complex username"); current MyBB plugins also follow that fashion.

dvz avatar Aug 22 '15 08:08 dvz

The square backs are used by mention me, but I have no problem with any other syntax :smile:

euantorano avatar Aug 22 '15 08:08 euantorano

I personally think @"complex name" is the most logical. Square brackets can be annoying to non-programmers, and so keeping things to relatively simple characters would be nice in that respect as well.

Plus, let's put bbcode/mycode syntax behind us and push markdown ;)

JoshHarmon avatar Aug 25 '15 01:08 JoshHarmon

The square backs are used by mention me

Doesn't it use @"complex username" too? At least that's what I remember it used. And @'complex username' + @complex username alternatives for usernames with quotes. Which would be the best syntax(es), I think.

Destroy666x avatar Aug 29 '15 22:08 Destroy666x

@Destroy666x possibly, yeah. I've not used it in a while. Quotes are likely easier. The mentions will likely be converted to a MyCode at parse time anyway (e.g.: [user=1]@euan[/user]).

euantorano avatar Aug 31 '15 16:08 euantorano