DMXzone Calendar 2 Support Product Page
Answered
Cannot stop dates from being selected
Asked 11 Feb 2015 20:24:13
1
has this question
11 Feb 2015 20:24:13 Pete Manning posted:
I would like to stop dates that do not have a "event" from being selectable. I have found a report - Dynamically block reserved dates in database - which seems similar to what I wish to do - www.plan-it-web.co.uk/clients/OTUKPROMO/Tests/calendar_test.php
I only want the dates highlighted in red to be selectable - I cannot find any documentation on the condition required for this and anything I have tried fails to work.
Replies
Replied 11 Feb 2015 21:10:22
11 Feb 2015 21:10:22 Pete Manning replied:
Adding a condition such as $row_Recordset1['event_date_from'] != "" does not work - the Calendar appears as a one line.
Replied 12 Feb 2015 08:53:11
12 Feb 2015 08:53:11 Teodor Kuduschiev replied:
Hello, the condition depends on what you need to achieve, but i am not sure you get the idea of the conditional formatting. It is only used for dates that are stored in the database. You cannot conditionally format a calendar field that does not have a date coming from the database...
Usually this function is used to block reserved dates from being selected by the users.
So if your date in the database is Feb 22 2015, you can conditionally format it, apply a css class to it, select whether it is selectable or not, but you cannot format the rest of the calendar dates.
Usually this function is used to block reserved dates from being selected by the users.
So if your date in the database is Feb 22 2015, you can conditionally format it, apply a css class to it, select whether it is selectable or not, but you cannot format the rest of the calendar dates.
Replied 12 Feb 2015 08:56:48
12 Feb 2015 08:56:48 Pete Manning replied:
Hi Teodor,
" i am not sure you get the idea of the conditional formatting" - perhaps that's because there is no documentation anywhere that describes what is for.
"Usually this function is used to block reserved dates from being selected by the users." - I would like the opposite - so that any "reserved dates" ie dates that are not in the database are not selectable by the user.
According to the other report "Dynamically block reserved dates in database " this should be possible or do I misunderstand that as well?
" i am not sure you get the idea of the conditional formatting" - perhaps that's because there is no documentation anywhere that describes what is for.
"Usually this function is used to block reserved dates from being selected by the users." - I would like the opposite - so that any "reserved dates" ie dates that are not in the database are not selectable by the user.
According to the other report "Dynamically block reserved dates in database " this should be possible or do I misunderstand that as well?
Replied 12 Feb 2015 09:02:16
12 Feb 2015 09:02:16 Teodor Kuduschiev replied:
Hi Pete,
The video and the user's manual clearly describes what it does. By the way this is a date picker, not an event calendar, so the reserved dates are the ones that user selected to stay at your hotel, for example. That's why it is important to have those blocked, not the free ones (not reserved by anyone).
Dynamically block reserved dates in database does exactly what i described above - it blocks the dates that are already picked/reserved by someone else, so it won't allow you to reserve dates in the same period as the room in the hotel is not free. Otherwise this option would have been called: "Dynamically block FREE dates in the database"
The video and the user's manual clearly describes what it does. By the way this is a date picker, not an event calendar, so the reserved dates are the ones that user selected to stay at your hotel, for example. That's why it is important to have those blocked, not the free ones (not reserved by anyone).
Dynamically block reserved dates in database does exactly what i described above - it blocks the dates that are already picked/reserved by someone else, so it won't allow you to reserve dates in the same period as the room in the hotel is not free. Otherwise this option would have been called: "Dynamically block FREE dates in the database"
Replied 12 Feb 2015 09:40:59
12 Feb 2015 09:40:59 Pete Manning replied:
So there is no way of doing this using the Calendar?
Replied 12 Feb 2015 09:43:03
12 Feb 2015 09:43:03 Teodor Kuduschiev replied:
No, you cannot block dates that are not reserved (stored in the database) from being selected in the DMXzone Calendar 2. This has never been a feature of the extension.
Replied 12 Feb 2015 10:05:43
12 Feb 2015 10:05:43 Pete Manning replied:
"You cannot conditionally format a calendar field that does not have a date coming from the database... "
Which means I can conditionally format a calendar field that does have a date coming from the database?
Which means that the condition should state:
if the date exists, make it selectable - which logically means if it does not exist then it should automatically not be selectable?
If date in calendar -> set selectable else set unselected.
www.dmxzone.com/support/19516/topic/58499
www.dmxzone.com/support/19516/topic/58533 - this asks the same question and you suggest that it is possible -> "<?php if ($row_reservecabin['agree'] =='yes') { ?>"
Sadly both these posts are over a year old so none of the links work plus replies just "stopped".
so the condition cannot include IF statements either? - what is that for then ? - is there no documentation about this?
Replied 12 Feb 2015 10:17:14
12 Feb 2015 10:17:14 Teodor Kuduschiev replied:
Hi Pete,
I thing you do not understand the idea of conditional formatting...
I am not sure what exactly is not clear in the explanation.
1. You CAN ONLY format (which includes adding css class, making the field clickable or not, adding a condition) the calendar fields that have dates from the database!
2. You CANNOT format the rest of the calendar fields.
There is no logical reason to block any FREE dates (not reserved/stored in the database) from being selectable... Have you ever used any reservation system?!
www.dmxzone.com/demo/php/DMxzoneCalendar2/WiterResort/index.php check this showcase.
You cannot click on the dates that are RESERVED ( stored in the database) as someone else selected them! You can only select FREE dates... that's how the datepickers have been always been working.
The topics you mention explain exactly the same....
As for the condition - you can apply different conditions to different RESERVED dates. Example:
You have 3 people working for you, and each of them can use 1 day off in December, so if John selects 12.12.2015 it gets one class(blue color), if Peter reserves 14.12.2015 it gets another class (red color) etc...
That's a datepicker it's idea is to select dates and not be able to selects dates that are already reserved by someone else!
PS - i think you are confusing a Datepicker with Event Calendar.
I thing you do not understand the idea of conditional formatting...
I am not sure what exactly is not clear in the explanation.
1. You CAN ONLY format (which includes adding css class, making the field clickable or not, adding a condition) the calendar fields that have dates from the database!
2. You CANNOT format the rest of the calendar fields.
There is no logical reason to block any FREE dates (not reserved/stored in the database) from being selectable... Have you ever used any reservation system?!
www.dmxzone.com/demo/php/DMxzoneCalendar2/WiterResort/index.php check this showcase.
You cannot click on the dates that are RESERVED ( stored in the database) as someone else selected them! You can only select FREE dates... that's how the datepickers have been always been working.
The topics you mention explain exactly the same....
As for the condition - you can apply different conditions to different RESERVED dates. Example:
You have 3 people working for you, and each of them can use 1 day off in December, so if John selects 12.12.2015 it gets one class(blue color), if Peter reserves 14.12.2015 it gets another class (red color) etc...
That's a datepicker it's idea is to select dates and not be able to selects dates that are already reserved by someone else!
PS - i think you are confusing a Datepicker with Event Calendar.
Replied 12 Feb 2015 10:55:30
12 Feb 2015 10:55:30 Pete Manning replied:
There is no reason to SHOUT - it is rude and very unprofessional
I understand perfectly what the calendar is for, however as I said in my original post - there is no documentation that explains this clearly. Which is precisely why myself and the other users are confused by what it is for.
"There is no logical reason to block any FREE dates (not reserved/stored in the database) from being selectable... Have you ever used any reservation system?!"
I don't want a reservation system. As I have clearly shown I wish to advertise events - all I would like is that the default calendar dates are unselectable and IF the dates are picked from the database these are selectable - I cannot understand why this is not possible considering all the details on your site
"With the conditional date formatting, specify as many dates and/or date ranges and style them to indicate which are available, busy or have special meanings. "
No where does this state that you cannot disable dates not within the database.
A calendar suggests it can do a lot more than just be used for a reservation system. Perhaps the description should be changed to be "A Calendar for a reservation system" and not just "Calendar".
"i think you are confusing a Datepicker with Event Calendar. "
www.dmxzone.com/go/19976/add-events-with-date-and-time-in-ajax-event-calendar
www.dmxzone.com/go/19542/holiday-reservation-system-with-dmxzone-calendar-2
How is that any confusion? - you have created a video that does precisely what I have asked about. No where do you explain that the dates that are not "configured" cannot be selected.
The issue is not what I (or the others) understand or not, the issue is how DMXZone have promoted the extension.
Anyway I will try to think of another solution - thanks for explaining
I understand perfectly what the calendar is for, however as I said in my original post - there is no documentation that explains this clearly. Which is precisely why myself and the other users are confused by what it is for.
"There is no logical reason to block any FREE dates (not reserved/stored in the database) from being selectable... Have you ever used any reservation system?!"
I don't want a reservation system. As I have clearly shown I wish to advertise events - all I would like is that the default calendar dates are unselectable and IF the dates are picked from the database these are selectable - I cannot understand why this is not possible considering all the details on your site
"With the conditional date formatting, specify as many dates and/or date ranges and style them to indicate which are available, busy or have special meanings. "
No where does this state that you cannot disable dates not within the database.
A calendar suggests it can do a lot more than just be used for a reservation system. Perhaps the description should be changed to be "A Calendar for a reservation system" and not just "Calendar".
"i think you are confusing a Datepicker with Event Calendar. "
www.dmxzone.com/go/19976/add-events-with-date-and-time-in-ajax-event-calendar
www.dmxzone.com/go/19542/holiday-reservation-system-with-dmxzone-calendar-2
How is that any confusion? - you have created a video that does precisely what I have asked about. No where do you explain that the dates that are not "configured" cannot be selected.
The issue is not what I (or the others) understand or not, the issue is how DMXZone have promoted the extension.
Anyway I will try to think of another solution - thanks for explaining
Replied 12 Feb 2015 11:03:10
12 Feb 2015 11:03:10 Teodor Kuduschiev replied:
The description is pretty clear. And i am not shouting, i am highlighting the words so you can understand this better. You are the first person that actually does not understand the idea of blocking reserved dates ...
The videos you mention pretty much confirm what i am explaining so is the description and manual of the extension. Also the first sentence says quite the same:
"The completely rewritten DMXzone Calendar 2 is the best Dreamweaver solution when you need a date picker."
Your comments once again prove that you need an Event Calendar, and no a datepicker...
The videos you mention pretty much confirm what i am explaining so is the description and manual of the extension. Also the first sentence says quite the same:
"The completely rewritten DMXzone Calendar 2 is the best Dreamweaver solution when you need a date picker."
Your comments once again prove that you need an Event Calendar, and no a datepicker...
Replied 12 Feb 2015 11:18:17
12 Feb 2015 11:18:17 Pete Manning replied:
"And i am not shouting" - using CAPITAL letters in that way is considered shouting. I have worked in software support for over 20 years and if I SHOUTED at customers in this way I would lose my job.
"You are the first person that actually does not understand the idea of blocking reserved dates "
I am not the first person not to understand this as I have already clearly highlighted. I have explained clearly more than once what I wish to do - I have based this on the idea presented in the videos (specifically the connection with the event calendar) which "suggests" it will do what I require - but as the videos are cleverly edited, clearly I have got the wrong impression.
OK so I need a Event Calendar but as the DMXZone event calendar is no longer in development and does not work with DW CC 2014.1 then clearly I cannot use DMXZone extensions- I am therefore going to have to seriously reconsider my subscription.
"You are the first person that actually does not understand the idea of blocking reserved dates "
I am not the first person not to understand this as I have already clearly highlighted. I have explained clearly more than once what I wish to do - I have based this on the idea presented in the videos (specifically the connection with the event calendar) which "suggests" it will do what I require - but as the videos are cleverly edited, clearly I have got the wrong impression.
OK so I need a Event Calendar but as the DMXZone event calendar is no longer in development and does not work with DW CC 2014.1 then clearly I cannot use DMXZone extensions- I am therefore going to have to seriously reconsider my subscription.
Replied 12 Feb 2015 12:05:06
12 Feb 2015 12:05:06 Teodor Kuduschiev replied:
The topics you mentioned are absolutely different cases than yours. You obviously did not watch the videos detailed as nowhere it is explained that the calendar has any other options than the ones described.
You cannot expect it to do something, when it is not described. Expecting to be able to block FREE dates (which for a datepicker is absolutely out of any logic) without such a functionality being described, is the same as expecting the calendar to play MP3 files...instead of showing dates.
I like your funny comment about the videos being "cleverly edited" It made me smile!
As for the Ajax Event Calendar - the current version is discontinued and we are not planning to update it, as it was developed long before DW deprecated their server behaviors. A new version of Ajax Event Calendar will surely be developed in the future so it will be compatible with the HTML5 Data Bindings (the same as the new DMXzone Calendar coming next week)
The cool thing about the subscriptions is that you can cancel yours if you are not happy with it.
You cannot expect it to do something, when it is not described. Expecting to be able to block FREE dates (which for a datepicker is absolutely out of any logic) without such a functionality being described, is the same as expecting the calendar to play MP3 files...instead of showing dates.
I like your funny comment about the videos being "cleverly edited" It made me smile!
As for the Ajax Event Calendar - the current version is discontinued and we are not planning to update it, as it was developed long before DW deprecated their server behaviors. A new version of Ajax Event Calendar will surely be developed in the future so it will be compatible with the HTML5 Data Bindings (the same as the new DMXzone Calendar coming next week)
The cool thing about the subscriptions is that you can cancel yours if you are not happy with it.
Replied 12 Feb 2015 12:43:47
12 Feb 2015 12:43:47 Pete Manning replied:
"I like your funny comment about the videos being "cleverly edited" - it was not a "funny" comment but is actually the truth - watch it again - the video (Ajax event calendar with calendar) clearly does not demonstrate that any dates that are not "highlighted" can actually be selected.
"You obviously did not watch the videos detailed as nowhere it is explained that the calendar has any other options than the ones described. "
I have watched the videos more times than I care to - and did so when they were originally released.
The details provided for the calendar do suggest what I have stated and if you cannot see that the perhaps you need someone from outside your company to point out the mistakes instead of just not accepting them.
The topics I mention are no different to mine at all - in fact the use of a if statement within the PHP is clearly shown.
"The cool thing about the subscriptions is that you can cancel yours if you are not happy with it."
Do not worry that is something I am seriously considering based on your responses and attitude.
Anyway I am not going to continue with this post as clearly you cannot be bothered to actually help but just want to argue a point instead of assisting.
"You obviously did not watch the videos detailed as nowhere it is explained that the calendar has any other options than the ones described. "
I have watched the videos more times than I care to - and did so when they were originally released.
The details provided for the calendar do suggest what I have stated and if you cannot see that the perhaps you need someone from outside your company to point out the mistakes instead of just not accepting them.
The topics I mention are no different to mine at all - in fact the use of a if statement within the PHP is clearly shown.
"The cool thing about the subscriptions is that you can cancel yours if you are not happy with it."
Do not worry that is something I am seriously considering based on your responses and attitude.
Anyway I am not going to continue with this post as clearly you cannot be bothered to actually help but just want to argue a point instead of assisting.