Hi,
I have just updated my Jomsocial version and now the attendee count's are back :(
I tried to do the same hack you gave previous but the code is different?
Can you confirm how I can hack this so future upgrades will not override the modification?
Thanks
I also now have an odd display on the event list under 'created by' listing
please see the right hand side of attached screen shot.
Hi, Tim.
This means you DIDN'T followed my instructions and edited files IN CORE instead copying them to your template override folder.
Please, check my instructions again they are 100% correct. And code didn't changed.
It seems that there is lack of language constant. Just create language override for it. Copy that "strange" text to Overrides and add as text "Created by".
documentation.jomsocial.com/wiki/Changin...gle_Sentence_or_Word
Hi again Michal,
Sorry to reopen this ticket but I am still trying to remove the 'Event Attendee' Module that shoes the avatar of event attendees as displayed on the screenshot:
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 edit file and remove this code starts around line 309):
<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, 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 edit file and remove this code starts around line 309):
<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,
After updating jomsocial I have this issue agian. I have tried to follow previous instructions however cannot find the code you have mentioned.
I would like to remove the attendee counts from events and all event modules in jomsocial?
Thanks
Hi, Tim.
Hmm... then it seems that customization was made straight in core file... not in override.
Please, try to follow my instruction above. Use just significant part of code when searching it... or check line number.