Skip to:
Content
Pages
Categories
Search
Top
Bottom

add friend button

  • Avatar of beda69
    beda69
    Participant

    @beda69

    hello

    is it possible to add a “add friend” button to users profiles?

    example:

    a user is visiting another users profile, and her i want the “add friend” button, i.e. under the profile photo or wherever.

    by default the user must go back to “members” page and clic on “add friend” there.

    thank you

    beda

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of henrywright
    henrywright
    Moderator

    @henrywright

    Hi @beda69

    You should be able to add <?php bp_add_friend_button(); ?> to your member template. If you don’t have a member template set-up, check out the Template Hierarchy article which will show you how to create one.

    Avatar of beda69
    beda69
    Participant

    @beda69

    if i get it right, this code goes to

    /home/database/public_html/content/plugins/buddypress/bp-members/bp-members-template.php

    but do i need to create a function?
    because if i just add the above line you posted, the code breaks and gives me a error message on screen when loaded…

    sorry, i am not a coder…

    thnaks

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

You must be logged in to reply to this topic.