Hi, sorry for the delay in answering. For some reason some posts don't get sent to my email so I miss them

only show 6 months on the calendar for each year - specifically May to October
To do this I think that you would need to do 3 things:
1. In admin set the calendar to show 3 months.
2. Update the php code to always start the initial load on the 5th month of the year.
To do this open the
ac-includes >
cal.inc.php file.
FInd this line (80):
- Code: Select all
$this_month = (!isset($_GET["month"])) ? date('m') : $_GET["month"];
and change it to this:
- Code: Select all
$this_month = 5;
3. Finally modify the JavaScript so that rather than advancing each month by the number of months defined in admin, it always moves it forward by 12 months.
This is actually very simple to do and requires no JavasScript knowledge.
In the main index.php file (if you are using the iframe method to integrate your calendar this is the file that you are using) and find the following code within the JavaScript variables definitions block (line 23?):
- Code: Select all
var months_to_show = <?php echo AC_NUM_MONTHS; ?>; // number of months to show
and change it to this:
- Code: Select all
var months_to_show = 12; // number of months to show
As I am sure you will be able to see from that change, we are simply telling it to load each month 12 months into the future.
That is all you need to do.
Have a go at that and let me know how it goes or if you need any further help.
Chris