Get user avatar image

Check permissions within a certain community

$community = community(); // get current community
$user = user(); // get current user
// Is the user a member of this community?
if($user->is_connected_to_community($community)){
echo 'You belong here!';
}
// Is the user a community member (admin) of this community?
if($user->is_manager_of_community($community)){
echo 'Moreover, you manage this thing!';
}