Hi there mac and welcome to the forum

You are right, the documentation is lacking

bit by bit I am trying to improve this script, not only in the way it works but also in the way it is "packaged" so this is something I will have to add to the instructions file.
It is actually rather simple, hopefully you will have spotted the call to the function that actually draws the calendar: "draw_cal()"
This requires several variables, the last one of which is the "editable state" of the calendar - this can either be "1" - ie editable or "0" - non-editable.
Calendar in edit mode:
- Code: Select all
draw_cal(ID_ITEM,$val["month"], $val["year"], $booked_days,1)
Calendar in "public" mode:
- Code: Select all
draw_cal(ID_ITEM,$val["month"], $val["year"], $booked_days,0)
You will have to either create a copy of the calendar with this value modified for "public viewing" or control this variable by some kind of admin restricted control.
I hope this answers your question - let me know how it goes

Chris