A user that receives a warning can reply to the warning Private Message.
However, no recipient is auto-populated.
If a Warning PM purposely has no recipient, it shouldn't be made possible to reply. Otherwise, SMF should populate an admin/moderator user or group (of choice?) as recipient.
It should probably be sent from whoever issued the warning
This has always been the case, though. Warnings were always sent (intentionally) anonymously, by sending a PM without a sender. Maybe simpler to remove the reply option there.
I do think that's the easiest solution too.
It shouldn't really reveal who sent the warning, yet I think we should allow replying to it.
The way it is now is a good compromise, in most cases users should be able to name an admin or moderator they want to approach on the issue.
Agreed it should not reveal the actual sender. Maybe the very easiest thing would be to prepopulate with the webmaster email address. This is a stored (global?) value anyway.
Repopulating with webmaster email doesn't work - because this is a PM, not an email, so you can't reply to it in that sense.
Replying to this is actually not a simple task because there's no recipient, so you need to have some other way to work out if the message can be replied to, and funnel it somewhere else, and make sure the relevant moderators can see it and action it. Lot of work, that.
Or, just hide the reply button and leave it be able to be reported (which does offer the option of choice of admin).
I think the most intuitive way would be for there to be a check to see if the sender is the forum. If so, disable the reply. Then in the message itself, admins can choose to put a message in to tell the person to message the admin or a moderator group of choice.
I think that was what I suggested ;)
We agree then haha
Now someone kindly go forth and implement. Don't make me get my code on
More likely to get fixed if everyone contributes a little bit :)
Just forked to fix and noticed that the behaviour is actually different between the Warning notifications and "normal" PMs. With a normal PM, the "Reply" button is shown. With notifications this button isn't shown (seems someone has thought of this before), but the "Reply with quote" button is shown. So I guess just a case of disabling that as well
What about if the reporting is disabled. I think the quote button was there originally to allow for easy forwarding. Now if we remove it, and reporting is disabled, it will be a bit more difficult.
Is reporting disabled based on that change? It only disables the showing of the reply button. Reporting should still be possible
No, that does not change reporting - but reporting of PMs is a forum wide setting. Not every install will allow it.
In any case, the fix I proposed (https://github.com/SimpleMachines/SMF2.1/commit/1714d7980eb6d812dbf7147493dd4e5539dcce9f ) should be OK. If reporting is turned off forum-wide, it's up to the admin to take the queue from the sample template to tell users to message the admin if they need to. The only thing I would say about the fix is that I'd prefer not to use a magic number like 0,inztead of ['member'] ['is_admin'] which doesn't seem to exist there
Actually that fix makes more sense because there can be other cases where a PM can be in the system without a valid recipient like that, not just warnings.
Well yeah, it works, and the addition to the warning template is good too. Not a big problem to lose the quote button.
@shnazzle - were you going to submit this PR? Just checking!
@frandominguez03 #5267 is this issue, not a PR.
The PR mentioned above is still in shnazzle's private repo, and has not been submitted.
There are several similar items out there - where folks have applied "Has fix" labels, but there is no PR yet submitted that I can find.
then we should remove the has fix label from this PR?
Hmm... I.must have done something wrong then as I put in a request yonks ago for my code to be merged in.
I put it in here. As per post above https://github.com/SimpleMachines/SMF2.1/commit/1714d7980eb6d812dbf7147493dd4e5539dcce9f
a warning should be discussed IMO with the moderators before going to the admin. i would suggest that change be made to the language string.
I'm not so sure about that. I'd say a user that wants to argue a moderator action would more often be directed to contact the admin. Also what if the forum has no moderators, a forum always has an admin? I'd say either stick with admin, or replace it with something more neutral like forum staff.
PR #5297
Most helpful comment
This has always been the case, though. Warnings were always sent (intentionally) anonymously, by sending a PM without a sender. Maybe simpler to remove the reply option there.