Skip to:
Content
Pages
Categories
Search
Top
Bottom

Fixed: displaying xprofile data if is friend or is users profile?

  • Avatar of nit3watch
    nit3watch
    Participant

    @nit3watch

    Im trying to hide xprofile data based on if the member viewing the a profile is a friend of the ‘profile owner’, I’m calling in the members header using the following:

    `

    `

    Though I can’t come right, any one have any ideas?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Avatar of Brandon Allen
    Brandon Allen
    Participant

    @cnorris23

    Everything should work if you’re viewing your own profile. `bp_is_friend()` doesn’t return a bool. It returns on of the following: ‘is_friend’, ‘not_friends’, or ‘pending’. In this case you’ll likely want to do `bp_is_friend() == ‘is_friend’` in your ‘if’ statement. That should get things running.

    Avatar of nit3watch
    nit3watch
    Participant

    @nit3watch

    Thanks Brandon, works now :D

    Avatar of manikanta1010
    manikanta1010
    Member

    @manikanta1010

    Hi all,

    I want to seperate the friends comments from allmembers….

    Could you suggest any idea….

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

You must be logged in to reply to this topic.