My calendar shows up with the 4 book now slots available, but when I click book now it takes me to the create content page where I see the choice for all the content types including the content type that has the datetime field. My users would get confused with this model. I thought the system would work a little different. Is this the way it is supposed to work or I am missing something? I want the status to change from book now to booked. Thanks.

Comments

kenorb’s picture

I'm quite don't understand what you asking..
Booking Time Slots module will allow you to book timeslots by clicking 'Book Now' and confirming the booking (by content type you can choose which details you want to insert).
In your opinion what you should able to see when you clicked 'Book Now' ?
datetime field is needed to store information about booked times.
After choosing 'Book Now' datetime field field normally should be hidden (apart when you are admin or you have permission 'edit timeslot settings') so it shouldn't confuse the users.
After that when you save that content type, your slot will change to 'Booked'.
Can you describe more which functionality are you expecting?

kenorb’s picture

See screenshot for more details: http://drupal.org/node/498620

ddbell’s picture

When I click on Book Now, the content types show, I click on Tee_Time content type and enter Title, DateTime, and the following happens.

http://freewaygolfclub.com/calendar/2009-06-22

The entries go in the All Day area, the Book Now status does not change. I tried to book two tee times. Please help. Thanks.

kenorb’s picture

Probably you need datetime field instead of date.
Do you have datetime field and you've selected it on Settings Page?
If yes, probably you have no 'Date To' selected, please activate 'Date To', and it will be calculated automatically.

ddbell’s picture

The datetime field is selected on the timeslot configuration page under "Site Configuration". I am not sure where to find the 'Date To' activation you are referring to. Thanks.

ddbell’s picture

Can you also send me a link to a work page where I can actually book a timeslot? This would help me see the correct process so that I know what to expect. Also, thanks for your prompt responses.

kenorb’s picture

'Date To' you will find in field settings.
Content Types, Manage Fields, Select you Datetime field and Configure.
If you don't have 'Date To' then module don't know how long even should takes.
I haven't tested it in this way, but it could be improved.
I'll send you in private working page where you can compare your settings.

ddbell’s picture

Thanks for your support. I look forward to getting your working page to see exactly how this should work. In the meantime, this is the information that I am dealing with. A round of golf can have up to 4 golfers to complete a foursome. This part seems to show fine on the calendar. Tee times are spread eight minutes apart and the round of golf should last 4-5 hours. Looking at the setting for 'Date To' please clarify based on the numbers that I just gave you. Thanks.

kenorb’s picture

StatusFileSize
new108.26 KB

See attachment and green circle where you should activate 'Date To'.
When you Book a slot, it will be hidden. It's just for a storage method, when event starts and when it will finish.

ddbell’s picture

Thanks for the information. I selected the required entry and still the system does not change the "Book Now" status. I know that it is something simple that I am missing. Please help. This is very important to me. Thanks.

ddbell’s picture

Thanks. Ok, I see. One main difference is that your working model automatically opens your content type with the calendar dates set when you click on "Book Now". My "Book Now" opens the listings of content types like there is no direct connection to open my Tee Time content type automatically with the dates and times pre-populated. Thanks.

kenorb’s picture

Are you sure that you selected the right content type on Booking Timeslots settings page?
On admin/settings/booking_timeslots/form_settings

ddbell’s picture

Yes, I created you an admin account so that you could see for yourself. Maybe I missed something. I will email it to you. Thanks.

kenorb’s picture

Title: Book Now not working » Book Now link doesn't work when content type contain underscore
Category: support » bug
Priority: Critical » Normal

I found the reason.
It's because your content type contain underscore (_) in the name and Drupal replace this underscore to dash (-) when generating the URL link, so the module generate link with the original name instead of converting it in the same way as Drupal does.
It have to be fixed in TPL file (calendar-day.tpl.php), but first we need to find out from where it's converted to dash and how we can convert it in the same way.
Tomorrow I'll make quick view.

ddbell’s picture

Thanks. I will just make a new content type without the underscore(_). I will let you know how that works tomorrow. Thanks again for all your support. It is greatly appreciated.

ddbell’s picture

The "Book Now" is connecting to the new "TeeTime" content type without the underscore. The problem is that the From & To time frame only increase 1 hour and a half when the settings configuration for "TimeSlot" is 4 hours. In addition, the "Book Now" status is not changing to "Already Booked".

Thanks.

kenorb’s picture

You need to edit your calendar view (admin/build/views/edit/calendar), and in section Arguments you have to select proper 'Content: Date' field. Date From is enough.
Because then in slots you have only time of node update.

ddbell’s picture

I changed the argument to "Date From" and still the "Book Now" status is not changing. Please try yourself with the admin id I created for you. Also, the time span for "From Date" to "To & Date" is 1:30 minutes instead of 4 hours. Thanks.

xaviviena’s picture

I also see 1h30min increment between From date and To date when I log in as an admin.

Another question: Is it possible to book more than one timeslot at the same time? for example, booking from 9:00 to 12:00 what means 3 timeslots in my calendar.

kenorb’s picture

xaviviena:
- as default there is 1h:30m, you can change it from Settings Page (probably from version 1.1 it's 1h00m)
- you can, increase your timeslot value from Settings Page - if you don't see it, please upgrade to 1.1
So in your case module is working correctly, this issue is that doesn't work at all in some cases, if there is different thing that doesn't work in your case, please raise a new support ticket.

kenorb’s picture

ddbell:
It's because you turned on too many modules which you probably didn't know what they are doing.
Especially Content Permissions which set your permission separately on each field, that's why datetime field was missing.
And you don't need Date for PHP4, because you have PHP5, so I've disabled it as well.
Always turn on the modules that you really need.

So now booking slots are added correctly.

ddbell’s picture

You are awesome. I want to talk with you about working with us on a special project. Consider yourself in. I will let you know once the budget is approved. Thanks for all your help and consideration.

kenorb’s picture

ddbell:
Not a problem, it was helpful for me as well to know which problems people have with this module.
I'm ready to help you with your project as well.

This thread should be open unless issue with underscore names will be fixed.

ddbell’s picture

Thanks. I did forget to address the increment of time between time slots. If you go to the site you will notice that the tee times increment every hour, however, the timeslots should increment every eight minutes. For example the time slots should read 6:00am, 6:08am, 6:16am, etc. Every 8 minutes a new foursome should be teeing off from hole #1. Tee times usually end around 3pm. I placed 8 minutes in the timeslot settings configuration but that did not seem to work. Thanks.

kenorb’s picture

You need to change Time grouping in your Calendar view in View settings (wheel).
Then select Custom and try to insert your custom times.
It should give you list incremented for your own purpose, but I haven't tested yet booking_timeslots if it will work correctly, so you can test it and tell me if this worked.

ddbell’s picture

The site is giving me this error. They started adding the tee times yesterday and this is the message that I am receiving.

user warning: Got error 28 from storage engine query: SELECT DISTINCT b.* FROM blocks b LEFT JOIN blocks_roles r ON b.module = r.module AND b.delta = r.delta WHERE b.theme = 'freeway' AND b.status = 1 AND (r.rid IN (1) OR r.rid IS NULL) ORDER BY b.region, b.weight, b.module in /home/btrubel0/public_html/freewaygolfclub.com/modules/block/block.module on line 407.

I can not even log in as the admin to do anything. Thanks.

kenorb’s picture

ddbell:
You reach quota limit or server is run out of space.
Upgrade your account, change your hosting provider or contact server admin.

ddbell’s picture

Thanks.

ddbell’s picture

Thanks. We solved the server quota issue, it was there tmp folder on the main server.

I found the place to change the custom timing. Will this remove all existing tee time reservations or just add the additional time slots? Thanks.

kenorb’s picture

It will just add time slots.

ddbell’s picture

Thank you very very much. You have been extremely helpful.

ddbell’s picture

I added the following times in the custom area and it would not save:

00:00:00,06:00:00,06:08:00,06:16:00,06:24:00,06:32:00,06:40:00,06:48:00,06:56:00,07:00:00,07:04:00,07:12:00,07:20:00,07:28:00,07:36:00,07:44:00,07:52:00,08:00:00,08:08:00,08:16:00,08:24:00,08:32:00,08:40:00,08:48:00,08:56:00,09:00:00,09:04:00,09:12:00,09:20:00,09:28:00,09:36:00,09:44:00,09:52:00,10:00:00,10:08:00,10:16:00,10:24:00,10:32:00,10:40:00,10:48:00,10:56:00,11:00:00,11:04:00,11:12:00,11:20:00,11:28:00,11:36:00,11:44:00,11:52:00,12:00:00,12:08:00,12:16:00,12:24:00,12:32:00,12:40:00,12:48:00,12:56:00,13:00:00,13:04:00,13:12:00,13:20:00,13:28:00,13:36:00,13:44:00,13:52:00,14:00:00,14:08:00,14:16:00,14:24:00,14:32:00,14:40:00,14:48:00,14:56:00,15:00:00,16:00:00,17:00:00,18:00:00,19:00:00,20:00:00,21:00:00,22:00:00,23:00:00

Each foursome tees off every eight minutes from 6:00am - 3pm.

Not sure what I did wrong. Thanks.

kenorb’s picture

What do you mean 'it would not save'?
It looks odd, there is some error, or there is no reaction on Save button?
I think your theme is not proper themed and some buttons are not visible enough on Views when saving those settings.
Can you activate those 8min timing and I'll check that.

ddbell’s picture

What should I do to activate the 8 min timing outside of what I tried already. Is there something that I missed to properly setup the theme to work correctly? Thanks.

kenorb’s picture

Probably this TPL file supports only half-hour and hour slots, I'll test it soon to support custom timing.

ddbell’s picture

Thanks.

ddbell’s picture

Can you provide an estimated time for the custom timing? My client can not use the 1 hour time slots as is. They need the custom timing setup. I will pay you if I have to in order to get their site functional. Thanks.

kenorb’s picture

Hopefully next week.

ddbell’s picture

Thank you,

Please test with this sample of 8 minute segments:

00:00:00,06:00:00,06:08:00,06:16:00,06:24:00,06:32:00,06:40:00,06:48:00,06:56:00,07:00:00,07:04:00,07:12:00,07:20:00,07:28:00,07:36:00,07:44:00,07:5

The tee times actually go from 6am to 3pm in 8 minute segments.

Thanks.

kenorb’s picture

Added support for custom timing:
http://drupal.org/cvs?commit=237256

kenorb’s picture

validation and access improvements:
http://drupal.org/cvs?commit=237320

ddbell’s picture

Thanks,

However, the problem still remains the same. To keep things simple, if you edit the view, click on "day view", click on icon next to style calendar, click on "Time Grouping", and select "Half Hour", I can not save the setting and then save the view changes. It keeps toggling back and forth between "default" and "override".

I did not even put in my custom timing yet because it will not save. If you can log in and fix this I will pay you for it. At this point, I do not know what I am doing wrong.

Here are my custom times:
00:00:00,06:00:00,06:08:00,06:16:00,06:24:00,06:32:00,06:40:00,06:48:00,06:56:00,07:00:00,07:04:00,07:12:00,07:20:00,07:28:00,07:36:00,07:44:00,07:52:00,08:00:00,08:08:00,08:16:00,08:24:00,08:32:00,08:40:00,08:48:00,08:56:00,09:00:00,09:04:00,09:12:00,09:20:00,09:28:00,09:36:00,09:44:00,09:52:00,10:00:00,10:08:00,10:16:00,10:24:00,10:32:00,10:40:00,10:48:00,10:56:00,11:00:00,11:04:00,11:12:00,11:20:00,11:28:00,11:36:00,11:44:00,11:52:00,12:00:00,12:08:00,12:16:00,12:24:00,12:32:00,12:40:00,12:48:00,12:56:00,13:00:00,13:04:00,13:12:00,13:20:00,13:28:00,13:36:00,13:44:00,13:52:00,14:00:00,14:08:00,14:16:00,14:24:00,14:32:00,14:40:00,14:48:00,14:56:00,15:00:00,16:00:00,17:00:00,18:00:00,19:00:00,20:00:00,21:00:00,22:00:00,23:00:00,24:00:00

kenorb’s picture

It's because you have very weird theme and Views are confusing (#33).
You have two Save buttons, one is inside which is unthemed, try to press this Save, and after Save the whole View. I don't know if this will help, if not, try different theme for admin and retry it if this still will be the same.

ddbell’s picture

Thanks. You were correct. I switched themes and it worked. What in particular should I asked them to fix about the template?

Thanks Again.

kenorb’s picture

You can say them that buttons on Views configuration doesn't look likes a button. If you editing some option through AJAX, there are two buttons Save, one is unthemed.

ddbell’s picture

What view and where in the view exactly? Thanks.

kenorb’s picture

StatusFileSize
new49.17 KB

See attached screenshot.
Blue circle - not needed space.
Green circle - is there are some buttons?

Canine Coaches’s picture

I was just checking out this module. It looks great by the way. I ran across this post. I believe it is the pathe auto module that converts. Go to admin>url aliases>automated alias settings>general settings From there you can change the seperator and choose which objects are replaced by the seperator. Hope that helps.

this was a response to #14

kenorb’s picture

Component: Code » booking_timeslots
Status: Active » Needs review
StatusFileSize
new421 bytes
kenorb’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.