PDA

View Full Version : List mode - show all past events for year


neubeedoo
10-31-2005, 10:18 PM
Hi -

I tried searching the board, but the search tells me nearly all the words I use are 'common' and returns every post with "list" and "mode" in it - ouch!

I am listing events that span the entire year (it is not a massive amount!)

I need two seperate lists on a page -
one is UPCOMING EVENTS
That one I got working - kind of:
<?php $LIST=1; $DF = "D - M d"; $listYear = "2005"; $noOld = 1;
$template="monthly.php"; require ("calendar/calendar.php"); ?>
And to clarify, the above WILL display TODAY's event? yes? Until when, midnight server time?

I have a second section that lists all PAST events for the same year

So what is the
$noOld = 1; equivilent (something like $noNew= ???)
for showing only PAST events from todays day, within the defined year?

Thanks!!!

ve9gra
11-01-2005, 07:17 AM
I beleive that there is something in the works that will allow you to display events within a range, but it's not currently possible.

I'm sure Brian will have more details on this.

Brian
11-01-2005, 08:49 AM
There isn't a built-in mechanism to display past events in the way you describe.

The closest you may can get is to use this just before requiring the past list mode (untested):

<?php
$listMonths = $mo - 1;
$mo = 1;
require ("calendar...");
?>

neubeedoo
11-01-2005, 02:46 PM
Thanks - I'll try that and see what happens!