How to show a block on the user profile page but not the user edit page? I have added a block to a region and set it so that it shows on user profile pages.

However, I want the block to be displayed only on the profile pages, not on the profile edit pages.

Is that possible?
First, enable the PHP filter module and give yourself permissions to use PHP in order to input PHP on the Block visibility settings page.

On the Block visibility settings page, you can check for an argument like this:

&lt;?php 
if(arg(0) == 'user' &amp;&amp; arg(2) != 'edit' )
return true;
else 
return false 
?&gt; 


Also, see my answer on Stack Overflow.