DittoCal Debug Output
Initial Data from Json
Data after JSON decoding
Filter Settings
Filter Month: 1
Filter Year: 1970
Processing Error
There was an error processing the json data. Set the debug param equal to 1 for more info.
{
"title":"Blog json output",
"link":"http://mysite.com/index.php?id=3",
"description":"",
"language":"en",
"copyright":"Proyeccion Tango 2007",
"ttl":"120",
"entries":[
{
"title":"FESTIVAL INTERNACIONAL DE TANGO DE SITGES",
"link":"http://mysite.com/index.php?id=16",
"date":"1180117461",
"guid":"http://mysite.com/index.php?id=16",
"author":"Default admin account",
"description":"Del 18 al 22 de Julio",
"introtext":"Texto explicativo y breve del intensivo. Cras in nulla sit amet tellus interdum egestas. Curabitur iaculis diam quis neque. Donec urna quam, laoreet eget, rutrum id, faucibus viverra, neque. ",
},
{
"title":"EL LABORATORIO DE JUNIO",
"link":"http://mysite.com/index.php?id=15",
"date":"1180722209",
"guid":"http://mysite.com/index.php?id=15",
"author":"Default admin account",
"description":"Domingos 3, 10 y 24",
"introtext":"Te esperamos.... en febrero del año siguiente. Desde entonces han participado en los espectáculos.",
},
{
"title":"INTENSIVO DE MILONGA",
"link":"http://mysite.com/index.php?id=14",
"date":"1181759109",
"guid":"http://mysite.com/index.php?id=14",
"author":"Default admin account",
"description":"Del 9 al 13 de Julio",
"introtext":"Texto explicativo y breve del intensivo... Buenos Aires en septiembre de 2001, y comienzan a trabajar juntos en Madrid en febrero del año siguiente.",
}
]
}[!Ditto?startID=`23` &summarize=`100` &format=`json` &dateFormat=`%d-%m-%Y` &sortDir=`desc`!]
[!DittoCal? &calSource=`http://www.mywebsite.com/blog_json_output` &dayNameLength=`1`!]
if (isset($_GET[$prefix.'_month']) && isset($_GET[$prefix.'_year'])) {
$filterMonth = $_GET[$prefix.'_month'];
$filterYear = $_GET[$prefix.'_year'];
$prevArgs = $prefix . '_month=' . $prevMonth . '&' . $prefix . '_year=' . $prevYear; $nextArgs = $prefix . '_month=' . $nextMonth . '&' . $prefix . '_year=' . $nextYear;
$checkCurDay = date('j',time());
$checkCurMonth = date('n',time());
$checkCurYear = date('Y',time());
if($weekday > 0) $calendar .= '<td class="prevDays" colspan="'.$weekday.'"> </td>'; #initial 'empty' days
$isToday = (($checkCurDay == $day) && ($checkCurMonth == $month) && ($checkCurYear == $year));
$calendar .= '<td'.($classes ? ' class="'.htmlspecialchars($classes).($isToday ? ' today' : '').'">' : '>').
else $calendar .= '<td'.($isToday ? 'class=" today"' : '').'>'.$day.'</td>';
if($weekday != 7) $calendar .= '<td class="nextDays" colspan="'.(7-$weekday).'"> </td>'; #remaining "empty" days
OK I solved most of my problems using Ditto 2.3
but still the same problem with the first month shown. I would like to display the actual monthn at first, not the first or the last month were I putted the post.