Wondering if you can help me here.
I am going to be setting up multiple users, who will have separate
How would I go about displaying only a certain user's calendars?
Say for example I have Guesthouse A, Guesthouse B etc... and these
guesthouses have their own pages. How do I display only Guesthouse A's
calendars on their respective page.
I hope you understand what I am trying to do.
Thank-you and great program!
I'm sure that you have realized that you can add more users to the
administration and each one will only be able to administer their own
calendar. Ie they won't be able to see or modify other users calendar
nor can they adjust the general settings (configuration, booking
Once you have created the users and they have set up their calendar
(or you have set it up for them) you will then need to identify their
calendar to be able to show it in the web along with their guesthouse
To do this you need to discover what "id" the calendar has and this is
what is missing from the item list - a column showing the "id".
However, you can still get this id by simply looking at the "url" when
you click on any of the items to modify them. You should see
something like this:
the "id" is what you need to identify the calendar for each
What you then need to do is modify the calendar code (ie the page that
actually shows the calendar) so that it uses this id rather than
simply letting the code find the first item in the data base.
To do this you simply add this line BEFORE you include the cal.inc.php
(clearly you need to change the number to the id of the calendar that
you actually want to show)
That is all you need to do.
To sum up:
1. Add user
2. Add user calendar (from user account)
3. Identify calendar item "id"
4. Modify code that shows the calendar to use this "id" rather than
I hope you can follow these instructions. It is clearly something
that I need to make simpler and, more importantly document... there is
just so much still to do....
Thanks for your comments and I hope that you can get it to work as you