MyBB Community Forums

Full Version: [Tut] Spicing Up Your PM from Posts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This is an easy method to spice up your PMs from the postbit.

Edit the template "postbit_pm".

Replace the contents with this:
<a href="private.php?action=send&amp;uid={$post['uid']}&amp;message={$mybb->settings['bburl']}/showthread.php%3Ftid={$post['tid']}%26pid%3D{$post['pid']}%23pid{$post['pid']}"><img src="{$theme['imglangdir']}/postbit_pm.gif" alt="{$lang->postbit_pm}" title="{$lang->postbit_pm}" /></a>

Now when you click the PM from postbit the url to that post will be the first part of the message. Might be an easy way to reference posts when you a PM a member.

Demo: http://www.supportforums.net/
(be signed in and from any post click the PM button)
Oh and this does validate.
Any chance you can post a screenshot? HF is blocked for me. Sad
I'll do one better and change this at SupportForums.net too. Check it in a few minutes.
Can't you post a screenshot here instead of kind of 'forcing' the users to login at your forums to see it. Everyone posts the screenshots here from what I have seen.
There's nothing special to see anyway. It's just a link automatically inserted in the pm field, once you click the pm button in the postbit.

Awesome tutorial btw!! Thanks for sharing.
(2010-05-28, 05:28 PM)faviouz Wrote: [ -> ]There's nothing special to see anyway.

That is correct, nothing special about this.
I should also add that new users cannot see this since they get the error page for not having 10 posts. Sad
Here's a screenshot for those who don't want to signup or have the 10 posts.

Feel free to use it if you want labrocca.