Displaying a block on a content profile page passing the content profile nid into the block
Add an argument of type Node[nid] to your views

Configure Action to take if argument is not present for Provide default argument as PHP Code

Add following code in the text area

  $node = node_load((int)arg(1));
  return $node-&gt;uid;