By zerocool.asia on
hi i have created a custom profile page basing on this topic - http://drupal.org/node/35728. i also have private message module installed. at the very bottom of my custom page i made this link.
<div class="send_privatemsg">
<a href="?q=/privatemsg/msgto/<?php print $user->uid; ?>">Send <?php print $user->name; ?> a Private Message.</a>
</div>
i would also like to note that ppl who have not logged in can view the profile page. my problem is how can i disable this link when the person viewing the profile page has not logged in yet? or better yet create another link that says "Please login to send ..... a message" for those who are not logged in.
thanks
zero
Comments
Use $GLOBALS['user']