Simple Machines Community Forum

SMF Development => Bug Reports => Fixed or Bogus Bugs => Topic started by: Doctor Asp on March 10, 2022, 05:54:31 AM

Title: No @username in the PM editor
Post by: Doctor Asp on March 10, 2022, 05:54:31 AM
I believe I´ve found a bug. :-)
SMF 2.1.1, Chrome, default theme, english, no mods.

To reference a user by @username doesn´t work in the PM editor.
Maybe it´s intentional behaviour?
Title: Re: No @username in the PM editor
Post by: Aleksi "Lex" Kilpinen on March 10, 2022, 06:02:44 AM
It wouldn't serve much purpose to mention users in a PM.
Title: Re: No @username in the PM editor
Post by: Doctor Asp on March 10, 2022, 06:07:21 AM
Quote from: Aleksi on March 10, 2022, 06:02:44 AMIt wouldn't serve much purpose to mention users in a PM.
It would create a link to the users profile.
Title: Re: No @username in the PM editor
Post by: Aleksi "Lex" Kilpinen on March 10, 2022, 06:28:31 AM
Yes, but that's not the core functionality of it, just a small part of the whole.
Title: Re: No @username in the PM editor
Post by: Steve on March 10, 2022, 09:34:16 AM
Quote from: Doctor Asp on March 10, 2022, 06:07:21 AM
Quote from: Aleksi on March 10, 2022, 06:02:44 AMIt wouldn't serve much purpose to mention users in a PM.
It would create a link to the users profile.
Which would:

1. Notify the user that he/she's been mentioned, depending upon their settings

and

2. Give the member being notified a link to a conversation in their email that they can't get to.

That's if I understand how it all works.
Title: Re: No @username in the PM editor
Post by: Arantor on March 10, 2022, 10:34:57 AM
@ member on their own does precisely nothing. You have to explicitly do processing for anything to happen, it isn't magic.

The post-processing on new posts looks for mentions so it can setup an alert, and as a courtesy after the fact it rewrites it into a [member] code to create the link.

You'd have to write new handling for PMs to do the lookup and conversion to the bbcode.

This is not a bug nor an oversight.
Title: Re: No @username in the PM editor
Post by: Doctor Asp on March 11, 2022, 03:45:50 AM
Quote from: Arantor on March 10, 2022, 10:34:57 AMThis is not a bug nor an oversight.
Ok, no problem, I´ll live with it.  :)