PM: Send Reply

Discuss issues and requests related with the forum software
User avatar
Hellbent
Posts: 1360
Joined: 23 Sep 2017, 13:34

PM: Send Reply

Post by Hellbent » 17 Jun 2021, 01:05

Is there anyway that you can set it up so that if you hit the reply button in a pm that it uses the other parties name as the recipient rather than your own? (Double Post)

From: Hellbent
To: Hellbent

I wish that I could say that I've only ever done that once. :oops:

gregster
Posts: 6413
Joined: 30 Sep 2013, 06:48

Re: PM: Send Reply

Post by gregster » 17 Jun 2021, 01:33

Not sure if I understand.

I think what you are seeing only happens if you "reply" to one of your own PMs, or quote it (a PM that you already sent to someone).
If you reply to someone else's PM, it automatically chooses the correct recipient (= not you, but your conversation partner) - at least for me.

In your own PMs though (if you wish to re-send them to someone else), you could use Forward instead - which leaves the recipients empty until you enter someone.

User avatar
Hellbent
Posts: 1360
Joined: 23 Sep 2017, 13:34

Re: PM: Send Reply

Post by Hellbent » 17 Jun 2021, 03:01

gregster wrote:
17 Jun 2021, 01:33
Not sure if I understand.
Let's assume that you and I are talking in a PM and I reply to you, then a min after I have sent my reply I notice that I forgot to mention something so I hit the reply button again (this time it is my last message that is on the screen). Instead of it sending the message to you, it sends it to me and if I am not paying attention I would assume that you will get the message but you never will.

If I was to do the same thing in GMail it knows that I don't mean to reply to myself so it sends it to you.

gregster
Posts: 6413
Joined: 30 Sep 2013, 06:48

Re: PM: Send Reply

Post by gregster » 17 Jun 2021, 03:07

I see, thanks for clarifying. Can't say that it happened to me (or I didn't notice :) ). So a warning message could be useful...

User avatar
joedf
Posts: 8035
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada
Contact:

Re: PM: Send Reply

Post by joedf » 17 Jun 2021, 09:39

Okay, this would be phpbb specific no?
I could add a simple js script to confirm send if the from and to users have a username in common. How's that? :+1:

User avatar
Hellbent
Posts: 1360
Joined: 23 Sep 2017, 13:34

Re: PM: Send Reply

Post by Hellbent » 17 Jun 2021, 12:55

joedf wrote:
17 Jun 2021, 09:39
I could add a simple js script to confirm send if the from and to users have a username in common. How's that? :+1:
That would work.
:thumbup:

User avatar
joedf
Posts: 8035
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada
Contact:

Re: PM: Send Reply

Post by joedf » 18 Jun 2021, 10:54

Welp... I could not find the PM compose template... but I made this userscript/greasemonkey script if this works for you? :think: :thumbup:

Code: Select all

// ==UserScript==
// @name          AHK Confirm send PM if author is recepient
// @description   for AHK forum PM page
// @version       1
// @grant         none
// @icon          https://www.autohotkey.com/static/ahk76.png
// @match         https://www.autohotkey.com/boards/ucp.php?i=pm&mode=compose*
// @match         http://www.autohotkey.com/boards/ucp.php?i=pm&mode=compose*
// @match         https://autohotkey.com/boards/ucp.php?i=pm&mode=compose*
// @match         http://autohotkey.com/boards/ucp.php?i=pm&mode=compose*
// ==/UserScript==


var USERNAME = "Hellbent";


var btnSubmit = document.querySelector('.submit-buttons input[type=submit].default-submit-action');

if (btnSubmit != null)
{
  btnSubmit.onclick = function()
  {
    try
    {
    	var recipients = document.querySelector('ul.recipients').innerText.split('\n').map( x => x.trim() );
      if (recipients.indexOf(USERNAME) >= 0)
      {
        return confirm('Are you sure you want to send this PM? It seems you are a recipient as well...');
      }
    }
    catch(e)
    {
      console.warn('AHK-userscript: Could not get recipients ...');
    }
    
    return false;
  };
}

User avatar
Hellbent
Posts: 1360
Joined: 23 Sep 2017, 13:34

Re: PM: Send Reply

Post by Hellbent » 19 Jun 2021, 11:40

Thank you @joedf

Post Reply

Return to “Forum Issues”