RSS

LuxCal Forum

The place for questions, suggestions and news about the LuxCal Event Calendar

User:   Password:   Remember Me?   
LuxCal Forum / General / Support / Possible to Limit 1 Category to 1 time slot?
Posted:  07 Dec 2011 22:58
Hello,

I'm curious on how I would go about editing the code to limit the time slot to be filled only by 1 category. I.E. If the category "Fun" was at 1:00 pm, no other items with the same category "Fun" can be added to 1:00pm.

Thanks!
Chris
Posted:  08 Dec 2011 00:16   Last Edited By: Roel B.
Hello Chris,

Events are added/edited using the eventform2.php script; this script is called from the event.php script. The event.php script validates the input fields of the eventform2.php script.
So the event.php script should check if the added/edited event dates/times are not conflicting with other events.
So event.php could at this stage call the retrieve() function (retrieve.php file) and ask for all events for that specific day and compare the times.
You did not hear me say it would be easy ;)

Roel