This module is great, and I think it is a great addition to the Drupal Family of Modules. There are a lot of uses for this, so I applaud you in what you've done here.
Here are my thoughts:
1. It would be awesome if there was a way (on a per content type basis) to specify what days of the week the bookings should be available. I found the issue that talked about creating a content type called 'available' and adding that to the days that you'd like to omit from being able to book. While this worked users can still go to that day and book a time slot. Anyway, I understand that this would probably a little bit more work, but I thought I would throw it out there. It would also be cool if it were just a views style that could be set with a settings page on that specific view. The user could go in and customize what options are set. I'd also be open to a simple way of doing this through Views as well, if it isn't a ton of work. At some point I'm assuming that this will be a highly requested feature. With the temporary fix that I mentioned above it's possible that you could have it set-up to look for a certain content type (chosen by the user in the Booking config page) that would turn off the Booking on that day completely if there were an event there. With that you could use the Date Repeat API and remove any days you wanted and make it consistent. Also would be nice if instead of showing the event title and time (all day) that the day would simple display "No Bookings Available" to keep things clean.
2. This one goes along with the one above. On the settings page it'd be great (per content type) to be able to remove certain hour blocks from the availability time. So one could select from 9am to 6:30pm omitting lunch time from 11:30am to 1:00pm.
These are just suggestions. Were in the middle of trying to implement this module to solve a problem we have with potential students registering to come take a Certified Nursing Assistant placement exam. We're trying to make it really easy on the user. So far your module has gotten us 95% of the way there. This is the only feature that we're sitting back and watching for. (If I were a coder then I would definitely try to do it myself, but alas, I am not.)
Thanks in advance. If you have some temporary solutions that would get us by then I would appreciate it! Thanks again for a great module!
--Andrew
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | Picture 1.jpg | 36.55 KB | amariotti |
Comments
Comment #1
kenorb commentedThank you for your opinion and I'm happy that this module was helpful.
Features 1 and 2 could be reached in the same way by placing/booking some non-available slots in other content type to make them unavailable.
I will need this feature as well so probably it will be available soon after it will be more clear how it should looks like from technical perspective.
I think the biggest problem is to calculating the time conflicts between two sources (similar to resource_conflict module), that's why the look is provided by timeslots to not calculating anything.
I'll need to find some algorithm which will solve that problem (probably by preparing quite complicated database query) with reasonable performance.
There are couple of issues about that:
http://drupal.org/node/135711#comment-958243
If you will find some other similar solutions, I'm ready to implement them.
Comment #2
amariotti commentedAny idea as to why the content type solution to making days unavailable isn't working in Day and Week Mode? The "book now" text is showing up as it normally does. Ideas?
Comment #3
kenorb commentedI'm not sure what do you mean.
You mean this solution? http://drupal.org/node/455652#comment-1601448
Patch is not working properly and it needs additional work.
Comment #4
amariotti commentedI mean that when I'm viewing in Month View those days don't have the "Book Now" link, but when I select that day (viewing in Day View) all of the time show up as they are all available. It sounds like my month.tpl file is working, but my day and week ones are not. Does that make sense?
Comment #5
amariotti commentedAlso, I never applied that patch to the module. It appears that some of the patch has been applied already.
Comment #6
kenorb commentedYou mean that on Day views there are links to Book Now in the past?
Yes, that's true. You shouldn't book slots in the past, it should be fixed soon be some condition.
Comment #7
threaders commentedI had the same problem with making days unavailable. It turns out the granularity of the datetime field has to include seconds. Otherwise an "all day" event is "all times" on the day view. Set the time from 00:00:00 to 23:59:59 to work around this.
Comment #8
amariotti commentedPerfect! I got that working. Now another issue.
I've created a node with the 'Available' content type that is set to be from noon to 2:30PM each day. For some reason the "book now" links are still appearing in Day View on those time slots. What am I missing here? (see attached screenshot)
Comment #9
threaders commentedThe "unavailable" only works for a full day at the moment, due to how timeslots are worked out. I would suggest booking each slot as a normal booking, therefore making it unavailable.
Comment #10
kenorb commentedA.d. 2
Added in development version.
Added new 'Fields with non-available dates'.
You can add new content type with at least one field (date or datetime).
Then by adding new dates, you excluding them from booking timeslots.
You may try to download latest development version to test it.
Comment #11
covergirl commentedI downloaded the booking_timeslots-6.x-1.x-dev module and tried to install it on my site, got the following error:
Fatal error: Call to undefined function install_content_copy_import_from_file() in ...sites/all/modules/booking_timeslots/modules/custom_timeslots/custom_timeslots.install on line 49
Any ideas?
Cheers
Comment #12
kenorb commentedTry following workaround:
disable and uninstall the module, enable CCK first (Content) -> Save, then enable again this module
Comment #13
gfconsult commentedI tried to install Booking Time Slots vers 6.x-1.x-dev but I always got the error:
Fatal error: Call to undefined function install_content_copy_import_from_file() in ...sites/all/modules/booking_timeslots/modules/custom_timeslots/custom_timeslots.install on line 49
I tried also to set it as installed in system table,but when I try to create a custom time slot I get a form with just a date (no time) that does not create any timeslot (I mean that I always see the message tht advice me to create al least one custom timeslot in the settings page)
Any ideas?
Thanks in advance
Giuseppe
Comment #14
kenorb commented#13: please install http://drupal.org/project/install_profile_api module, I forgot to include dependency, I'll fix that in the next version
Comment #15
kenorb commentedhttp://drupal.org/cvs?commit=309714
Comment #16
gfconsult commentedHi kenorb,
thank you for your reply.
I installed install_profile_api module but I got the message:
Fatal error: Call to undefined function content_copy_import_form() in .../public_html/sites/all/modules/install_profile_api/contrib/content_copy.inc on line 32
I'm definitely missing something important!!
Please help
Comment #17
kenorb commentedHi gfconsult,
You need to enable content_copy submodule of CCK module, to activate Content importing:)
Most of the website should have enabled it. Sorry for that.
It's fixed now.
http://drupal.org/cvs?commit=310178
Comment #18
kenorb commentedNo comments about last commit.
Supposing that it worked.