- Posts: 8
- Thank you received: 0
Allow registration only on parent events
- Jyrki Nousiainen
- Topic Author
- Offline
- New Member
Less
More
10 years 2 months ago #41463
by Jyrki Nousiainen
Allow registration only on parent events was created by Jyrki Nousiainen
Hi
I would like to create a set of event each lasting three hours on three consecutive days. With recurrence I nicely get those events created but I would like to limit registration possibility only to the parent events. Is this possible somehow without manually going through each child event and changing their registration type to disabled?
Similarly, is it somehow possible to show only parent events on the list of up-coming events?
I would like to create a set of event each lasting three hours on three consecutive days. With recurrence I nicely get those events created but I would like to limit registration possibility only to the parent events. Is this possible somehow without manually going through each child event and changing their registration type to disabled?
Similarly, is it somehow possible to show only parent events on the list of up-coming events?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
10 years 2 months ago #41479
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Allow registration only on parent events
Hi
1. I think you can try the solution below :
- Click on the parent event, set Registration Type to disable registration. Please remember to check on the check box Update Children event. Then press save button so that these information will be saved. By doing that, both the parent event and children events are now disable registration,
Then you edit the parent event again, set registration type back to what it was before. Please don't check on the update children event checkbox. Then press save button.
That work around can be used to save you much of time.
2. For upcoming events module, you will need to edit code :
1. Open the file modules/mod_eb_events/mod_eb_events.php
2. Find the code below :
3. Add the following line of code after that line :
After that, the up-coming events module won't display children events.
Hope that helps.
Tuan
1. I think you can try the solution below :
- Click on the parent event, set Registration Type to disable registration. Please remember to check on the check box Update Children event. Then press save button so that these information will be saved. By doing that, both the parent event and children events are now disable registration,
Then you edit the parent event again, set registration type back to what it was before. Please don't check on the update children event checkbox. Then press save button.
That work around can be used to save you much of time.
2. For upcoming events module, you will need to edit code :
1. Open the file modules/mod_eb_events/mod_eb_events.php
2. Find the code below :
Code:
$where[] = 'DATE(event_date) >= CURDATE()' ;
3. Add the following line of code after that line :
Code:
$where[] = 'a.parent_id=0' ;
After that, the up-coming events module won't display children events.
Hope that helps.
Tuan
Please Log in or Create an account to join the conversation.
- Jyrki Nousiainen
- Topic Author
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
10 years 2 months ago #41521
by Jyrki Nousiainen
Replied by Jyrki Nousiainen on topic Re: Allow registration only on parent events
Thank you!
Both topics are now solved nicely.
Do you have any plans to provide those as some kind of configuration options on a later release?
Both topics are now solved nicely.
Do you have any plans to provide those as some kind of configuration options on a later release?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
10 years 2 months ago #41582
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Allow registration only on parent events
Hi
No plans for it yet as none of our customers need it before. So you should keep the solution yourself and re-do the modifications if needed if you upgrade to future releases of the extension.
Regards,
Tuan
No plans for it yet as none of our customers need it before. So you should keep the solution yourself and re-do the modifications if needed if you upgrade to future releases of the extension.
Regards,
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2024 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.