MyBB Community Forums

Full Version: username in posts drop down...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
anyway to make the usernames have a drop down like in vbulletin when you click on them in a thread? I think it would be easier to be able to click their name and have it drop down with a few options like- view profile, pm member, etc..
Inside the postbit_classic template, do the following:

Locate and replace this code:
<strong><span class="largetext">{$post['profilelink']}</span></strong>

With this code:
<strong><span class="largetext"><a href="#" id="profilelink_{$post['pid']}">{$post['username_formatted']}</span></strong></a>
<div id="profilelink_{$post['pid']}_popup" class="popup_menu" style="display: none;">
<div class="popup_item_container">
<a href="{$mybb->settings['bburl']}/member.php?action=profile&amp;uid={$post['uid']}" class="popup_item">view Profile</a>
</div>
<div class="popup_item_container">
<a href="{$mybb->settings['bburl']}/search.php?action=finduser&amp;uid={$post['uid']}" class="popup_item">find Users Posts</a>
</div>
<div class="popup_item_container">
<a href="{$mybb->settings['bburl']}/search.php?action=finduserthreads&uid={$post['uid']}" class="popup_item">find Users Threads</a>
</div>
<div class="popup_item_container">
<a href="{$post['website']}" target="_blank" " class="popup_item">visit Users Website</a>
</div>
<div class="popup_item_container">
<a href="{$mybb->settings['bburl']}/private.php?action=send&amp;uid={$post['uid']}" class="popup_item">PM User</a>
</div>
<div class="popup_item_container">
<a href="{$mybb->settings['bburl']}/member.php?action=emailuser&amp;uid={$post['uid']}" class="popup_item">E-Mail User</a>
</div>
</div><br />
<script language="javascript" type="text/javascript">
new PopupMenu("profilelink_{$post['pid']}");
</script>
(2010-03-25, 07:50 AM)SSBBRAWLIN Wrote: [ -> ]Inside the postbit_classic template, do the following:

Locate and replace this code:
<strong><span class="largetext">{$post['profilelink']}</span></strong>

With this code:
<strong><span class="largetext"><a href="#" id="profilelink_{$post['pid']}">{$post['username_formatted']}</span></strong></a>
<div id="profilelink_{$post['pid']}_popup" class="popup_menu" style="display: none;">
<div class="popup_item_container">
<a href="{$mybb->settings['bburl']}/member.php?action=profile&amp;uid={$post['uid']}" class="popup_item">view Profile</a>
</div>
<div class="popup_item_container">
<a href="{$mybb->settings['bburl']}/search.php?action=finduser&amp;uid={$post['uid']}" class="popup_item">find Users Posts</a>
</div>
<div class="popup_item_container">
<a href="{$mybb->settings['bburl']}/search.php?action=finduserthreads&uid={$post['uid']}" class="popup_item">find Users Threads</a>
</div>
<div class="popup_item_container">
<a href="{$post['website']}" target="_blank" " class="popup_item">visit Users Website</a>
</div>
<div class="popup_item_container">
<a href="{$mybb->settings['bburl']}/private.php?action=send&amp;uid={$post['uid']}" class="popup_item">PM User</a>
</div>
<div class="popup_item_container">
<a href="{$mybb->settings['bburl']}/member.php?action=emailuser&amp;uid={$post['uid']}" class="popup_item">E-Mail User</a>
</div>
</div><br />
<script language="javascript" type="text/javascript">
new PopupMenu("profilelink_{$post['pid']}");
</script>

didn't seem to work.
anyone?
(2010-03-25, 08:47 PM)Shemo Wrote: [ -> ]
(2010-03-25, 07:50 AM)SSBBRAWLIN Wrote: [ -> ]Inside the postbit_classic template, do the following:

Locate and replace this code:
<strong><span class="largetext">{$post['profilelink']}</span></strong>

With this code:
<strong><span class="largetext"><a href="#" id="profilelink_{$post['pid']}">{$post['username_formatted']}</span></strong></a>
<div id="profilelink_{$post['pid']}_popup" class="popup_menu" style="display: none;">
<div class="popup_item_container">
<a href="{$mybb->settings['bburl']}/member.php?action=profile&amp;uid={$post['uid']}" class="popup_item">view Profile</a>
</div>
<div class="popup_item_container">
<a href="{$mybb->settings['bburl']}/search.php?action=finduser&amp;uid={$post['uid']}" class="popup_item">find Users Posts</a>
</div>
<div class="popup_item_container">
<a href="{$mybb->settings['bburl']}/search.php?action=finduserthreads&uid={$post['uid']}" class="popup_item">find Users Threads</a>
</div>
<div class="popup_item_container">
<a href="{$post['website']}" target="_blank" " class="popup_item">visit Users Website</a>
</div>
<div class="popup_item_container">
<a href="{$mybb->settings['bburl']}/private.php?action=send&amp;uid={$post['uid']}" class="popup_item">PM User</a>
</div>
<div class="popup_item_container">
<a href="{$mybb->settings['bburl']}/member.php?action=emailuser&amp;uid={$post['uid']}" class="popup_item">E-Mail User</a>
</div>
</div><br />
<script language="javascript" type="text/javascript">
new PopupMenu("profilelink_{$post['pid']}");
</script>

didn't seem to work.
anyone?

use postbit not postbit classic
this worked for me