Very nice modification, indeed. I modified this modification a bit, and this is what I got:
A 'Punch X' in the user menu
If you want to do this, find the following in the postbit / postbit_legacy template:
Quote:
<if condition="$post['userid'] AND $show['member']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if>
|
Add after:
Quote:
<if condition="$can_punch">
<tr><td class="vbmenu_option"><a href="#" onClick="do_punch('$post[userid]', '$post[postid]'); return false;"><phrase 1="$post[username]">$vbphrase[punch_x_user]</phrase></td></tr>
</if>
|
Add the phrase:
punch_x_user
Punch {1}
Done!
By the way,
to the developer:
Bug? My PM count doesn't get updated when the PM is sent (nor do I receive the new pm notice).