Right now, I don't have any problems creating a panel and making that panel viewable to users that are friends. It's pretty simple. First User = user being viewed; and Second User = Logged in User. Then you click on the Friend tick box to make that panel visible only to friends.

However, I'd like to create a panel that is Visible only to non-friends. This is useful for FB like pages when an authenticated user clicks on someone's user profile, and we can display a panel block that says...

"This user has set their profile to private. You must add this person to your friend list to see this profile."

This would prompt the user to send a friend request. Once the friend request is approved and the relationship is established, the other panels would show up and the "profile is private" panel would disappear to all friends.

I have only been successful in creating panels that appear when 1st user is user being viewed, and 2nd user is logged in user, relationship = friend.

Is there a tickbox that would be something like?

Display only if 1st user and 2nd user:

EQUAL TO
NOT EQUAL TO

X Friend
X Classmate
X Child
X Etc...

Thanks in Advance for the assistance!!!

CommentFileSizeAuthor
UR-panels.jpg27.79 KBmmachina
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jthomasbailey’s picture

subscribe

mrf’s picture

Version: 6.x-1.0-rc3 » 7.x-1.x-dev
Category: support » feature

That option does not currently exist, but definitely seems useful, and probably not too difficult to add.

Moving this over to a feature request for 7.x.

In the meantime I'd have a look at using your own php code in a visibility rule to provide this.