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

Problems with monthly listing
Old 06-06-2005, 11:13 PM   #1
nmdunn
Calendar User
 
nmdunn is offline
Join Date: Jun 2005
Location: Michigan
Posts: 7
Default Problems with monthly listing

Excellent calendar. Very nice option for those of us who aren't PHP gurus (yet).

I've got the "Text on" calendar successfully installed on the site, http://www.emmanuel-newington.org/calendar/index.php

However, I can't get the monthly listing to show up on the redesigned home page I'm working on, http://www.emmanuel-newington.org/test.php

A monthly calendar shows, but it's not the listing I want. Here's the code that I have included in the test file:

Code:
<?php 
$LIST=1;
$listDays = 7;
$DF = "D,  M j";
$template = "http://www.emmanuel-newington.org/calendar/monthly.php";
require ("http://www.emmanuel-newington.org/calendar/calendar.php");
 ?>
The test file is in the root directory, and the PHP calendar files are in the calendar folder. I can't seem to figure out what's going on here. Any ideas? TIA.
 

Old 06-07-2005, 05:57 AM   #2
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

ok, two things...

1 - the template variable only takes the name of the file, it already knows where to look for it... so, if you filename is "monthly.php" that's all that you put for the $template variable. Also, make sure that you put that file in the template folder.

2 - when you do your require, don't use the URL, but use a relative path instead... so for you it would be

PHP Code:
<?php 
$LIST 
1;
$listDays 7;
$DF "D,  M j";
$template "monthly.php";
require(
"calendar/calendar.php");
?>
Hope this helps.
 

Old 06-07-2005, 07:49 AM   #3
nmdunn
Calendar User
 
nmdunn is offline
Join Date: Jun 2005
Location: Michigan
Posts: 7
Default

Thank you so much! That resolved the problem.

Now I just need to modify the template so it fits my site.
 
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
Problems with Ion Cube and php 4.3.10 + Kevin Sours General Support 1 05-12-2005 03:23 PM
Listing edits bobscape General 11 05-03-2005 10:56 AM
Safari Mouse-Over Problems chron1813 General Support 7 01-27-2005 10:41 AM
Setup problems DraconicCat General Support 6 11-23-2004 08:43 AM



All times are GMT -4. The time now is 04:02 AM.


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 |