How do I create a block only for the user "owning" the profile page? I made so the logged in user have a recap of their last comments/added node on their profile with a view.
As I am making the profile page public, I need to be able to hide those blocks from others authenticated users.

How can I make the block visible to the user for which the profile page is?
So I found out :


Either you can directly go in view and add a "FILTER CRITERIA" > "(author) User: Current" and it will hide the content for user that are not the current logged in user
Or you can go in the block settings, select "Pages on which this PHP code returns TRUE (experts only)" and add in the box &lt;?php global $user;
return $user-&gt;uid == arg(1); ?&gt; and the block disappear totally if you are not the current user.