PDA

View Full Version : How to use LIST and EPCBLOG in one file


bvels
12-16-2006, 03:23 AM
I want to display events for the current date as well as a list of all events in the current month.
I've put the following in my file, this does the trick but I also get a list of errors below the events ...


<?php
$EPCBLOG=2;
$template="blog.php";
$DF = "l j F - Y";
require ("../../calendar/calendar.php"); ?>
<?php
$LIST=1;
$DF = "D - M d";
$template="monthly.php";
require ("../../calendar/calendar.php"); ?>


Link: http://www.meppelerhandelsvereniging.nl/preview/pages/kalender.php

ve9gra
12-16-2006, 10:32 AM
You need to unset $EPCBLOG $EPCBLOG=2;
$template="blog.php";
$DF = "l j F - Y";
require ("../../calendar/calendar.php");
unset($EPCBLOG);
$LIST=1;
$DF = "D - M d";
$template="monthly.php";
require ("../../calendar/calendar.php");

bvels
12-16-2006, 12:24 PM
Thnx!

That did the trick!

regards,
Bart