Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Public Profile Display Issues

10 years 3 months ago
  • Tahir's Avatar
    Topic Author
  • Tahir
  • Offline
  • Fresh Boarder
  • Posts: 48
  • Thank you received: 2
Licenses:
JomSocial Expired

Hi.

Since i set profile's to public guests can see the profiles as i set them. So only the profile, no activity stream, no friends etc.

But i just have recognized that if i visit the profile as a guest i can see and click the "Add as friend" and the "Send Message" Buttons as well. Then i get the popup login box. So i would like to hide these buttons for non-members. How can i do this?

Second: The options button on the right corner of the profile is clickable too. Since there is only the "Block User" option inside this menu this button should be invisible for non-members as well.

I dont know if this is a bug or not. But its not really logic :)

Could you please advice me how to hide these buttons for non-members/public?

Best Wishes for 2015!

10 years 3 months ago
Licenses:

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
<?php if( !$isMine ): ?>
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
<?php endif; ?>
after
</ul>

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

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW