This is great, found the calendar a few weeks ago and i must say that chris did good work. It looks very professional and it is working very well indeed.
Now, for my requirements i would be happy to get a hint or a bit assistance from your side: Many user are loggin in into my side and all of them should see their own calendar to state their own availability (not the availability from a hotel or appartement). My first idea was to change the ID_ITEM to the USERNAME of the member. Therefore i made the changes in the functions.inc.php, update_cal.ajax.php and the BOOKINGS tables (renamed "id_item" to "username"). I also handover the username in a seesion to the calendar.php:
- Code: Select all
<?php
include("include/session.php");
?>
I grabbed an Idea from the topic "login for member only". However, it doesn't work for me, even If i try to play with this part:
- Code: Select all
if(isset($_REQUEST["username"]))
define("USERNAME", $_SESSION["username"]);
else define("USERNAME", 0);
Any Idea, how to include the USERNAME from the session in the scipt, so that people can see only their own availabilities?
Best regards, Texx