By Anonymous (not verified) on
i want to show a link to views owner, but i write the code wont work, pls show me. thanks.
let say userA view userA's page he will get the link, when userA view userB's page is cant get the link... user just can get the link from own page, that is actually i want.
i output this code to views 2 page Header with php code input format.
like this:
<?php
$add = l(t('Add'), 'search/user');
$invite = l(t('Invite'), 'invite');
?>
<?php global $user; if ($user->uid == $account->uid) { print $add.' or '.$invite.' more friends.'; } else { print ''; } ?>
but i get nothing.. cant work..
Comments
$user->uid == $node->uid
$user->uid == $node->uid