Display a Block on only the Current User Profile Page

Public

Display the Profile Complete Percentage only on current user profile page

Get raw version
php
  1. <?php
  2.  
  3. global $user;
  4. $uid = arg(1);
  5. if ( arg(0) == 'user' && is_numeric($uid) ) {
  6. if ($user->uid==$uid){
  7. return TRUE;
  8. }
  9. }
  10.  
  11. ?>