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

Old 02-18-2004, 03:46 PM   #1
Dave
Calendar User
 
Dave is offline
Join Date: Feb 2004
Posts: 3
Default

Maybe a few of you could help me by looking at my html on a webpage I am getting some code gibberish on (i'm designing it for our church group). I am trying to show a calendar on the left side and (later) add an event listing on the right side (like the event listing that - i believe - tomB uses on his website).

The webpage that is giving me the problem is ... www.webdwelling.com/events/index2.htm

I loaded all the calendar distribution files into an EVENTS subdirectory on my website (/public_html/events). And, I have ALL the calendar-related files in this EVENTS directory.

The calendar file that I am using is named cal_view.php (I duplicated demo.php and changed all the locations inside it where "demo.php" was listed to "cal_view.php").

I also edited the escalConfig.php file's $calendarLink setting from demo.php to cal_view.php.

I am using the flat-file (non-SQL) option and have no problem pulling up the calendar in my web browser at www.webdwelling.com/events/cal_view.php.

It just isn't working when I try to add it to a webpage. I'm not sure where the gibberish is coming from. Any suggestions?


DAVE

(By the way, awesome calendar!)
 

Old 02-18-2004, 06:58 PM   #2
carlstev
Calendar User
 
carlstev is offline
Join Date: Feb 2004
Posts: 2
Default

Save your page as index2.php and not index2.htm for the php parser to display the php elements, that should work
 

Old 02-18-2004, 10:17 PM   #3
Dave
Calendar User
 
Dave is offline
Join Date: Feb 2004
Posts: 3
Default

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!! carlstev you rock !!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

It worked PERFECTLY when I changed the filename extension!

What can I say about this experience ...

> Awesome program !
> Awesome program supporters/contributors !
> Awesome program creator !

... YOU ALL ROCK !

I just deleted from my website another calendar program that i was "trying" to get working for quite some time, but ... Brian's installation instructions for his calendar program were well detailed and made sense (even for a non-genius like myself). And with all the supporters and contributors posting on this board, even I was able to get it working. What a great program and a great community. I have seen the light!

(Sniffle ... somebody get me a kleenex!)




But seriously .... I do have one more question (or two) if you will indulge my coding ignorance.

By keeping the filename extension as "php", can I add two more calendars down the left side of this webpage that show the following month and then the month after that? (How should I modify the code to accomplish this?)

I was also wanting to add an events listing on the right side of the page (like the events listing that tomB is using) and wondered if the calendar and events list will get along on the same page without any code wackiness. (Can I put both the calendars and the event list within a table as long as I keep the filename extension set to "php"?)


Thanks again for all the help,
DAVE
 

Old 02-19-2004, 12:32 AM   #4
tomB
Calendar User
 
tomB's Avatar
 
tomB is offline
Join Date: Oct 2003
Location: Santa Rosa, CA
Posts: 68
Send a message via AIM to tomB Send a message via MSN to tomB Send a message via Yahoo to tomB
Default

Just keep writing HTML code in your page. When you need a php file just 'include' it using a pair of php tags (<?php ?>)

for two more calendars just add a row above and below the current one and set $mo (month) and $yr (year) as needed.

BTW: Great site!

tomB
 

Old 02-19-2004, 03:23 PM   #5
carlstev
Calendar User
 
carlstev is offline
Join Date: Feb 2004
Posts: 2
Default

hacking the post here: http://www.esscripts.com/forum/index.php?showtopic=132 comes up with;

Code:
<table width="80%" border="2" align="center" cellpadding="2" cellspacing="2">
 &nbsp;<tr>
 &nbsp; &nbsp;<td><?php
 &nbsp; &nbsp; &nbsp; &nbsp;if(!$mo) $mo=date("m");
 &nbsp; &nbsp; &nbsp; &nbsp;if(!$yr) $yr=date("Y");
 &nbsp; &nbsp; &nbsp; &nbsp;$yb=$yr;
 &nbsp; &nbsp; &nbsp; &nbsp;$yf=$yr;
 &nbsp; &nbsp; &nbsp; &nbsp;$mb=$mo-6;
 &nbsp; &nbsp; &nbsp; &nbsp;if ($mb<1) {$mb=$mo+6; $yb=$yr-1;}
 &nbsp; &nbsp; &nbsp; &nbsp;$mf=$mo+6;
 &nbsp; &nbsp; &nbsp; &nbsp;if ($mf>12) {$mf=$mo-6; $yf=$yr+1;}
?>
<?php
 &nbsp; &nbsp;require( "../escal.php");
 &nbsp; &nbsp; &nbsp; &nbsp; 
?>


 &nbsp; &nbsp;</td>

<td align="top">
<?php 
 &nbsp; &nbsp; &nbsp; &nbsp; $mo=$mo+1; 
 &nbsp; &nbsp; &nbsp; &nbsp; if ($mo==13) {$mo=1; $yr=$yr+1;}
 &nbsp; &nbsp; &nbsp; &nbsp; if ($mo>12) {$mo=$mo%12;}
 &nbsp; &nbsp; &nbsp; &nbsp; require("../escal.php"); 
?>
</td>
<td align="top">
<?php 
 &nbsp; &nbsp; &nbsp; &nbsp; $mo=$mo+1; 
 &nbsp; &nbsp; &nbsp; &nbsp; if ($mo==13) {$mo=1; $yr=$yr+1;}
 &nbsp; &nbsp; &nbsp; &nbsp; if ($mo>12) {$mo=$mo%12;}
 &nbsp; &nbsp; &nbsp; &nbsp; require "../escal.php"; 
?>
</td>

 &nbsp;</tr>
</table>
path to escal.php may need changing in your instance.

Example at Calendar 3 month display test

I have not tested year rollover functions but I'm sure they work.

Regards

Carl
 
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
Error after adding Escal module to the right column rooster Mambo/Joomla Integration 17 07-15-2005 07:43 PM
Using Calendar in my webpage! ashleek007 General Support 1 06-29-2005 12:32 PM
Database key mismatch error slyeli General Support 1 09-24-2004 08:47 AM
Error on 6month calendar TEDTEK General Support 19 03-26-2004 07:03 AM



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