guylevy
04-04-2008, 08:01 PM
Hi,
I am using the Easy PHP calendar on our site:
http://www.gotbubble.com/birthdays.asp
The issue that I have is when the end user open the birthdays page the calendar should look for the current date and display that month and highlight the current day.
If the current date = Fri April 14 2008
when the end user open the birthdays page the month should be set to April and the day (14) should be highlighted.
This is the exact behavior I see when I click on the 'Today' button in the calendar, but we shouldn't expect the end user to click on this when they first open the page, this is more for when they explore other months and they want to go back to the current date type of feature.
I have looked at the easyphpcalendar support page and found that I need to update the however I am calendar/events/headerCustom.inc.php file
https://www.easyphpcalendar.com/support/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=43 (https://www.easyphpcalendar.com/support/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=43)
Event Manager startup at current month
https://www.easyphpcalendar.com/support/themes/client_default/space.gif
SolutionThe 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;
}
?>
Looking at the calendar/events/headerCustom.inc.php file I have the same code.
How do DISPLAY THE CALENDAR STARTING AT THE CURRENT MONTH AND NOT THE PREVIOUS MONTH
Thanks,
-guy
I am using the Easy PHP calendar on our site:
http://www.gotbubble.com/birthdays.asp
The issue that I have is when the end user open the birthdays page the calendar should look for the current date and display that month and highlight the current day.
If the current date = Fri April 14 2008
when the end user open the birthdays page the month should be set to April and the day (14) should be highlighted.
This is the exact behavior I see when I click on the 'Today' button in the calendar, but we shouldn't expect the end user to click on this when they first open the page, this is more for when they explore other months and they want to go back to the current date type of feature.
I have looked at the easyphpcalendar support page and found that I need to update the however I am calendar/events/headerCustom.inc.php file
https://www.easyphpcalendar.com/support/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=43 (https://www.easyphpcalendar.com/support/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=43)
Event Manager startup at current month
https://www.easyphpcalendar.com/support/themes/client_default/space.gif
SolutionThe 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;
}
?>
Looking at the calendar/events/headerCustom.inc.php file I have the same code.
How do DISPLAY THE CALENDAR STARTING AT THE CURRENT MONTH AND NOT THE PREVIOUS MONTH
Thanks,
-guy