View Full Version : How to add message button
Jolten
05-02-2004, 09:10 PM
Hi,
I'd like to add a sendpm button to my postbits templates that loads the PM with the to field set to the user who's post the button was clicked from.
Anyone know how to got about doing this?
Thanks.
Beermonster
05-03-2004, 11:08 AM
If you are using VB3 then it's already there, just click on the persons user name and a drop down will apear :)
Tony G
05-03-2004, 11:44 AM
Do you mean you want an actual button, like the quote button on this postbit, but one for PM? So, moved from the dropdown to the actual postbit?
Jolten
05-03-2004, 01:55 PM
Yes an actual button. Many users do not realize there is a drop down menu with the username and no amount of pointing to them to the FAQ or explaining is ever enough. A button would solve a constant user issue for me.
Stick this anywhere in the postbit template
<a href="private.php?do=newpm&userid=$post[userid]"><img src="/path/to/image.gif" alt="" border="0" /></a>
Jolten
05-03-2004, 06:20 PM
Thanks Brad. That worked perfectly.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.