Hi Colin,
you can do it by using template override, here the steps:
1. for module, copy default.php from /modules/mod_community_events/tmpl/ to /templates/[your frontend template]/html/mod_community_events/
2. edit it remove this code from line 32
<a href="<?php echo $event->getGuestLink(COMMUNITY_EVENT_STATUS_ATTEND); ?>">
<?php echo JText::sprintf((!CStringHelper::isSingular($event->confirmedcount)) ? 'COM_COMMUNITY_EVENTS_ATTANDEE_COUNT_MANY' : 'COM_COMMUNITY_EVENTS_ATTANDEE_COUNT', $event->confirmedcount); ?>
<li>
<svg class="joms-icon" viewBox="0 0 16 16">
<use xlink:href="<?php echo CRoute::getURI(); ?>#joms-icon-user"/>
</svg>
<a href="<?php echo $event->getGuestLink(
COMMUNITY_EVENT_STATUS_ATTEND
); ?>"><?php $membercount = $event->getMembersCount(COMMUNITY_EVENT_STATUS_ATTEND);
echo JText::sprintf(
(!CStringHelper::isSingular(
$membercount
)) ? 'COM_COMMUNITY_EVENTS_ATTANDEE_COUNT_MANY_NUMBER' : 'COM_COMMUNITY_EVENTS_ATTANDEE_COUNT_NUMBER',
$membercount
); ?></a>
</li>
<li class="full"><a href="<?php echo CRoute::_('index.php?option=com_community&view=events&task=viewguest&eventid=' . $event->id . '&type='.COMMUNITY_EVENT_STATUS_ATTEND )?>"><?php
echo JText::sprintf((CStringHelper::isPlural($eventMembersCount)) ? 'COM_COMMUNITY_EVENTS_ATTANDEE_COUNT_MANY':'COM_COMMUNITY_EVENTS_ATTANDEE_COUNT', $eventMembersCount);
#echo $eventMembersCount > 1 ? JText::_('COM_COMMUNITY_EVENTS_ATTANDEE_COUNT_MANY') . ' <span class="joms-text--light">' . $eventMembersCount . '</span>' : JText::_('COM_COMMUNITY_EVENTS_ATTANDEE_COUNT') . ' <span class="joms-text--light">' . $eventMembersCount . '</span>'
?></a></li>
<div id="joms-event--attend" class="joms-tab__content">
<div class="joms-module__body">
<?php if($eventMembersCount>0) { ?>
<ul class="joms-list--thumbnail">
<?php foreach($eventMembers as $member) { ?>
<li class="joms-list__item">
<a href="<?php echo CUrlHelper::userLink($member->id); ?>" class="joms-avatar">
<img src="<?php echo $member->getThumbAvatar(); ?>" alt="<?php echo $member->getDisplayName(); ?>" />
</a>
</li>
<?php } ?>
</ul>
<div class="joms-gap"></div>
<a class="joms-button--link" href="<?php echo $handler->getFormattedLink('index.php?option=com_community&view=events&task=viewguest&eventid=' . $event->id . '&type='.COMMUNITY_EVENT_STATUS_ATTEND );?>"><?php echo JText::_('COM_COMMUNITY_VIEW_ALL');?> </a>
<?php } else {
echo JText::_('COM_COMMUNITY_EVENTS_NO_USER_ATTENDING_MESSAGE');
} ?>
</div>
</div>
Hi Colin,
I am sorry for delay answer, I already applied that code, please check.
but I didnt use the override method. I suggest you do it by yourself, so you can learn the new things :)
thank you
Hi Dimas,
Thanks for doing that, but it seems that the single.php template is a little wonky now.
Sample:
www.ehcanadatravel.com/canada-events/vie...ges-de-montreal.html
I have replaced the original single.php, so it is working, but attendies showing again.
I have placed your the changed single.php in the overide area, as single-override.php, So if you could fix it that would be swell?
I still Above you said the overide folder should go here; /templates/[frontend template]/com_community/html/layouts/events/ so i presume the latter is the right area?
Thank you for making the adjustments!
But if I go to a single event I still see, a module 'going' that shows attendies.
Can that be hidden?
I also see that if i click 'view all' in that module i get a, "You must be a Member to view this area. Please Login or Sign Up if you do not have an account.".
Hi,
this override location:
/templates/[frontend template]/com_community/html/layouts/events/
is the right area. as you can see the changes has been applied to the site.
Module "going" has been took off.
the "view all" need at logged in user. but this thing will not appear anymore because the module has been took off.
all changes by using override method.
Regards