Is there a way to show a certain block only to the profile holder using advanced profile & panels?
thanks for helping

Comments

michelle’s picture

Project: Advanced Profile Kit » Panels
Version: 6.x-1.x-dev » 6.x-2.x-dev

I don't believe so but moving this to the proper queue just in case. I haven't looked at panels 3, yet, so there's possibly something in there.

Michelle

dorien’s picture

I guess you can also add a "show if PHP returns TRUE:

//get the profile node's user:
$node=node_load(arg(1));
$user2=user_load($node->uid);

//get the current users id:
global $user;

//check if they match:
if ($user->uid==$user2->uid){
$match=TRUE;
}
else {
$match=FALSE;
}
return $match;
esmerel’s picture

Status: Active » Fixed

I don't think this is possible directly in panels 3 either - permissions from the handler are generally based on role or access, not on a specific profile. I imagine you could probably write a plugin that would do it, but that's another ball of wax.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.