No luck searching...
Hrm... I did some searching but I can't find anything. Here's the relevant code...
First, at the top of the page (but in the <body> tag so after the $OL=1 call), I have:
Code:
<?php
// SHOW LISTINGS MODULE
$epcListMouseover=1; // WILL USE THE MOUSE-OVER POPUPS FOR LIST MODE
$LIST=1;
$listWeeks=52;
$listEvents=3;
$showCat=9;
$noOld=1;
$DF = "M jS, Y";
$template="latestnewslist.php";
require("calendar/calendar.php");
?>
And then later I have:
Code:
<?php
unset($showCat);
?>
To make sure that calendars below don't only show category 9. Then I have:
Code:
<?php
$noNav=1;
// SHOW LISTINGS MODULE
require("calendar/plugins/navigation.php");
$epcListMouseover=1; // WILL USE THE MOUSE-OVER POPUPS FOR LIST MODE
$LIST=1;
unset($listWeeks);
unset($listEvents);
$listMonths=12;
$DF = "M jS, Y (D)";
$template="modern.php";
unset($shownEvents);
require("calendar/calendar.php");
?>
And the interesting thing is that the listing at the top of the page shows the "no events for this time period" blurb (the "empty" tag in the template) when there are no events... but the second listing doesn't show it (the "empty" tag stuff from the template) when there are no events.
If I turn the first one off completely (i.e. comment out the code), then the second one works just fine.
So there's something being set that I need to unset, presumably, but I have no idea what it is.
Any thoughts anyone?
Thanks!
-Danimal
P.S. FWIW the require line regarding "navigation.php" is a plugin I made myself to create a customized navigation include with images and with some stateful calculations (like if I'm in single month view, it navigates by single months, if I'm in month + list view, it navigates by 3-month increments and if I'm in list-only view, it navigates by year increments). Also, this require and the $noNav=1 make no difference in terms of this issue.
Last edited by Danimal; 02-06-2006 at 10:51 AM.
|