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.

Remove 'Attendee' and 'Available Seats' counters from event displays

10 years 5 days ago
  • Tim's Avatar
    Topic Author
  • Tim
  • Offline
  • Fresh Boarder
  • Posts: 22
  • Thank you received: 0
Licenses:
JomSocial Active

ISSUE SUMMARY:
Hi I would like to remove the fields for 'Available Seats' & 'Attendees' from my event listings.
Please let me know how I can achieve this?

Thanks

10 years 5 days ago
Licenses:

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>

and this (line 259):
<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>


- 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
10 years 5 days ago
  • Tim's Avatar
    Topic Author
  • Tim
  • Offline
  • Fresh Boarder
  • Posts: 22
  • Thank you received: 0
Licenses:
JomSocial Active

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'?

10 years 5 days ago
  • Tim's Avatar
    Topic Author
  • Tim
  • Offline
  • Fresh Boarder
  • Posts: 22
  • Thank you received: 0
Licenses:
JomSocial Active

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

10 years 5 days ago
Licenses:

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>

No, changes you've made - if you followed my instructions - ware made using layout override Joomla! feature. They will be not touched after upgrade ;)


- 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
10 years 5 days ago
  • Tim's Avatar
    Topic Author
  • Tim
  • Offline
  • Fresh Boarder
  • Posts: 22
  • Thank you received: 0
Licenses:
JomSocial Active

Thanks but attendee count still showing in event list please see screen shot & here: www.inrhythm.com.au/community-drumming/event-list

Attachment ScreenShot2015-04-27at8.38.17pm.png not found

Attachments:
10 years 5 days ago
Licenses:

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>


- 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
10 years 5 days ago
  • Tim's Avatar
    Topic Author
  • Tim
  • Offline
  • Fresh Boarder
  • Posts: 22
  • Thank you received: 0
Licenses:
JomSocial Active

Thanks,
and on the mobile version of the same pages?

The attendees counter is still showing on my mobile but now not on my computer?

10 years 5 days ago
Licenses:

Hi, Tim.

Please, clear your browser cache. Those fields are EXACTLY the same in desktop and mobile view.


- 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
10 years 5 days ago
  • Tim's Avatar
    Topic Author
  • Tim
  • Offline
  • Fresh Boarder
  • Posts: 22
  • Thank you received: 0
Licenses:
JomSocial Active

Thanks, I have cleared my phone cache and also looked on my wife's phone and attendee's are still displaying
please see screen shot ??

Attachment IMG_5218.PNG not found

Attachments:
10 years 5 days ago
Licenses:

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?


- 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
10 years 4 days ago
  • Tim's Avatar
    Topic Author
  • Tim
  • Offline
  • Fresh Boarder
  • Posts: 22
  • Thank you received: 0
Licenses:
JomSocial Active

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?

10 years 4 days ago
Licenses:

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


- 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
10 years 3 days ago
  • Tim's Avatar
    Topic Author
  • Tim
  • Offline
  • Fresh Boarder
  • Posts: 22
  • Thank you received: 0
Licenses:
JomSocial Active

Thanks, I will try that.

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