• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Blocking some data in calender

Blocking some data in calender 9 years 5 months ago #33029

  • studio04
  • studio04's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 12
Is it possible to block some date in a period of the calender? Like: The restaurant is closed at 3 days: 24,25 and 26 november. The client cannot make a reservation at those days.
The administrator has disabled public write access.

Blocking some data in calender 9 years 5 months ago #33047

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

Blocking some data in calender 9 years 5 months ago #33049

  • studio04
  • studio04's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 12
Thnks! Its working for one date! I have tried to paste a copy of the script, but than nothing is working or the the latest date. How can I fix this for 3 data behind each other?
The administrator has disabled public write access.

Blocking some data in calender 7 years 8 months ago #37288

  • studio04
  • studio04's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 12
It's not working today. I have placed the script into CSS and Javascript:

<script type="text/javascript">
function rsfp_onSelectDate(selectedDate)
{
if(selectedDate == "29.08.2017")
{
alert("No online reservations for this day possible!");
return true;
}
else return false;
}
</script>
All data are now blocked. I recieve no data anymore in the e-email.
I want to block the day: 29.08.2017 at my site lebaffon.nl/reserveer-online

My e-mail:
Nieuwe reservering vanaf de website:
Naam: eric
E-mail: This e-mail address is being protected from spambots. You need JavaScript enabled to view it
Telefoon: 0653717038
Aantal personen: 1
Tijdstip: 16.00 uur
Ander tijdstip:
Datum:
Bijzonderheden: test

I have just changed the script to:

<script type="text/javascript">
function rsfp_onSelectDate(selectedDate)
{
if(selectedDate == "29.08.2017")
{
alert("No reservations this day!");
return false;
}
else return true;
}
</script>
Now are the other days selectable, but still also 29.08.2017
Last Edit: 7 years 8 months ago by studio04.
The administrator has disabled public write access.

Blocking some data in calender 7 years 5 months ago #37574

  • info4683
  • info4683's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 33
  • Thank you received: 1
Hey,
I have the same problem.
Did you solve it?
If yes - how?

Best regards
Martin
Kaum macht man etwas richtig, schon klappt´s..
The administrator has disabled public write access.

Blocking some data in calender 7 years 5 months ago #37578

  • info4683
  • info4683's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 33
  • Thank you received: 1
Ok, I found the solution.

This does NOT work:
if((selectedDate == "09.06.2015")||(selectedDate == "04.07.2015"))

This works:
if((selectedDate == "09.06.15")||(selectedDate == "04.07.15"))

Best regards
Martin
Kaum macht man etwas richtig, schon klappt´s..
The administrator has disabled public write access.

Blocking some data in calender 7 years 5 months ago #37582

  • studio04
  • studio04's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 12
I put this now in the "CSS and Javascript":
<script type="text/javascript">
function rsfp_onSelectDate(selectedDate)
{
if(selectedDate == "25.12.17")||(selectedDate == "26.12.17"))
{
alert(<h3>"Geen online reservering voor deze dag mogelijk!"</h3>);
return true;
}
else return false;
}
</script>

The date is not blocked by a message. I can still send the form. I receive still a message without the date filled in. No blocking.

+++Bedankt voor uw reservering! Dit is een automatisch bericht vanaf de website.

Indien nodig nemen wij contact met u op.
Datum:
Aantal personen: 45
Tijdstip: 18.00 uur
Ander tijdstip:
+++
The administrator has disabled public write access.

Blocking some data in calender 7 years 5 months ago #37583

  • info4683
  • info4683's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 33
  • Thank you received: 1
Hello.
I am not sure but I think you missed an "(".

Try to change line 4:
from
if(selectedDate == "25.12.17")||(selectedDate == "26.12.17"))

to
if((selectedDate == "25.12.17")||(selectedDate == "26.12.17"))

Does this work?
Best regards
Martin
Kaum macht man etwas richtig, schon klappt´s..
Last Edit: 7 years 5 months ago by info4683.
The administrator has disabled public write access.

Blocking some data in calender 7 years 5 months ago #37584

  • info4683
  • info4683's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 33
  • Thank you received: 1
Sorry,

try this code:

<script type="text/javascript">
function rsfp_onSelectDate(selectedDate)
{
if((selectedDate == "25.11.17") || (selectedDate == "26.11.17"))
{
alert ("Geen online reservering voor deze dag mogelijk!");
return false;
}
else return true;
}
</script>
Kaum macht man etwas richtig, schon klappt´s..
The administrator has disabled public write access.

Blocking some data in calender 7 years 5 months ago #37585

  • studio04
  • studio04's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 12
No. All the items are now in the email. No alert, no blocking.
this is the page on the site
lebaffon.nl/reserveer-online

Datum: 25/11/2017
Aantal personen: 10
Tijdstip: 19.00 uur
Ander tijdstip:

I found this: Date format: the format of the selected date. By default d/m/Y H:i is being used.
Must I change the the format? What is H:i
Last Edit: 7 years 5 months ago by studio04.
The administrator has disabled public write access.

Blocking some data in calender 7 years 5 months ago #37586

  • info4683
  • info4683's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 33
  • Thank you received: 1
In my rsform settings it is this (in "Configuration"):

d/m/y H:i:s

Sorry, I´m just a user that tries to help you...
Kaum macht man etwas richtig, schon klappt´s..
The administrator has disabled public write access.

Blocking some data in calender 7 years 5 months ago #37587

  • studio04
  • studio04's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 12
Yes, we must try everything. Thanks for your help.
The administrator has disabled public write access.

Blocking some data in calender 7 years 5 months ago #37588

  • info4683
  • info4683's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 33
  • Thank you received: 1
Is your Date Format in
Your Form --> Komponents --> Calendar --> Attributes
set to: d.m.y ?
Kaum macht man etwas richtig, schon klappt´s..
The administrator has disabled public write access.

Blocking some data in calender 7 years 5 months ago #37589

  • studio04
  • studio04's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 12
I have change it now to d.m.Y, but no change. I make a ticket to ask for a solution.
The administrator has disabled public write access.

Blocking some data in calender 7 years 5 months ago #37590

  • info4683
  • info4683's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 33
  • Thank you received: 1
You can try to use the small "y" - not "Y".

If that doesn´t work, then the best thing you can do is to open a support ticket.
I have no other ideas now.

Good luck!
Kaum macht man etwas richtig, schon klappt´s..
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!