So on member profiles I have this set up:
it allows members to friend request a member, but once they're friends, the link to that friend, friend request vanishes when looking at their profile again.
My problem is, it shows you can friend request yourself on your own profile, so even though it's working for people you're friends with, it still shows you can friend request yourself. Any idea what I need to do to get it not to show up if you're looking at your own profile?
$friendlist = new Friendlist($mysidia->user); //create your own friendlist object.
$friend = new Friend(new Member($mysidia->input->get("user")), $friendlist); //create a friend object.
if(!$friend->isfriend){ //only show if the user is a friend of yours.
$document->add(new Image("templates/icons/fr.gif", "Send a Friend Request"));
$document->add(new Link("friends/request/{$member->uid}", "Send <b>{$nickname}</b> a Friend Request", TRUE));
$document->add(new Comment(""));
}
it allows members to friend request a member, but once they're friends, the link to that friend, friend request vanishes when looking at their profile again.
My problem is, it shows you can friend request yourself on your own profile, so even though it's working for people you're friends with, it still shows you can friend request yourself. Any idea what I need to do to get it not to show up if you're looking at your own profile?