Mentioning users in posts

Topics about or relating to the forum itself and how it's run.
Post Reply
User avatar
MetZelRio
Fearless
Posts: 561
Joined: 07 Jan 2014 03:28

Mentioning users in posts

Post by MetZelRio » 26 Apr 2014 06:08

If this is not already being done, Is there a way we can implement mentioning someone in a modified.in post when we want someone specific to see what was shared, kind of like the example below?

Image

User avatar
F[uns]tylin' Eclectic
Post Master General
Posts: 4092
Joined: 05 Feb 2010 19:53
Location: Drumore, PA

Re: Mentioning users in posts

Post by F[uns]tylin' Eclectic » 05 Jun 2014 11:16

I agree. This would be a very cool idea.

Sent from my C6916 using Tapatalk
Nick Polini

Footbag is good for the SOLE

Funblog

"Yeah dude it's all mental. Then it's physical" ~Evan Gatesman

User avatar
Allan
Posts: 933
Joined: 30 Aug 2003 20:44
Location: Victoria BC

Re: Mentioning users in posts

Post by Allan » 05 Jun 2014 15:05

I would love to do this, but there doesn't seem like there are many plug-n-play options for it I saw mod a while back when I thought about this too, but I think it was abandoned ... I'll investigate more soon.

On a related note, #hashtags are supported ... #allanrocks :)

User avatar
Allan
Posts: 933
Joined: 30 Aug 2003 20:44
Location: Victoria BC

Re: Mentioning users in posts

Post by Allan » 05 Jun 2014 17:34

https://github.com/daroPL/user-mention-mod Yeah, I don't know. A single commit 3 years ago doesn't really get me going. It's a start though, and maybe I'll fork the code and make it better or something ...

edit: words

shred4life
Hack Fiend
Posts: 44
Joined: 23 Jul 2013 22:20
Location: grand rapids, mi

Re: Mentioning users in posts

Post by shred4life » 06 Jun 2014 08:24

You use vBulletin correct?

how about this
https://theadminzone.com/threads/mentio ... n-4.84697/
-Vince R

User avatar
Allan
Posts: 933
Joined: 30 Aug 2003 20:44
Location: Victoria BC

Re: Mentioning users in posts

Post by Allan » 06 Jun 2014 09:04

Nope, it's phpbb3...

User avatar
Allan
Posts: 933
Joined: 30 Aug 2003 20:44
Location: Victoria BC

Re: Mentioning users in posts

Post by Allan » 07 Jun 2014 12:58

Allan wrote:https://github.com/daroPL/user-mention-mod Yeah, I don't know.
It seems to have worked :) with the caveat that it seems to choke on user names that have any special characters in them like tylin'%20Eclectic]F[uns]tylin' Eclectic. I'm not sure exactly where it chokes and if Nick actually gets a PM notifying him and it's just the bbcode display that gets fucked up (or what). Perhaps Nick could tell us if he got a couple of PMs from being mentioned at this point? Nick? Where are you Nick?

@shred4life was in on this too, so we'll mention him and see what happens.

Let me know if we see any issues with this. C-Fan and Muffinman would probably be interested in this too.

Edit: Hmmm. It seems to also choke on names with numbers in them :( This code isn't very robust. I'll have to look at it more closely and see if I can fix it.

shred4life
Hack Fiend
Posts: 44
Joined: 23 Jul 2013 22:20
Location: grand rapids, mi

Re: Mentioning users in posts

Post by shred4life » 07 Jun 2014 14:14

Allan I didn't get any notification/pm so it's not just the bbcode


I also edited in that mention, did it notify you?
-Vince R

User avatar
Allan
Posts: 933
Joined: 30 Aug 2003 20:44
Location: Victoria BC

Re: Mentioning users in posts

Post by Allan » 07 Jun 2014 14:30

It didn't notify me; it likely only works you first submit a post. I'll see if it might be easy to enable it on edits too.

The regex that's parsing things is pretty shitty. I'm not so hot at regex. I'll see if it can't be improved.

@shred4life

User avatar
F[uns]tylin' Eclectic
Post Master General
Posts: 4092
Joined: 05 Feb 2010 19:53
Location: Drumore, PA

Re: Mentioning users in posts

Post by F[uns]tylin' Eclectic » 07 Jun 2014 19:12

Hey, I gotta notification to come to this page. Apparently someone "tagged " me in a post and it directed me here... So what do you want? :P ;)

Sent from my C6916 using Tapatalk
Nick Polini

Footbag is good for the SOLE

Funblog

"Yeah dude it's all mental. Then it's physical" ~Evan Gatesman

User avatar
F[uns]tylin' Eclectic
Post Master General
Posts: 4092
Joined: 05 Feb 2010 19:53
Location: Drumore, PA

Re: Mentioning users in posts

Post by F[uns]tylin' Eclectic » 07 Jun 2014 19:13

Aka: it worked lol

Sent from my C6916 using Tapatalk
Nick Polini

Footbag is good for the SOLE

Funblog

"Yeah dude it's all mental. Then it's physical" ~Evan Gatesman

shred4life
Hack Fiend
Posts: 44
Joined: 23 Jul 2013 22:20
Location: grand rapids, mi

Re: Mentioning users in posts

Post by shred4life » 07 Jun 2014 22:18

F[uns]tylin' Eclectic wrote:Aka: it worked lol

Sent from my C6916 using Tapatalk
Now that is strange... So apparently it works for special characters, the bbcode is just borked, but it does not work for numbers :?:
-Vince R

Muffinman
the gimp
Posts: 10373
Joined: 21 Apr 2002 15:34
Location: Canada
Contact:

Re: Mentioning users in posts

Post by Muffinman » 08 Jun 2014 17:48

Aww, I didn't get any notification for your tag of me, Allan :(
I hope this works though -- great idea!!! This will make Modified so much more interactive! Nobody comments in my blog, but now I can force them to by tagging them :p

User avatar
Allan
Posts: 933
Joined: 30 Aug 2003 20:44
Location: Victoria BC

Re: Mentioning users in posts

Post by Allan » 09 Jun 2014 20:14

Muffinman can you please look in your general board settings and see if the "Notify on a mention in a post:" option is set to "yes?"

Thanks.

I'm still hacking about for a better regex. It might take a while. Not a top priority, obviously :)

Muffinman
the gimp
Posts: 10373
Joined: 21 Apr 2002 15:34
Location: Canada
Contact:

Re: Mentioning users in posts

Post by Muffinman » 09 Jun 2014 20:24

Hey, I got the PM for this one. And, yeah, it's set to yes

Post Reply