Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
Hi!
I’m editing the view.php, how can i check if the owner of profile is viewing???
I need to display some itens just for the owner of profile when viewing his profile. When others members is viewing the itens will be hide, so i need to know how to check.. if (…)… ?
You can use existing API function that returns true if you are in your own profile, or viewing another profile (false)
1 2 3 4 5 6 7 8 |
<?php global $userpro; if ($userpro->viewing_his_profile()){ // viewing his own profile } else { // viewing another user profile } ?> |
This is the basics, should work! 🙂
You must be logged in to reply to this topic.