Skip to:
Content
Pages
Categories
Search
Top
Bottom

Creating Profile Button


  • hkcharlie
    Participant

    @hkcharlie

    I see that Buddypress now has this extended menu system that allows you to put profile menu’s on the menu eg: my emails, my groups etc

    Is it now (more easily) possible to create a button with the same characteristics.
    I was looking to see if I could copy a link from the menu and put it in my button, but there is no link to copy.

    Is there any other simple solution that I am overlooking?

    (on a side note, I have been using Buddypress Direct Links Plugin and although the new menu option are available, if nothing else the user menu option with integrated avatar is a lot more slick than the built in version, also emails,notifications and groups with “totals”!)

Viewing 7 replies - 1 through 7 (of 7 total)

  • hkcharlie
    Participant

    @hkcharlie

    OMG it’s so easy I feel stupid!
    In the URL :

    for groups, just write “groups”
    for friends, just write “friends” etc


    BuddyBoss
    Participant

    @buddyboss

    You could use bp_loggedin_user_domain() which will direct you to the current logged in user’s profile. Then append the link structure to the content you’re trying to take them to.

    So for example, this would take you to the current logged in user’s Change Avatar screen.

    <a class="button" href="<?php echo bp_loggedin_user_domain() ?>profile/change-avatar">Change Avatar</a>


    hkcharlie
    Participant

    @hkcharlie

    Actually, it works with the first click, but with the second click it repeats itself and causes a page not found.

    So if you clicked on a “My Friends” button you would goto :
    mywebsite/members/myname/friends

    and then you click on the my groups button and we go to :
    mywebsite/members/myname/friends/groups

    It was going so well ! !

    SO PLEASE I NEED HELP !


    BuddyBoss
    Participant

    @buddyboss

    Can you post the exact code you’re using to produce the button?


    hkcharlie
    Participant

    @hkcharlie

    I’m using a short code (that comes with my theme) and trying to put a link into it.


    hkcharlie
    Participant

    @hkcharlie

    OK, I make a short code button like this:

    [button link=”groups” size=”medium” color=”teal”]My teams[/button]

    Because Buddypress is so fantastical now, the link above works! It will take me to :
    http://mywebsite.com/members/username/groups/

    However, now I am on the “My Groups” page, if I click on another short coded button eg:
    [button link=”friends” size=”medium” color=”teal”]My Friends[/button]
    it takes me to :
    http://mywebsite.com/members/username/groups/friends/

    and therefore doesn’t work.


    BuddyBoss
    Participant

    @buddyboss

    I see. I’m honestly not sure as I don’t know how the shortcode system is working. It sounds like it’s appending the Friends URI to the existing URL. I would contact the theme developer on this one.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Creating Profile Button’ is closed to new replies.
Skip to toolbar