MyBB Hacks

Full Version: Quick access dropdown menu for the user name
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
I tried that way too, but didnt appeared. same as before
Could you post your postbit_classic template here? Or maybe your forum link?
Sorry RateU, i troubled you alot. I'm testing this on localhost to make use of it on live forum after testing.

Finally it worked. My mistake that i didnt changed the post view in usercp as i just reinstalled mybb as previous install crashed because of an error plugin.

Now everything is fine. I will play with it to show some quick links before going to the users profile and i will post it here. So you may suggest or rectify anything in it.

Thanks Smile
Ah... Glad you can solve it Smile
I tried to do something but i found that i cant add the links directly to the menu items. Its funny that i tried to add
<a href="{$post('profilelink')}">Viewprofile</a> to get to the user profile. It shows the profile name before Viewprofile. I want that link to work when we click on viewprofile.

Here is the code i tired and i want some one to fix it with the core mybb links to work.

Code:
<div id="profile_{$post['pid']}_popup" class="popup_menu" style="display: none;">
    <div class="popup_item_container">
        <table style="text-align:left; padding:5px 2px 2px 1px;"><tr><td ><img src="{$theme['imgdir']}/modcp/editprofile.gif" alt="" title="" /> <a href="${profilelink}">ViewProfile</a></td><td><img src="{$theme['imgdir']}/new_pm.gif" alt="" title="" /> <a href="${profilelink}">SendPM</a></td></tr>
<tr><td><img src="{$theme['imgdir']}/hotfolder.gif" alt="" title="" /> <a href="${profilelink}">ViewThreads</a></td><td><img src="{$theme['imgdir']}/re_pm.gif" alt="" title="" /> <a href="{profilelink}">SendEmail</a></td></tr>
<tr><td><img src="{$theme['imgdir']}/newfolder.gif" alt="" title="" /> <a href="{profilelink}">ViewPosts</a></td><td><img src="{$theme['imgdir']}/buddies.gif" alt="" title="" /> <a href="{profilelink}">AddBuddy</a></td></tr></table>
    </div>
</div>


I want that, AddBuddy, SendPM, SendEmail must be hidden/disappeared when we click on our profile link as its not possible to add ourself and not necessary to sendpm or sendemail

(10-14-2010 06:14 AM)1master1 Wrote: [ -> ]<a href="{$post('profilelink')}">Viewprofile</a>

I think you mean {$post['profilelink']}?
If so, you can't use that variable inside link tags. Because the variable already contains link to profile.
Maybe you can use something like this:

HTML Code
<a href="{$post['profilelink_plain']}">View Profile</a>


For other link, like send PM, e-mail, and find thread, you can find it in postbit_pm, postbit_email, postbit_find template.

Where is the UserProfile view template?
It's named member_profile
i thought, i can find the add buddy link in that member_profile, but it only says {buddyoptions}

now where to find it?

Frown

This is the code so far i completed with that one option "addbuddy" remaining. anyone will help to achieve it? need to add the user to our buddy list, when we click on the addbuddy option. all other options are working fine.

Code:
<div id="profile_{$post['pid']}_popup" class="popup_menu" style="display: none;">
    <div class="popup_item_container">
        <table style="text-align:left; padding:5px 2px 2px 1px;"><tr><td ><img src="{$theme['imgdir']}/modcp/editprofile.gif" alt="" title="" /> <a href="{$post['profilelink_plain']}">ViewProfile</a></td><td><img src="{$theme['imgdir']}/new_pm.gif" alt="" title="" /> <a href="private.php?action=send&amp;uid={$post['uid']}">SendPM</a></td></tr>
<tr><td><img src="{$theme['imgdir']}/hotfolder.gif" alt="" title="" /> <a href="search.php?action=finduserthreads&amp;uid={$post['uid']}">ViewThreads</a></td><td><img src="{$theme['imgdir']}/re_pm.gif" alt="" title="" /> <a href="member.php?action=emailuser&amp;uid={$post['uid']}">SendEmail</a></td></tr>
<tr><td><img src="{$theme['imgdir']}/newfolder.gif" alt="" title="" /> <a href="search.php?action=finduser&amp;uid={$post['uid']}">ViewPosts</a></td><td><img src="{$theme['imgdir']}/buddies.gif" alt="" title="" /> <a href="{profilelink}">AddBuddy</a></td></tr></table>
    </div>
</div>


I checked all templates for {buddyoptions} and i think its in the core template/php file???

You can find it in member.php file. But to make it "works correctly" in postbit, I think it can't be done with a pure HTML. So, I think it's better to find a plugin for this, and grab the URL.
Pages: 1 2 3
Reference URL's