Skip to:
Content
Pages
Categories
Search
Top
Bottom

LInk to inbox / sent messages

  • Avatar of kamuleontti
    kamuleontti
    Member

    @kamuleontti

    Hi,

    I’d like to show links to inbox, sent messages and “compose a new message” on a custon page. I did find the bp_send_private_message_link() function for “compose”, but I can’t figure out how to do the “inbox” and “sent messages” links right.

    Is there a function that returns the inbox and sent messages slug/link?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Avatar of Roger Coathup
    Roger Coathup
    Participant

    @rogercoathup

    You can build your links using this sort of structure:

    $link = bp_loggedin_user_domain() . bp_get_messages_slug() . ‘/inbox';

    Avatar of kamuleontti
    kamuleontti
    Member

    @kamuleontti

    Thanks Roger!

    BTW, does anybody have idea why I’m called Deleted User?

    Avatar of Roger Coathup
    Roger Coathup
    Participant

    @rogercoathup

    I think if you change something in your profile, it will update your name… don’t hold me to that though.

    There’s a lot of stuff on this site that needs improving.

    Avatar of arialburnz
    Arial Burnz
    Participant

    @arialburnz

    I’m having a problem that I’m hoping the above situation will fix, but I need more information on how to utilize what’s above.

    Problem: WordPress toolbar is NOT showing up in MSIE, Firefox or Safari browsers. It IS showing in the Google Chrome browser. I’ve tried logging in with different accounts to see if it’s related to the login, but it’s the same – admin or member account – no toolbar. ALSO it’s the same with my other WordPress site – both are on two different servers. However, if I go to a WordPress.com site (versus a WordPress installation on a server/private site), the WordPress toolbar IS available.

    Since the WordPress toolbar is not available, I was hoping I could create menu tabs/options to get members easily to their BuddyPress inbox. The above information about building links from the sample structure is Greek to me. Where do I put that code? I’m using the Mantra Theme, so would I put it in the Custom CSS area? In the Appearance > Menu > Enter URL option? I’m thoroughly confused and I’m such a newb. Sorry!

    Here’s the website I’m building: http://ilovevampirenovels.com/ravenousbooktours

    Thank you!
    Arial Burnz
    Tour Host Coordinator

    Avatar of bp-help
    bp-help
    Participant

    @bphelp

    @arialburnz
    You really should open a new topic. Your toolbar not appearing is a separate issue all together. The code @rogercoathup provided is just some PHP function calls combined using the ‘.’ operator stored in a variable. The variable represents what it is equal too. For instance:
    $bphelp=”A nice person who tries to help when I can”;
    I could echo $bphelp; once it is declared and the result would print “A nice person who tries to help when I can” without the quotes.
    Therefore it is easier to declare a variable and use the variable to call those combined functions versus typing it all out. If this sounds Greek as well then consider hiring a developer. By the way don’t mix PHP code in CSS. It wont work but you can use php conditionals to control whether CSS code is executed depending on the condition.

    Avatar of arialburnz
    Arial Burnz
    Participant

    @arialburnz

    Thank you for your input. Yes, it’s all Greek to me, but I will find a work-around. I don’t have the resources to hire developers.

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

You must be logged in to reply to this topic.