Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Do you exist this plug in?


r-a-y
Keymaster

@r-a-y

You could do this by editing the profile template and adding a friends check conditional…

Something like this:

<?php
global $bp;
if (is_user_logged_in() && friends_check_friendship($bp->loggedin_user->id,$bp->displayed_user->id) ) : ?>
SHOW PROFILE CODE IS HERE
<?php else : ?>
<p>You need to be friends with this member in order to view their profile</p>
<?php endif; ?>

Skip to toolbar