Actually you can push it back, if it is a lot of work there are other things we can do first.
Thanks for creating this nifty feature - it’ll come in handy!
I noticed that selecting this URL will take you to the site homepage and open up the message composer. Much more friendly, methinks, would be to take you to the destination user profile.
In addition, if you’re not logged in it takes you to the homepage and displays the popup login window. Or for SSO it redirects to the login page. More friendly would be to display a message e.g. “you need to log in first before you can send a message.”
Also - I wonder what would happen if you’re logged in but TL0 and not yet allowed to start new messages. I’ll test that today.
With sso you can llink to
yourdomain.com/session/sso and then set the return path to create the private message. If the user is already logged in they will be redirected automatically to the url supplied by the return path. If they aren’t logged in they will be taken to the sso login page and then redirected to the return path url.
The return path will need to be url encoded. Here is some example code in php:
This worked! Many thanks, @Simon_Cossar!
Now I just need to find a way to have it go to the member’s summary page and pop up the message composer instead of to /latest. @techAPJ any suggestion?
TL0 users can contact admins in the form of replying to welcome message. it would be great if contacting site admins via a pre-filled private message would be permitted even for TL0 users.
then as an admin one can make a simple “contact us” link.
You could do this with a category configured to allow anonymous posting by email and to give access to only the team members who should receive and handle inquiries. It will additionally create staged accounts which is cool.
I just found out about the staged users ability and yes, it’s a nice feature! thanks for the suggestion
a question regarding this method:
it’s like asking people to send an email to email@example.com in order to contact us. the only difference would be that we receive their response in the platform rather than our email.
I’d like the users to be able to contact us via the platform itself.
Any way to open the Email Composer w/o having to fill in the user? e.g.
vs. having to fill in a user
Use-case is a simple bookmark to composing PMs.
And there is no way to PM a user starting from an email, like we can create a Topic post from email, correct?
Hmm, at least some form of the empty version should work @techapj
Okay, this is now done via:
All of the below format will work now:
https://meta.discourse.org/new-message https://meta.discourse.org/new-message?username= https://meta.discourse.org/new-message?title=foo&body=bar https://meta.discourse.org/new-message?groupname=
Nice. Pulled from tests-passed, and it looks great!
Hi, this looks great but limited because I am not able to get the following format to work if the message is to a group:
The composer is not opening up if the username is a group… (whereas it does to a single user)
Should that work @techAPJ?
one other comment/request - if it’s a new message can it open up with the /my/messages page in the background?
What you are looking for is
groupname parameter. Also make sure that the group is messageable.
It doesn’t as of now, but a PR for this change is certainly welcome.
Hello. I was wondering if there are any updates regarding having multiple users within the link to create a message? Note that these multiple users are not all in a group. Thank you!
This feature doesn’t exist as of now. A PR for the same is certainly welcome.