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/remove attendies

9 years 5 days ago
  • Colin's Avatar
    Topic Author
  • Colin
  • Offline
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 3
Licenses:
JomSocial Expired

ISSUE SUMMARY:


How can I hide or remove the attendies in the event and the event module ?

v4.0.3

9 years 5 days ago
Licenses:

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); ?>

3. for events listing copy list.php from /components/com_community/templates/jomsocial/layouts/events/ to /templates/[frontend template]/com_community/html/layouts/events/
4. edit it and remove the code at line 252
<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>

5. at event detail copy single.php from /components/com_community/templates/jomsocial/layouts/events/ to /templates/[frontend template]/com_community/html/layouts/events/
6 edit it and remove the code at line 253
<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>
and 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>

8 years 3 months ago
  • Colin's Avatar
    Topic Author
  • Colin
  • Offline
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 3
Licenses:
JomSocial Expired

The templates are different in JS4, please advise as to how to remove attendees.

8 years 3 months ago
Licenses:

Hi,

please edit your first post at this topic, and put administrator and FTP access detail at site info form.
I will do the changes for you.

Regards

8 years 3 months ago
  • Colin's Avatar
    Topic Author
  • Colin
  • Offline
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 3
Licenses:
JomSocial Expired

Thanks Albertus, you rock dude!

I have added the access codes

8 years 2 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

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

8 years 2 months ago
  • Colin's Avatar
    Topic Author
  • Colin
  • Offline
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 3
Licenses:
JomSocial Expired

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?

8 years 2 months ago
Licenses:

Hi,

please check it. I did it for you.

and here the override files location for events:
/templates/gantry/html/com_community/layouts/events

Regards

8 years 2 months ago
  • Colin's Avatar
    Topic Author
  • Colin
  • Offline
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 3
Licenses:
JomSocial Expired

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.".

8 years 2 months ago
Licenses:

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

7 years 10 months ago
  • Colin's Avatar
    Topic Author
  • Colin
  • Offline
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 3
Licenses:
JomSocial Expired

Attendies is back after upgrade please advise.

screenshot attached

Attachments:
7 years 10 months ago
  • Colin's Avatar
    Topic Author
  • Colin
  • Offline
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 3
Licenses:
JomSocial Expired

Attendies is back after upgrade please advise.

screenshot attached

Attachments:
7 years 9 months ago
Licenses:

Hi,

done, please check it about Attendies.
and about photo upload. user must joning to that event first.

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