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.

Hide the event attendees list from guests

10 years 4 months ago
Licenses:
JomSocial Expired

Hi Jomsocial Team
i want to ask if i could hide the event attendees list in the event info page from guests.(app-box)
The file is ROOT/components/com_community/templates/default/events.viewevent.php
and the code starts from line 317

but i dont want to delete it this part. i want only to hide it from guests and want to show it to registred members.
is there any code (if php .....) i could write before ?

10 years 4 months ago
Licenses:

Hi, Johannes.

Yes, there is a way. Joomla! may detect if page viewing user is logged in or not.
Use this code:

<?php $user = JFactory::getUser(); ?>

Then wrap code that displays button to view event attendees:
<?php if (!$user->guest) { ?>
some code
<?php } ?>

This will display button only for logged in users.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
The following user(s) said Thank You: Johannes
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