Event Manager startup at current month


The Event Manager by default opens with the previous, current and next months events displayed. If you would like to have it open displaying the current month and the next two months (no previous month), add the code below to the calendar/events/headerCustom.inc.php file:

<?php
// THE CODE BELOW WHEN INSERTED INTO THE
// calendar/events/headerCustom.inc.php FILE WILL
// DISPLAY THE CALENDAR STARTING AT THE
// CURRENT MONTH AND NOT THE PREVIOUS MONTH
if (!$_REQUEST['mo'] && !$mo) {
$mo = date("m");
$yr = date("Y");
$mo++;
if ($mo>12) {
$mo=1;
$yr++;
}
$_REQUEST['mo'] = $mo;
$_REQUEST['yr'] = $yr;
}
?>

آیا این پاسخ به شما کمک کرد؟

 پرینت این مقاله

در همین زمینه

Can I change the colors and layout?

Yes. You have complete control over how the final calendar appears on your web site. You can edit...

What is the format of the dates in the database?

Julian Day Count http://us3.php.net/manual/en/function.gregoriantojd.php

Bypass the login screen?

Add the following code to your page. Adjust the path, email address, password and log in text to...

How to show the complete title when using the Standard calendar

Open the esstyle.css file in the theme directory that you're using (probably default). Look for...

Customizing languages

The month and day names that display on the calendar can be customized to fit most any language...