I have the Dittocal installed and running. I only have an odd problem. The month that is being display by DittoCal is December 1999, when I open blog.html. When I click (next) >> I get blog.html?calmonth=01&calyear=0 and January 2000.
The code below shows that DittoCal looks for querystrings calmonth and calyear. Somehow it seems to find 0 values for those querystrings, even if there are no querystings available in the url?
//Use the month & year passed-in if set else use first post as month & year
if (isset($_GET['calmonth']) && isset($_GET['calyear'])) {
$filterMonth = $_GET['calmonth'];
$filterYear = $_GET['calyear'];
} else {
$filterMonth = substr($postData->entries[0]->pubDate,3,2);
$filterYear = substr($postData->entries[0]->pubDate,6,4);
I also tried this:
//Use the month & year passed-in if set else use first post as month & year
if (isset($_GET['calmonth']) && isset($_GET['calyear'])) {
$filterMonth = substr($postData->entries[0]->pubDate,3,2);
$filterYear = substr($postData->entries[0]->pubDate,6,4);
} else {
$filterMonth = $_GET['calmonth'];
$filterYear = $_GET['calyear'];
This also gave December 1999 as output.
I am using DittoCal 1.1 with Ditto 1.1beta2