![]() |
How to create custom PM button?
First please excuse my very bad english :(
And now my problem. I want to add to user profile page PM button/link, if I click to this button, user received from me pre-configured private message. Can this possible? |
You could do something like this:
Code:
<form action="private.php?do=insertpm" method="post" name="vbform"> And put it in the MEMBERINFO template where you want the button. But it will bring you to your private messages page when you press it. |
Thank you, this script works very fine!
Only thing - the sent message not saved to my "Sent Items" folder. |
Add
<input type="hidden" name="savecopy" value="1" /> to the form to save a copy to your "Sent Items" folder. |
Thanks, it works.
Quote:
Template: Code:
<form action="private.php?do=insertpm&goto=apply_sub" method="post" name="vbform"> private.php: Code:
$vbulletin->url = 'private.php' . $vbulletin->session->vars['sessionurl_q']; |
All times are GMT. The time now is 08:58 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|