You can use existing API function that returns true if you are in your own profile, or viewing another profile (false)
<?php
global $userpro;
if ($userpro->viewing_his_profile()){
// viewing his own profile
} else {
// viewing another user profile }
?>
Leave A Comment?