MyBB Community Forums

Full Version: postbit username dropdown menu
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i want to create a dropdown menu in postbit. like this 


its a Basic feature in many forum software (vb,ipb, etc) but in mybb not a single plugin for this available  Sad 
here is how i tried to add this 
change everything in postbit template with this 
{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
    <tbody>
        <tr>
            <td class="tcat">
                <div class="float_left smalltext">
                    {$post['postdate']}, {$post['posttime']} <span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span>
                </div>
                {$post['posturl']}
            </td>
        </tr>

        <tr>
            <td class="trow1 {$unapproved_shade}">
                <table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
                    <tr>
                        <td class="post_avatar" width="1" style="{$post['avatar_padding']}">
                            {$post['useravatar']}
                        </td>
                        <td class="post_author">
                            <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> {$post['onlinestatus']}<br />
                            <span class="smalltext">
                                {$post['usertitle']}<br />
                                {$post['userstars']}
                                {$post['groupimage']}
                            </span>
                        </td>
                        <td class="smalltext post_author_info" width="165">
                            {$post['user_details']}
                        </td>
                                             </td>
                                        </tr>
                </table>
            </td>
        </tr>

        <tr>
            <td class="trow2 post_content {$unapproved_shade}">
                <span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span>

                <div class="post_body" id="pid_{$post['pid']}">
                    {$post['message']}
                </div>
                {$post['attachments']}
                {$post['signature']}

                <div class="post_meta" id="post_meta_{$post['pid']}">
                {$post['iplogged']}
                </div>
            </td>
        </tr>

        <tr>
            <td class="trow1 post_buttons {$unapproved_shade}">
                <div class="author_buttons float_left">
                    {$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}
                </div>
                <div class="post_management_buttons float_right">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
                </div>
            </td>
        </tr>
    </tbody>
</table>
but with no luck its not working. also tried some more codes (searched on google) but still not working anyone plz help me.
exactly which version of MyBB you are using ? can we have your forum url ..
(2015-07-19, 07:39 AM).m. Wrote: [ -> ]exactly which version of MyBB you are using ? can we have your forum url ..

yay i forget to add i am using mybb 1.8.5 sorry i opened this thread in 1.6 support thread  Sad
I made a small plugin for that, see attached zips.

I made it a few weeks ago for another member, but cannot find the thread so fast.

Edit: here it is - http://community.mybb.com/thread-172926.html
(2015-07-19, 08:38 AM)Ad Bakker Wrote: [ -> ]I made a small plugin for that, see attached zips.

I made it a few weeks ago for another member, but cannot find the thread so fast.
+1
perfect . one suggestion please upload this to mod site  Big Grin