Closed (fixed)
Project:
Author Pane
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Oct 2009 at 11:35 UTC
Updated:
10 Nov 2009 at 17:00 UTC
Hi Michelle,
One tinsy little help with my code here. I have this:
<?php if (!empty($user_relationships_api)): ?>
<?php print $user_relationships_api_link; ?>
<?php else: ?>
<?php print l('Register to add as friend', 'user/register'); ?>
<?php endif; ?> Works perfect no problem there. But my dilemma is that the 'register to add as friend' is visible to someone who's viewing their own profile. Which is only intended for the anonymous user. This one should be blank when viewing own profile.
Would really appreciate any help. Thanks.
Comments
Comment #1
michelleJust check to make sure the logged in user and the owner of the profile aren't the same:
Michelle
Comment #2
halloffame commentedThanks my superstar! Ahihi.
Just for reference to other user who might need the same thing.
Comment #3
michelleGreat, glad it worked for you. :)
Michelle