- Posts: 15
- Thank you received: 2
Front End Submissions of Event
- Nick Chapman
- Topic Author
- Offline
- New Member
-
Less
More
11 years 5 months ago - 11 years 5 months ago #51879
by Nick Chapman
Front End Submissions of Event was created by Nick Chapman
Hi Tuan,
I have set up my site to allow registered users to submit, edit and manage registrants from the front end of the site. Great feature that I am very please with.
However, I can't work out how to only allow a user to see registrants for events they have created - is this possible? Otherwise I may have to disable the functionality for privacy reasons.
Regards
Nick.
I have set up my site to allow registered users to submit, edit and manage registrants from the front end of the site. Great feature that I am very please with.
However, I can't work out how to only allow a user to see registrants for events they have created - is this possible? Otherwise I may have to disable the functionality for privacy reasons.
Regards
Nick.
Last edit: 11 years 5 months ago by Nick Chapman.
The following user(s) said Thank You: Kostas
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
11 years 5 months ago - 11 years 5 months ago #51885
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Front End Submissions of Event
Hi Nick
You need to edit one line of code to do that. Open the file components/com_eventbooking/eventbooking.php, find the code below:
Change it to:
After that, it will work as expected.
Regards,
Tuan
You need to edit one line of code to do that. Open the file components/com_eventbooking/eventbooking.php, find the code below:
Code:
define('EB_ONLY_SHOW_REGISTRANTS_OF_EVENT_OWNER', 0);
Change it to:
Code:
define('EB_ONLY_SHOW_REGISTRANTS_OF_EVENT_OWNER', 1);
After that, it will work as expected.
Regards,
Tuan
Last edit: 11 years 5 months ago by Tuan Pham Ngoc. Reason: Correct the code
The following user(s) said Thank You: Kostas
Please Log in or Create an account to join the conversation.
- Nick Chapman
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 15
- Thank you received: 2
11 years 5 months ago - 11 years 5 months ago #51895
by Nick Chapman
Replied by Nick Chapman on topic Front End Submissions of Event
G’day again Tuan,
I have a slight problem now having made the change you suggested.
While at the front end the menu item ‘manage entrants’ allows a user to only see entrants for events they have created, there still exists an option to ‘export entrants’ at the bottom of each event .
I can’t allow this to happen at all as it would be a breach of privacy of the registrants. Is it easy to only have that option to export the registrants available for events that users have created, and not all events?
Cheers
Nick
I have a slight problem now having made the change you suggested.
While at the front end the menu item ‘manage entrants’ allows a user to only see entrants for events they have created, there still exists an option to ‘export entrants’ at the bottom of each event .
I can’t allow this to happen at all as it would be a breach of privacy of the registrants. Is it easy to only have that option to export the registrants available for events that users have created, and not all events?
Cheers
Nick
Last edit: 11 years 5 months ago by Nick Chapman. Reason: correction of error
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
11 years 5 months ago - 11 years 5 months ago #51911
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Front End Submissions of Event
Hi Nick
I see. I will think about it more and add the fix for the core download package. For now, please follow the instructions below to get it fixed:
1. Open the file components/com_eventbooking/helper/helper.php
2. Find the function canExportRegistrants
3. Find the code below (within that function, around the line 2790)
Change it to:
After that, it will work as expected.
Regards,
Tuan
I see. I will think about it more and add the fix for the core download package. For now, please follow the instructions below to get it fixed:
1. Open the file components/com_eventbooking/helper/helper.php
2. Find the function canExportRegistrants
3. Find the code below (within that function, around the line 2790)
Code:
return (($createdBy > 0 && $createdBy == $user->id) || $user->authorise('eventbooking.registrants_management', 'com_eventbooking'));
Change it to:
Code:
return ($createdBy > 0 && $createdBy == $user->id);
After that, it will work as expected.
Regards,
Tuan
Last edit: 11 years 5 months ago by Tuan Pham Ngoc.
Please Log in or Create an account to join the conversation.
- Nick Chapman
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 15
- Thank you received: 2
11 years 4 months ago #52010
by Nick Chapman
Replied by Nick Chapman on topic Front End Submissions of Event
Thank you so much - this worked a treat!!
Nick.
Nick.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
11 years 4 months ago #52022
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Front End Submissions of Event
Thanks Nick for confirming !
Tuan
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2026 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.