- Posts: 62
- Thank you received: 0
Remote venue, needs 20 entries before confirmed
- Petter
-
Topic Author
- Offline
- Senior Member
-
Less
More
12 years 10 months ago #28666
by Petter
Remote venue, needs 20 entries before confirmed was created by Petter
For some reason this post have been deleted twice! Not cool! :pinch:
We have a somewhat remote venue, because of this we must have at least 20 entries before an event is confirmed.
The idea is to set up a number of events with an "open" status that switches to "confirmed" once we pass 20 participants (maybe even a color-coded change from "orange" to "green" in the calendar or something similar). If this limit is not met 5 days before, the event is canceled ("red" in the calendar) and those who has signed up will be asked to select another event date or to be refunded.
Could such a feature be implemented in EB? If it is possible to hire you for this modification, what would be the cost?
We have a somewhat remote venue, because of this we must have at least 20 entries before an event is confirmed.
The idea is to set up a number of events with an "open" status that switches to "confirmed" once we pass 20 participants (maybe even a color-coded change from "orange" to "green" in the calendar or something similar). If this limit is not met 5 days before, the event is canceled ("red" in the calendar) and those who has signed up will be asked to select another event date or to be refunded.
Could such a feature be implemented in EB? If it is possible to hire you for this modification, what would be the cost?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
12 years 10 months ago #28710
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Remote venue, needs 20 entries before confirmed
Hi Petter
Yes. This can be customized. However, to be honest, I am too busy these days, there are some open projects and I want to finish them first. So maybe you can find a developer to help you with this customization
I can only come back to work on custom work in the next month.
Tuan
Yes. This can be customized. However, to be honest, I am too busy these days, there are some open projects and I want to finish them first. So maybe you can find a developer to help you with this customization
I can only come back to work on custom work in the next month.
Tuan
The following user(s) said Thank You: Petter
Please Log in or Create an account to join the conversation.
- Petter
-
Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 62
- Thank you received: 0
12 years 10 months ago #28797
by Petter
Replied by Petter on topic Re: Remote venue, needs 20 entries before confirmed
Hi Tuan,
I'm not sure where to find a developer that knows EB well enough to do this, maybe you can recommend someone?
I'm not sure where to find a developer that knows EB well enough to do this, maybe you can recommend someone?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
12 years 10 months ago #28840
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Remote venue, needs 20 entries before confirmed
Hi Petter
Maybe you can post your project requirement on www.freelancer.com . There are many freelancer there can do the work, I believe.
I can only come back to custom development in the next two weeks.
Tuan
Maybe you can post your project requirement on www.freelancer.com . There are many freelancer there can do the work, I believe.
I can only come back to custom development in the next two weeks.
Tuan
Please Log in or Create an account to join the conversation.
- Petter
-
Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 62
- Thank you received: 0
12 years 9 months ago #28914
by Petter
Replied by Petter on topic Re: Remote venue, needs 20 entries before confirmed
Hi Tuan,
I can wait a few weeks, I prefer to have someone with 1st hand knowledge do this. Do you want me to remind you towards the end of the month?
Best Regards,
Petter
I can wait a few weeks, I prefer to have someone with 1st hand knowledge do this. Do you want me to remind you towards the end of the month?
Best Regards,
Petter
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
12 years 9 months ago #28951
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Remote venue, needs 20 entries before confirmed
Hi Petter
Yes. Please remind me because I am too busy and might forgot about this.
Tuan
Yes. Please remind me because I am too busy and might forgot about this.
Tuan
Please Log in or Create an account to join the conversation.
- Petter
-
Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 62
- Thank you received: 0
12 years 9 months ago #29487
by Petter
Replied by Petter on topic Re: Remote venue, needs 20 entries before confirmed
Hi Tuan,
I have fiddled about trying to find a way to add this myself; I got a bit of code over at stackoverflow.com and proceeded by changing
to
at line 120 in mysite.com\components\com_eventbooking\views\event\tmpl\default.php
added the following styles to mysite.com\components\com_eventbooking\assets\js\greybox\gb_styles.css
And have been trying numerous ways to add this:
by adding a separate .js-file, by injecting it into the head of the template, by using plugins MetaMod, Custom JavaScript and jQuery Easy.
But I can't get it working at all... :blink:
I hope you can take a look at it once you have the time as agreed above.
Best Regards
Petter
I have fiddled about trying to find a way to add this myself; I got a bit of code over at stackoverflow.com and proceeded by changing
Code:
<tr>
Code:
<tr id="bg_status">
added the following styles to mysite.com\components\com_eventbooking\assets\js\greybox\gb_styles.css
Code:
.lowerthan20{
background-color:orange;
color:white;
}
.between20and59{
background-color:green;
color:white;
}
.above60{
background-color:red;
color :black;
}
And have been trying numerous ways to add this:
Code:
var cell_status = $('tr.bg_status td');
cell_status.each(function() {
var cell_value = $(this).html();
if ((cell_value >= 0) && (cell_value <=19)) {
$(this).addClass("lowerthan20");
} else if ((cell_value >= 20) && (cell_value <=59)) {
$(this).addClass("between20and59");
} else if (cell_value >= 60) {
$(this).addClass("above60");
}
});
by adding a separate .js-file, by injecting it into the head of the template, by using plugins MetaMod, Custom JavaScript and jQuery Easy.
But I can't get it working at all... :blink:
I hope you can take a look at it once you have the time as agreed above.
Best Regards
Petter
Please Log in or Create an account to join the conversation.
- Petter
-
Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 62
- Thank you received: 0
12 years 9 months ago #29504
by Petter
Replied by Petter on topic [SOLVED] Remote venue, needs 20 entries...
Success!
Turned out I had all the pieces but did not puzzle it right, here's how:
Create a file called
(in a folder called 'js') with the jquery code in it and load it after jquery, right before the closing tab, in your templates 'index.php' file:
jQuery code:
finally, on line 133 of
add
inside td-brackets
So, the only thing remaining is to find out if there are any jQuery conflicts
Turned out I had all the pieces but did not puzzle it right, here's how:
Create a file called
Code:
script.js
Code:
<s***pt src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></s***pt><br />
<s***pt src="js/script.js"></s***pt>
jQuery code:
Code:
var cell = $('td.bg_status');
cell.each(function() {
var cell_value = $(this).html();
if ((cell_value >= 0) && (cell_value <=19)) {
$(this).css({'background' : '#FF9900'});
} else if ((cell_value >= 20) && (cell_value <=59)) {
$(this).css({'background' : '#009966'});
} else if (cell_value >= 60) {
$(this).css({'background' : '#99ccff'});
}
});
finally, on line 133 of
Code:
mysite.com\components\com_eventbooking\views\event\tmpl\default.php
Code:
class="bg_status"
So, the only thing remaining is to find out if there are any jQuery conflicts
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.