View Full Version : Ability to supply date range and category
abielski
09-17-2007, 11:44 AM
It would very helpful if we could specify a date range and category and have the result based on these parameters.
ve9gra
09-17-2007, 09:10 PM
Altough you cannot give a date range, you can achieve similar results by setting $mo and $yr and $listDays/$listMonths/$listYears/etc... Along with $showCat, it should match what you need.
abielski
09-18-2007, 06:24 AM
Below is the code I ended up with.
This worked well. Thanks!
<?php
$LIST=1;
//$mo $yr $listDays $listMonths $listYears $showCat
$mo=1;
$yr=2007;
$listMonths=12;
$listYears=1;
$showCat=2;
$template="blog.php";
require("calendar.php");
?>
ve9gra
09-18-2007, 06:26 AM
It's probably best to use only one of the various $listX variables at a time. The ones available are,
$listEvents
$listDays
$listWeeks
$listMonths
$listYears
abielski
09-18-2007, 06:32 AM
Thanks! I removed $listYears=1;
I assume I could plug a specific event by providing the ID?
ve9gra
09-18-2007, 08:57 PM
There is no facility to point to a specific event.
vBulletin® v3.8.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.