Bitcoin Forum

Other => Meta => Topic started by: SwingFirst on February 11, 2016, 04:28:55 AM



Title: How do I make a "compose private message"-link with pre-entered text?
Post by: SwingFirst on February 11, 2016, 04:28:55 AM
I know it's possible somehow to make a link so that when you click it you start composing a private message with some info already put in. I'm not talking about https://bitcointalk.org/index.php?action=pm;sa=send;u=147307 but it's a modification of it.


Title: Re: How do I make a "compose private message"-link with pre-entered text?
Post by: bitbaby on February 11, 2016, 06:58:54 AM
Don't know if that is possible or not, move it to meta and a moderator or someone more familiar with the forum software might be able to help you.


Title: Re: How do I make a "compose private message"-link with pre-entered text?
Post by: Mitchell on February 15, 2016, 08:14:29 AM
As far as I know you can only pre-enter the username. Maybe ask NLNico if he knows something, that guy read through the SMF source. ;)


Title: Re: How do I make a "compose private message"-link with pre-entered text?
Post by: NLNico on February 16, 2016, 09:20:21 AM
Hey, I hear my name! :P

But yeh, with a bit of a hacky solution it's actually possible:

https://bitcointalk.org/index.php?action=pm;sa=send2;to=NLNico;bcc=NLNico;message=test%0Anewline;subject=test%20subject

Code:
https://bitcointalk.org/index.php?action=pm;sa=send2;to=NLNico;bcc=NLNico;message=test%0Anewline;subject=test%20subject

- You can use either "to" (username) or "u" (id)
- As example I included "bcc" and "subject" too, obviously you can change/remove that
- Use "%0A" for newline
- Use "%20" for space
- It is hacky because it actually links to the "second send page", but since there is a protection (so you cannot trick people into sending a message), you get a "session expired" error. But it technically works for your purpose :P


Title: Re: How do I make a "compose private message"-link with pre-entered text?
Post by: Mitchell on February 16, 2016, 09:27:05 AM
You sure are Legendary and you do deserve that badge, mate. ;)


Title: Re: How do I make a "compose private message"-link with pre-entered text?
Post by: TheButterZone on February 16, 2016, 10:03:03 AM
Muwahahahah!


Title: Re: How do I make a "compose private message"-link with pre-entered text?
Post by: SwingFirst on February 22, 2016, 09:34:23 PM
Hey, I hear my name! :P

But yeh, with a bit of a hacky solution it's actually possible:

https://bitcointalk.org/index.php?action=pm;sa=send2;to=NLNico;bcc=NLNico;message=test%0Anewline;subject=test%20subject

Code:
https://bitcointalk.org/index.php?action=pm;sa=send2;to=NLNico;bcc=NLNico;message=test%0Anewline;subject=test%20subject

- You can use either "to" (username) or "u" (id)
- As example I included "bcc" and "subject" too, obviously you can change/remove that
- Use "%0A" for newline
- Use "%20" for space
- It is hacky because it actually links to the "second send page", but since there is a protection (so you cannot trick people into sending a message), you get a "session expired" error. But it technically works for your purpose :P

I forgot about this thread so I didn't see your post :o but thank you so much, this will come in handy!! :)