mmm....how about replacing in member.php $action = "editprofile";
with: $action = "showprofile";
$user_id = $user_info['user_id'];
(there are should be two instances of such line, first one is what u need to replace, the second instance will affect "change password")