Hi, Tim.
Copy this file:
ROOT/components/com_community/templates/jomsocial/layouts/events/single.php
to:
ROOT/templates/your-template/html/com_community/layouts/events (if you don't have any of those folders, feel free to create them)
Then delete this (line 258):
<li class="full"><?php echo ($event->ticket) ? JText::sprintf('COM_COMMUNITY_EVENTS_TICKET_STATS', $event->ticket, $eventMembersCount, ($event->ticket - $eventMembersCount)) : JText::sprintf('COM_COMMUNITY_EVENTS_UNLIMITED_SEAT'); ?></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>
Thanks, I gave that a go and thought it had worked but I am still seeing the 'number of attendees'!?
Plus there is a strange white line at the top RHS of my website Banner(top)
Could that be to do with what I have deleted?
Could you take a look at it for me?
Also while you are looking at it could you also please make the landing page for events the 'Event Details' rather than 'Recent Activities'?
Further to my last email:
I have just noticed that the listings have been removed from the actual event page which is great!
However, the attendee count is still displaying on the 'Community-Events' module.
I would also like to remove it from here plus anywhere else it naturally displays
PS: please tell me if this will need to repeated after future jomsocial upgrades?
Thanks
Hi, Tim.
1. To set event details as default tab, browse to Backend -> Components -> JomSocial -> Theme designer -> Events -> and set default tab.
2. Copy this file:
ROOT/modules/mod_community_events/tmpl/default.php
to:
ROOT/templates/your-template/html/mod_community_events (if you don't have any of those folders, feel free to create them)
Then edit file and remove 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); ?>
</a>
Thanks but attendee count still showing in event list please see screen shot & here:
www.inrhythm.com.au/community-drumming/event-list
Hi, Tim.
Copy this file:
ROOT/components/com_community/templates/jomsocial/layouts/events/list.php
to;
ROOT/templates/your-template/html/com_community/layouts/events (if you don't have any of those folders, feel free to create them)
and remove this from lines 258-270:
<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 echo JText::sprintf(
(!CStringHelper::isSingular(
$event->getMembersCount(COMMUNITY_EVENT_STATUS_ATTEND)
)) ? 'COM_COMMUNITY_EVENTS_ATTANDEE_COUNT_MANY_NUMBER' : 'COM_COMMUNITY_EVENTS_ATTANDEE_COUNT_NUMBER',
$event->getMembersCount(COMMUNITY_EVENT_STATUS_ATTEND)
); ?></a>
</li>
Hi, Tim.
Please, clear your browser cache. Those fields are EXACTLY the same in desktop and mobile view.
Hi, Tim.
This is module... I provided you hack for it... the code used is the same.
Where I could see it on your site?
You can see it at this link, but only in mobile view?
www.inrhythm.com.au/community-drumming/event-list
And also here in mobile view when not logged in:
www.inrhythm.com.au/facilitator-training...hm-facilitator-forum
Desktop view is fine on both
maybe I did not complete the hack correctly?
Hi, Tim.
No, you applied hack correctly. I see that you're using Responsivizer component. I think it cached your site view or uses template without respecting template overrides. but for sure hack id 100% working and in any view the same template files are used.
So try to fiddle with Responsivizer or contact with it developers