Skip to:

Logged In User Only Information on Profile

  • ekko848


    Can someone point me in the right direction of how this is achievable?

    As of yet, I have just been working on profile.php to edit a users profile.

    But changes here make available to ANYONE viewing the profile.

    What file must I edit so that I can make changes to profile so that this information is only available to the specific user that is logged in, and no one else (except maybe the admin, but that may be overcomplicating things at the moment?)

    Thank you!

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

  • ekko848


    hmm.. would this be ‘member-header.php’?

    I tried making changes to this a while ago but could not see any changes to the profile?

    For example, I added:


    But cannot see the word ‘test’ anywhere on the logged-in users profile?

    I completely removed the activity stream, so I kind of assumed they were connected.. but this is probably not be the case?



    Not sure if this is the best way to do this (still figuring out BuddyPress functions), but I added this code to my profile.php and it works for logged in users only

    if ( bp_is_my_profile() ) 
        {  echo 'Hello';
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar