Hiding Number of Registered to Public

  • Adriano Cisternino
  • Topic Author
  • Away
  • New Member
  • New Member
More
8 years 4 months ago #107118 by Adriano Cisternino
Hiding Number of Registered to Public was created by Adriano Cisternino
Hi,

Is there a way to limit the display of the number of registered people to an event to say Author only? A bit like we can now do with the View List option, it would be nice if we could also control whether to display or not to the public how many people have registered to an event.

In our case, the majority of the people book at the event and it looks bad that for an event with a capacity of say 120 people there are only 20 people registered online the day before, even though we will be getting 80 that would rock up on the day and pay at the desk.

Please let us know if this is already possible and how.

Thanks,
Adri

Please Log in or Create an account to join the conversation.

More
8 years 4 months ago #107121 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Hiding Number of Registered to Public
Hi Adri

Unfortunately, it is not supported, and will require small customization to the code as described below:

1. Open this file components/com_eventbooking/view/common/tmpl/event_properties.php

2. Find this line of code, line 131:

if ($config->show_registered && $item->registration_type != 3)

3. Change it to:

if (EventbookingHelperAcl::canViewRegistrantList() && $config->show_registered && $item->registration_type != 3)

After that, it should work as expected. Remember to move the modified file to PATH_TO_TEMPLATE/html/com_eventbooking/common folder so that the change won't be lost when you update to future releases of the extension

Regards,

Tuan
The following user(s) said Thank You: Adriano Cisternino

Please Log in or Create an account to join the conversation.

  • Adriano Cisternino
  • Topic Author
  • Away
  • New Member
  • New Member
More
8 years 4 months ago #107129 by Adriano Cisternino
Replied by Adriano Cisternino on topic Hiding Number of Registered to Public
Thanks heaps Tuan, that is exactely what we needed! :)

Please Log in or Create an account to join the conversation.

More
8 years 4 months ago #107148 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Hiding Number of Registered to Public
Great. Thanks for confirming

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc