Easy PHP Calendar - We really take care of your dates!


Go Back   Easy PHP Calendar > General Discussion > General Support

General Support Questions about using the Easy PHP Calendar. (Not installation or customizations)

Closed Thread
 
Thread Tools Search this Thread Display Modes

Multiple different calendars on the same page
Old 04-06-2005, 02:10 PM   #1
anthony
Calendar User
 
anthony is offline
Join Date: Feb 2005
Posts: 11
Default Multiple different calendars on the same page

I've searched the forums, but haven't been able to find anything like what I'm looking for. I found one thread with some example code that doesn't really work, so I'll just get to my question.

I want to display multiple different calendars from different locations using different flatfiles on one page. When I include the calls to both showcalendar.php files, like so:

Code:
<div class="separator">
		<?php require ("calendar/showcalendar.php"); ?>
	</div>
	<div class="separator">
		<?php require ("edtech/calendar/showcalendar.php"); ?>
	</div>
I get an error in my Apache server log stating:

Code:
[error] PHP Fatal error:  Cannot redeclare showcal() (previously declared in /Library/WebServer/Documents/calendar/functions/escal.php:555) in /Library/WebServer/Documents/calendar/functions/escal.php on line 555
When I change $flatFileName to use a different flatfile, OverLIB doesn't work correctly. It still displays data from the first declared calendar ('calendar/showcalendar.php' instead of 'edtech/calendar/showcalendar.php'). The calendar appears correctly, but at the top of the page, before any of my HTML starts (because of my require statement in the header of the code).

I need to display nine different calendars on this page, but can't seem to figure out what to do. Of course, I need it by tomorrow afternoon, but I'm just going to take a lot of whacks at it.

Here's where the page is: http://www.creighton.k12.az.us/9calendars.php

Also, is it possible to concatenate the text from multiple flatfiles to create one master calendar? (i.e. for this project, we'd like to combine the calendars from 9 different schools into one calendar, but I didn't think this was possible... hence displaying all nine calendars on the same page.)

Thanks!
Anthony
 

Old 04-06-2005, 02:51 PM   #2
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

There are variables and functions assigned to the calendar when it is first displayed and they can't be changed without some re-programming. Version 5 wasn't designed to show two different groups of events from two separate databases.

However, Version 6 is capable of this using the categories and filter functions which will display just the events you want to see according to their assigned category.
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 04-06-2005, 02:53 PM   #3
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Quote:
Originally Posted by anthony
Also, is it possible to concatenate the text from multiple flatfiles to create one master calendar? (i.e. for this project, we'd like to combine the calendars from 9 different schools into one calendar, but I didn't think this was possible... hence displaying all nine calendars on the same page.)

Thanks!
Anthony
I haven't tried this, but if the txt files were all combined, this may work. Have you tried it?
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 04-06-2005, 03:09 PM   #4
anthony
Calendar User
 
anthony is offline
Join Date: Feb 2005
Posts: 11
Default

Yes, concatenating text files does work... interesting...

Anthony
 

Old 04-07-2005, 11:26 AM   #5
anthony
Calendar User
 
anthony is offline
Join Date: Feb 2005
Posts: 11
Default

Now that I've upgraded to version 6, I'm still trying to list different calendars on the same page. When I use the following code:

Code:
<?php require ("calendar/showcalendar.php"); ?>
<?php  $showCat = "2"; require ("calendar/showcalendar.php"); ?>
Both calendars look the same, except the second calendar--the one with the $showCat variable set--filters the overLib display, but not the way the calendar looks. In other words, filtering seems to be happening, but the second calendar only illustrates this function in the overLIB popup.

Any ideas?

Thanks,
Anthony

Last edited by anthony; 04-07-2005 at 11:27 AM. Reason: removed unnecessary tabs in the code section
 

Old 04-07-2005, 11:43 AM   #6
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Can you post or PM a link to this test page?
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 04-07-2005, 06:48 PM   #7
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

This has been resolved and will appear in Version 6.09.
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how does one display multiple small calendars? Gordon Werner General Support 3 05-09-2005 01:13 PM
6 months of calendars on one page?? gtojon General Support 10 04-14-2005 06:53 PM
two different calendars on same web page ??? Cappiels General Support 3 01-03-2005 08:50 PM
multiple (3) calendars in a row hiscores General Support 9 03-12-2004 06:44 PM
Post 3 calendars on same page dmoore1200 General Support 1 01-15-2004 06:34 PM



All times are GMT -4. The time now is 06:57 PM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2009 NashTech, Inc.

| Home | Register | Today's Posts | Search | New Posts |