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

Formatting calendar layout similar to event setup
Old 01-17-2006, 10:00 AM   #1
ChuckR
Calendar User
 
ChuckR is offline
Join Date: Dec 2004
Posts: 11
Cool Formatting calendar layout similar to event setup

Greetings all....

I am rather new to PHP & HTML, and for the most part find myself over my head when working with the calendar codes. But I am getting by.

I have modified the demo.php script and placed it on a site that I administer.

The page that is wrapped around the calender is at this link:

http://madwest1958.org/misc_info/calendar2.php

The file that the web page points to is at this link:

http://madwest1958.org/calendar/calendar2.php

My question is: I would like to have the calendar page mirror the calendar layout that is displayed in your Event Manager utility. Specifically, I would like to include a Month/Year drop down menu, and the category Legend.

I have been unsuccesful in finding any recent tips on this forum on this subject. Does anyone have and suggestion or tips.

Thanks in advance for your help

ChuckR
 

Old 01-17-2006, 10:09 AM   #2
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,906
Default

Month/Year Drop down menu:

https://www.easyphpcalendar.com/supp...6&pcid=0&nav=0

Category Legend (From the Instructions/Plugins/Legend):

http://docs.easyphpcalendar.com/sour...ins/Legend.htm
__________________
-- Brian

Questions?

Instructions | FAQs | Errors FAQ | Forums | Support
| Web Site Hosting
 

More advise please.....
Old 01-17-2006, 10:19 AM   #3
ChuckR
Calendar User
 
ChuckR is offline
Join Date: Dec 2004
Posts: 11
Default More advise please.....

Thanks for your quick reply Brian.

Below I have pasted the code for my calendar page. I am not sure where to insert the codes that you provided. This is the area where I get into trouble.

ChuckR
__________________________________

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Easy PHP Calendar</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<?php $CSS=1; require("calendar.php"); ?>
<style type="text/css">
<!--
.style1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
}
-->
</style>
</head>
<body>
<?php $OL=1; require("calendar.php"); ?>
<table width="100%" align="center">
<tr><td align="center">
<?php

// $TOC=1; // UNCOMMENT THIS LINE TO SHOW TEXT ON CALENDAR
// THIS IS AN EXAMPLE OF THE MULTI-CALENDAR GENERATOR

$MULTI=1;
$epcMultiWidth = "600px";
$epcMultiPad = 10;
$epcMultiNav = "580px";
$epcMultiCol = 3;
$epcMultiRow = 1;
require("calendar.php");

?>
<br />
<br />

<?php
// SHOW LISTINGS MODULE
// $epcListMouseover=1; // WILL USE THE MOUSE-OVER POPUPS FOR LIST MODE
$LIST=1;
$listMonths=3;
$DF = "M jS, Y (D)";
$template="modern.php";
require("calendar.php");
 

Old 01-17-2006, 11:21 AM   #4
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,906
Default

You would add the code on the page where you want the information to appear.

For the date drop-down, probably just after the <body> tag.

For the legend, just anywhere would be fine and you can move it in the code to put it above and below other items.
__________________
-- Brian

Questions?

Instructions | FAQs | Errors FAQ | Forums | Support
| Web Site Hosting
 

I'm a slow learner .. still can't get it... HELP
Old 01-17-2006, 04:11 PM   #5
ChuckR
Calendar User
 
ChuckR is offline
Join Date: Dec 2004
Posts: 11
Default I'm a slow learner .. still can't get it... HELP

I have spent a couple of hours doing some "trial and error" but can't get Brian's suggestion to work.

When I pasted the code at the point that Brian suggested, and tried to load the page using Safari, I got this error message:

Parse error: parse error, unexpected '\"' in /home/.dempsey/madwest1/madwest1958.org/calendar/calendar4.php on line 27


Does anyone have any ideas what I am doing wrong?

Thanks again in advance for your comments!


Here is the link to the page that generated this error:

http://madwest1958.org/calendar/calendar4.php

Below is the code for the page (including the added code insterted after the <body> tag:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Easy PHP Calendar</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<?php $CSS=1; require("calendar.php"); ?>
<style type="text/css">
<!--
.style1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
}
-->
</style>
</head>
<body>
<?php
$mo=$_REQUEST[mo];
$yr=$_REQUEST[yr];
if (!isset($mo) || $mo<1 || $mo>12 || !is_numeric($mo)) $mo = date("m",time() - date('Z') + ($gmt * 3600));
if (!isset($yr) || $yr<1970 || $yr>2036 || !is_numeric($yr)) $yr = date("Y",time() - date('Z') + ($gmt * 3600));
****?>
*****<form name="form3" method="post" action="<?php echo $PHP_SELF ?>">
********<select name="mo" id="mo">
*********<?php
for ($N=1; $N<=12; $N++) {
****echo "<option value='$N'";
****if ($N==$mo) echo " SELECTED";
****echo ">$mth[$N]</option>";
****}
****?>
********</select>
********<select name="yr" id="yr">
*********<?php
for ($N=2000; $N<=2036; $N++) {
****echo "<option";
****if ($N==$yr) echo " SELECTED";
****echo ">$N</option>";
****}
****?>
********</select>
********<input type="submit" name="Submit" value="Go">
*****</form>

<?php $OL=1; require("calendar.php"); ?>
<table width="100%" align="center">
<tr><td align="center">
<?php

// $TOC=1; // UNCOMMENT THIS LINE TO SHOW TEXT ON CALENDAR
// THIS IS AN EXAMPLE OF THE MULTI-CALENDAR GENERATOR

$MULTI=1;
$epcMultiWidth = "600px";
$epcMultiPad = 10;
$epcMultiNav = "580px";
$epcMultiCol = 3;
$epcMultiRow = 1;
require("calendar.php");

?>
<br />
<br />

<?php
// SHOW LISTINGS MODULE
// $epcListMouseover=1; // WILL USE THE MOUSE-OVER POPUPS FOR LIST MODE
$LIST=1;
$listMonths=3;
$DF = "M jS, Y (D)";
$template="modern.php";
require("calendar.php");
 

Old 01-17-2006, 06:19 PM   #6
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,906
Default

Please zip up and attach calendar.php to this post and I'll take a look.
__________________
-- Brian

Questions?

Instructions | FAQs | Errors FAQ | Forums | Support
| Web Site Hosting
 

Calendar file
Old 01-17-2006, 07:05 PM   #7
ChuckR
Calendar User
 
ChuckR is offline
Join Date: Dec 2004
Posts: 11
Default Calendar file

Hi Brian.....

Attached is a copy of the file I am using.

Thanks again

Chuck
Attached Files
File Type: txt calendar4.txt (1.8 KB, 309 views)
 

Old 01-17-2006, 07:10 PM   #8
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,906
Default

Where are the accented E's in your code?

They shouldn't be there.
__________________
-- Brian

Questions?

Instructions | FAQs | Errors FAQ | Forums | Support
| Web Site Hosting
 

2nd attempt
Old 01-17-2006, 07:20 PM   #9
ChuckR
Calendar User
 
ChuckR is offline
Join Date: Dec 2004
Posts: 11
Default 2nd attempt

Brian..... I failed to use my DropZip utility to compress the file.

A new version is attached.

Sorry!

Chuck
Attached Files
File Type: zip calendar4.zip (1.0 KB, 344 views)
 

Old 01-18-2006, 09:05 AM   #10
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,906
Default

Your code has a lot of ΚΚΚΚ in it which is likely causing the error. They should all be removed from your code.
__________________
-- Brian

Questions?

Instructions | FAQs | Errors 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
Remove links to set up manager and event manager from calendar page + event listing chris808 Customizations (Themes / Templates) 1 12-20-2005 02:14 PM
No Calendar Formatting on Some PCs Marcia Pecor General Support 1 12-03-2005 04:11 PM
incorporate event and setup mgr rbrst10 General Support 1 08-18-2005 03:34 PM
Can I setup more than one calendar? Ian Cook General Support 6 07-28-2004 05:28 PM



All times are GMT -4. The time now is 03:15 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 |