Hi Tahir,
please follow this steps:
1. copy userinfo.php from /components/com_community/templates/default/modules/profile/ to /templates//modelrain/html/com_community/modules/profile/
2. edit it, at line 13 put this new code
$guest = JFactory::getUser();
3. at line 36 you can see this code
<?php if( !$isMine && $config->get('enablepm') ){ ?>
changing it to
<?php if( !$isMine && $config->get('enablepm') && !$guest->get('guest')){ ?>
4. at line 41, changing the code from
to
<?php if( !$isMine && !$guest->get('guest') ): ?>
5. at line 161 you can see this code
<ul class="nav pull-right">
above that line, put this new code
<?php if( !$guest->get('guest') ): ?>
6. and below line 225, put this code
after
Ref:
documentation.jomsocial.com/wiki/Customizing_Template
if you dont know how to do it. please provide me FTP access detail by editing your first post at this topic. put it under site info form
Regards