Skip to:
Content
Pages
Categories
Search
Top
Bottom

Button that links to the Private Message (compose)

  • @akosichen

    Participant

    This is the code linking to the specific member I wanted to send a message.
    <a href="/members/<?php echo bp_core_get_username( get_the_author_meta( 'ID' ) ); ?>/">

    but the question is, how can I go directly to the Private Message?
    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • @henrywright

    Moderator

    Hi @akosichen

    If you’re in the members loop, you can use this to output a button: bp_member_add_friend_button()

    @akosichen

    Participant

    No, I’m not.
    I wanted to place it to the other page.
    How about that?
    and How can I get the info field fron the other page and display it to Subject field?
    thank you somuch!!!

    @henrywright

    Moderator

    Oops, I just noticed I supplied you with an add friend button; nothing to do with private messages, so sorry about that. Let me take a look to see if I can find something.

    @henrywright

    Moderator

    Try placing this in your member’s profile template:

    <a href="<?php bp_send_private_message_link(); ?>" title="Private Message">Private Message</a>

    @akosichen

    Participant

    I’m sorry for being noob.
    Why do I have to place it on Profile Template?
    Where can i find that?
    thankyou!

    @danbp

    Participant

    @akosichen

    Participant

    Hello @Henry Wright
    Yes Im redirected to compose message, but I want is the recipient will automatically added to send to fields like when you go to someone’s page then clicked the Private Message.

    Anyway, thankyou so much!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Button that links to the Private Message (compose)’ is closed to new replies.
Skip to toolbar