View Full Version : PM symbol in postbit
Ohiosweetheart
05-06-2006, 11:48 AM
I'd love to see a private message symbol in the postbit, like there is for the vPager. In the bar next to the rep symbol, bad post symbol, etc.
Mark.B
05-06-2006, 12:04 PM
That's quite easy to do.
For legacy postbits, in template postbit_legacy find:
$post[iplogged]
Add after:
<if condition="$post[userid] != $bbuserinfo[userid]"><if condition="$show['pmlink']"><a href="private.php?$session[sessionurl]do=newpm&u=$post[userid]" target="_blank" rel="nofollow"><img src="$stylevar[imgdir_button]/pmimage.gif" alt="pmimage.gif" title="<phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase>" border="0" /></a></if></if>
Then take the image you want to use, call it pmimage.gif, and upload it to your /images/buttons folder for each style.
This will display a PM link that opens in a new window (remove target="_blank" to make it open in the same window). It also should only show the button to members, and should not show it in your own posts as you wouldn't normally PM yourself!
For standard postbits the same code can be used, and I imagine it could go in the same place, but I don't use standard postbits so I can't check. But instead of editing the template 'postbit_legacy', edit the template 'postbit'.
Ohiosweetheart
05-06-2006, 12:10 PM
wonderful!!!! thank you Mark *kiss*
Hi,
i did exactly as you explained , but it's not working.
efil.
LBSources
06-08-2006, 08:50 PM
I'd love to see a private message symbol in the postbit, like there is for the vPager. In the bar next to the rep symbol, bad post symbol, etc.
https://vborg.vbsupport.ru/showthread.php?t=117971&highlight=pm+from+postbit
Boofo
06-08-2006, 09:57 PM
I'd love to see a private message symbol in the postbit, like there is for the vPager. In the bar next to the rep symbol, bad post symbol, etc.
Why not just use the Quote Post in PM hack I just redid?
peterska2
06-08-2006, 11:13 PM
Why not just use the Quote Post in PM hack I just redid?
Surely my PM button in postbit would work more along the lines of the request. :p
Boofo
06-08-2006, 11:30 PM
Ok, whatever. ;)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.