Quick access dropdown menu for the user name
1master1 Offline
Member
***
Posts: 232
Joined: Oct 2010
Post: #11
RE: Quick access dropdown menu for the user name
I tried that way too, but didnt appeared. same as before
10-14-2010 04:59 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #12
RE: Quick access dropdown menu for the user name
Could you post your postbit_classic template here? Or maybe your forum link?

(This post was last modified: 10-14-2010 05:09 AM by RateU.)
10-14-2010 05:09 AM
Find all posts by this user Quote this message in a reply
1master1 Offline
Member
***
Posts: 232
Joined: Oct 2010
Post: #13
RE: Quick access dropdown menu for the user name
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
10-14-2010 05:15 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #14
RE: Quick access dropdown menu for the user name
Ah... Glad you can solve it Smile

10-14-2010 05:19 AM
Find all posts by this user Quote this message in a reply
1master1 Offline
Member
***
Posts: 232
Joined: Oct 2010
Post: #15
RE: Quick access dropdown menu for the user name
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:
1
2
3
4
5
6
7
<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
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #16
RE: Quick access dropdown menu for the user name
(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.


10-14-2010 06:40 AM
Find all posts by this user Quote this message in a reply
1master1 Offline
Member
***
Posts: 232
Joined: Oct 2010
Post: #17
RE: Quick access dropdown menu for the user name
Where is the UserProfile view template?
10-14-2010 05:36 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #18
RE: Quick access dropdown menu for the user name
It's named member_profile

My Blog
10-14-2010 06:51 PM
Find all posts by this user Quote this message in a reply
1master1 Offline
Member
***
Posts: 232
Joined: Oct 2010
Post: #19
RE: Quick access dropdown menu for the user name
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:
1
2
3
4
5
6
7
<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???

(This post was last modified: 10-15-2010 05:01 AM by 1master1.)
10-14-2010 07:20 PM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #20
RE: Quick access dropdown menu for the user name
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.

10-15-2010 05:07 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: