- Posts: 7
- Thank you received: 0
minimum number of participants
- Peter Schnittger
- Topic Author
- Offline
- New Member
-
Less
More
7 years 3 months ago #111772
by Peter Schnittger
minimum number of participants was created by Peter Schnittger
Hi,
is there somewere a parameter where I can define the minimum number of participants?
Cheers
Peter
is there somewere a parameter where I can define the minimum number of participants?
Cheers
Peter
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
7 years 3 months ago #111785
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic minimum number of participants
Hi Peter
This question is not very clear to me. After you define that parameter, how you expect the system to work?
Tuan
This question is not very clear to me. After you define that parameter, how you expect the system to work?
Tuan
Please Log in or Create an account to join the conversation.
- Peter Schnittger
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 7
- Thank you received: 0
7 years 3 months ago #111794
by Peter Schnittger
Replied by Peter Schnittger on topic minimum number of participants
Hi Tuan,
I still have an other app. It shows via coloured dots the status: light green= minimun not reached, dark green = event takes place, red = full
Peter
I still have an other app. It shows via coloured dots the status: light green= minimun not reached, dark green = event takes place, red = full
Peter
Please Log in or Create an account to join the conversation.
- lucy
- Offline
- Junior Member
-
Less
More
- Posts: 20
- Thank you received: 0
7 years 3 months ago #111875
by lucy
Replied by lucy on topic minimum number of participants
It would be better to use yellow/orange for minimum not reached - means it's in danger of being cancelled. Green means go. Probably better to use a different color for full, honestly I would think that red means cancelled.
Please Log in or Create an account to join the conversation.
- Peter Schnittger
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 7
- Thank you received: 0
7 years 3 months ago #111880
by Peter Schnittger
Replied by Peter Schnittger on topic minimum number of participants
how ever, it would be great to see it at a glance.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
7 years 3 months ago #111893
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic minimum number of participants
Unfortunately, it's not supported now. However, if you have a sample, send it to me (screenshot or link). I will think about it and might add support for it in future releases
Regards,
Tuan
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Davide
- Offline
- Junior Member
-
Less
More
- Posts: 31
- Thank you received: 0
7 years 3 months ago #111913
by Davide
Replied by Davide on topic minimum number of participants
That would be very interesting and usefull for my purpose, because the "place availability" would be more visible and immediate

Please Log in or Create an account to join the conversation.
- Christoph
- Offline
- Senior Member
-
Less
More
- Posts: 58
- Thank you received: 2
7 years 1 month ago #113983
by Christoph
Replied by Christoph on topic minimum number of participants
Hello,
I have a use case of minimum number of participants as well. For that I created an extra field. The system should work with that parameter to bring one more step to the event management process:
1.) Some events will not take place if a minimum number of participants are not reached -> Option yes/no in event setting
2.) In the phase before cut-off date or event start date user can register for that event and they will receive a message that their registration has been confirmed but with the added message:
"We will contact you with a final confirmation that the event will take place as soon as we receive the minimum amount of applications for your chosen event."
3.) minimum amount reached until cut-off date -> Final confirmation will be send out to registrants and system updates event status.
minimum amount not reached and cut-off date reached -> Sorry message to registrants that the event won't take place.
Hope that this business case gets considered in the coming updates!
Thank you,
Chris
I have a use case of minimum number of participants as well. For that I created an extra field. The system should work with that parameter to bring one more step to the event management process:
1.) Some events will not take place if a minimum number of participants are not reached -> Option yes/no in event setting
2.) In the phase before cut-off date or event start date user can register for that event and they will receive a message that their registration has been confirmed but with the added message:
"We will contact you with a final confirmation that the event will take place as soon as we receive the minimum amount of applications for your chosen event."
3.) minimum amount reached until cut-off date -> Final confirmation will be send out to registrants and system updates event status.
minimum amount not reached and cut-off date reached -> Sorry message to registrants that the event won't take place.
Hope that this business case gets considered in the coming updates!
Thank you,
Chris
Please Log in or Create an account to join the conversation.
- Petter
-
- Offline
- Senior Member
-
Less
More
- Posts: 62
- Thank you received: 0
7 years 1 day ago - 7 years 1 day ago #115350
by Petter
Replied by Petter on topic minimum number of participants
Hi folks,
I just came across this thread; I've had parts of this for a few years already. Originally the first jQuery below changed the background in the td that displays the number of registrants.
To make this happen I added class="bg_status" to that td and class="avai" to the td where number of available slots are displayed. These edits are in the file public_html/components/com_eventbooking/view/common/tmpl/event_properties.php
These days I have two venues where one is somewhat remote and the other is very remote; for the first I need a minimum of 6 and for the other 12 participants before the events takes place.
I'm live with a work-in-progress using this code entered via custom Javascript in my template:
class="where" added in td after EB_LOCATION
It works already, but needs some more work. All coding provided by the community at stackoverflow.com
Rgds,
Petter
I just came across this thread; I've had parts of this for a few years already. Originally the first jQuery below changed the background in the td that displays the number of registrants.
To make this happen I added class="bg_status" to that td and class="avai" to the td where number of available slots are displayed. These edits are in the file public_html/components/com_eventbooking/view/common/tmpl/event_properties.php
Code:
jQuery(document).ready(function($){
if(jQuery('td.avai').length){
var cell = jQuery('td.bg_status');
var diff = jQuery('td.avai').html();
cell.each(function() {
var cell_value = jQuery(this).html();
if(diff != 12) {
if ((cell_value >= 0) && (cell_value <=11)) {
jQuery(this).css({'background' : '#FF9900'});
} else if ((cell_value >= 12) && (cell_value <=49)) {
jQuery(this).css({'background' : '#99cc00'});
} else if (cell_value >= 50) {
jQuery(this).css({'background' : '#99ccff'});
}
}
});
}
});
These days I have two venues where one is somewhat remote and the other is very remote; for the first I need a minimum of 6 and for the other 12 participants before the events takes place.
I'm live with a work-in-progress using this code entered via custom Javascript in my template:
Code:
jQuery(document).ready(function($){
if(jQuery('td.avai').length){
var cell = jQuery('td.bg_status');
var diff = jQuery('td.avai').html();
cell.each(function() {
var cell_value = jQuery(this).html();
var textValue= jQuery('td.where').html().replace(/\s/g,'');
var array1;
if (textValue==='venue1')
{
array1=[11,12,49,50];
}
else if (textValue==='venue2')
{
array1=[5,6,29,30];
}
if(diff != array1[1]) {
if ((cell_value >= 0) && (cell_value <=array1[0])) {
jQuery(this).css({'background' : '#FF9900'});
} else if ((cell_value >= array1[1]) && (cell_value <=array1[2])) {
jQuery(this).css({'background' : '#99cc00'});
} else if (cell_value >= array1[3]) {
jQuery(this).css({'background' : '#99ccff'});
}
}
});
}
});
class="where" added in td after EB_LOCATION
It works already, but needs some more work. All coding provided by the community at stackoverflow.com
Rgds,
Petter
Last edit: 7 years 1 day ago by Petter. Reason: some more info added
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
7 years 21 hours ago #115358
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic minimum number of participants
Hi Petter
Thanks for sharing the script. However, instead of adding javascript code to add background color like that, I think it's better to modify PHP code directly if you know PHP
Look at the file components/com_eventbooking/view/common/tmpl/event_properties.php , you should see the code which display that information, the the number of available place easily (not having to parse HTML code using jquery like that) and use background color you want
Tuan
Thanks for sharing the script. However, instead of adding javascript code to add background color like that, I think it's better to modify PHP code directly if you know PHP
Look at the file components/com_eventbooking/view/common/tmpl/event_properties.php , you should see the code which display that information, the the number of available place easily (not having to parse HTML code using jquery like that) and use background color you want
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 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.