View Full Version : Do not show today's event
newkid501
12-13-2005, 05:26 PM
Just curious...is there a way to not show today's event in list mode, but just the next three days...or somehow fix it so that i can have a blog mode & list mode on the same page...it works but with errors...or two list modes. the errors occur in the functions folder and that is uneditable...
Warning: fopen(/home/virtual/site212/fst/var/www/html/calendar/templates/ /home/virtual/site212/fst/var/www/html/calendar/functions/blog.php on line 104
Warning: fread(): supplied argument is not a valid stream resource in /home/virtual/site212/fst/var/www/html/calendar/functions/blog.php on line 104
Warning: fclose(): supplied argument is not a valid stream resource in /home/virtual/site212/fst/var/www/html/calendar/functions/blog.php on line 107
ve9gra
12-14-2005, 08:37 AM
You can have two list modes without errors. The Blog mode with List mode on the other hand, seems to want to give you (and me) problems. On the other hand, some are able to make it work (link (http://www.easyphpcalendar.com/forums/showthread.php?t=4415)).
We'll have to wait until Brian can have a look at the problem.
Brian
12-14-2005, 10:06 AM
Just curious...is there a way to not show today's event in list mode, but just the next three days...or somehow fix it so that i can have a blog mode & list mode on the same page...it works but with errors...or two list modes. the errors occur in the functions folder and that is uneditable...
Warning: fopen(/home/virtual/site212/fst/var/www/html/calendar/templates/ /home/virtual/site212/fst/var/www/html/calendar/functions/blog.php on line 104
Warning: fread(): supplied argument is not a valid stream resource in /home/virtual/site212/fst/var/www/html/calendar/functions/blog.php on line 104
Warning: fclose(): supplied argument is not a valid stream resource in /home/virtual/site212/fst/var/www/html/calendar/functions/blog.php on line 107
What PHP code are you using to create this page that gives these error?
newkid501
12-14-2005, 10:48 AM
i'm not sure i understand the question. I'm just inserting the code as is in the demo but changing the template links. I mean it works beautifully but it shows those errors. How do get two list modes to show two completely different lists? i'm not a php expert so...i've read your docs and trolled the forum but somehow i must be missing something. i don't know. Here it is the basic with all the table content taken out, leaving just the part where the calendar goes.
<?php $OL=1; require("calendar.php"); ?>
<table width="775" >
<tr>
<td width="19" align="left" valign="top"> </td>
<td height="257" align="center" valign="top"><table width="226" height="231" border="0" cellpadding="0" cellspacing="0" background="../images/calendar.png">
<tr>
<th width="20" height="18" scope="col"> </th>
<th width="186" scope="col"> </th>
<th width="20" scope="col"> </th>
</tr>
<tr>
<td height="164"> </td>
<td align="center" valign="middle"><?php
// $TOC=1; // UNCOMMENT THIS LINE TO SHOW TEXT ON CALENDAR
//unset($epcAltLink); $epcAltLink="http://www.easyphpcalendar.com/"; // UNCOMMENT THIS LINE TO USE THE ALT LINK FEATURE
require("calendar.php");
?></td>
<td> </td>
</tr>
<tr>
<td height="18"> </td>
<td height="18" class="style1"> </td>
<td height="18"> </td>
</tr>
</table>
<table border="0" cellspacing="3" cellpadding="3">
<tr>
<th scope="row"><div align="center">
<div align="center"><a href="events/index.php" target="_blank" class="style1" >event manager </a><span class="style1">:: login required</span> </div>
</div></th>
</tr>
</table></td>
<td width="512" rowspan="3" align="right" valign="top"><table width="500" border="0" cellspacing="5" cellpadding="10">
<tr>
<td class="style7">Today's Events </td>
</tr>
<tr>
<td colspan="2"><?php
$EPCBLOG=2;
$template="blog_new.php";
$DF = "l, F j, Y";
require("calendar.php");
?></td>
</tr>
<tr>
<td class="style7">Upcoming Events </td>
</tr>
<tr>
<td colspan="2"><?php
// SHOW LISTINGS MODULE
// $epcListMouseover=1; // WILL USE THE MOUSE-OVER POPUPS FOR LIST MODE
$LIST=1; $noOld = 1; $listEvents = 3;
$DF = "M jS, Y (D)";
$template="modern.php";
require("calendar.php");
?>
Brian
12-14-2005, 12:06 PM
Looks like you're using the $EPCBLOG=2 without the $EPCBLOG=1 section of code. The blog mode requires both of these calendar types to be used together.
newkid501
12-14-2005, 01:15 PM
i'll try and see what happens...appreciate your help.
newkid501
12-14-2005, 03:10 PM
ok. i got 2 list mode calendar to work on one page. good. now how to you get the second to not show today's event?
Brian
12-14-2005, 03:25 PM
That feature hasn't been requested before. You may want to add it to the Feature Requests forum so we can get it on the "wish list". :)
newkid501
12-14-2005, 04:01 PM
alright cool. thanks for the notice.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.