thanks for this, great job!
i did the mod for the drop-down menu on the memberlist in version 3.8.3 and no problems.
then i thought it would be a good idea to have the same functionality on the member's name on their profile page as well, so to do that...
edit the Member Info Templates > MEMBERINFO template.
change this line:
HTML Code:
<h1>$prepared[musername] $prepared[onlinestatus]</h1>
to this:
HTML Code:
<h1><div id="profile_username_$prepared[userid]" style="display:inline"><a href="#">$prepared[musername]</a></div> $prepared[onlinestatus]</h1>
<script type="text/javascript"> vbmenu_register('profile_username_$prepared[userid]', true); </script>
<!-- profile username popup menu -->
<div class="vbmenu_popup" id="profile_username_$prepared[userid]_menu" style="display:none;">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$prepared[musername]</td>
</tr>
<if condition="$show['member']">
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&u=$prepared[userid]">Send $prepared[musername] a Private Message</a></td></tr>
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&u=$prepared[userid]" rel="nofollow">Find all posts by $prepared[musername]</a></td></tr>
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&u=$prepared[userid]&starteronly=1" rel="nofollow">Find all threads by $prepared[musername]</a></td></tr>
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$prepared[userid]">Add $prepared[musername] to Your Contacts</a></td></tr>
</if>
</table>
</div>
<!-- / profile username popup menu -->