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

Not working
Old 06-30-2005, 12:53 PM   #1
kveene
Calendar User
 
kveene is offline
Join Date: Jun 2005
Posts: 5
Default Not working

I can not get the calendar to display? Any idea what is wrong with the code?


<html>
<head>
<?php $CSS=1; require("calendar.php"); ?>
<meta http-equiv="Content-Language" content="en-us">

<title>Dakota Entertainment</title>

</head>

<body bgcolor=white leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>

<!-- HEAD -->

<table width=100% border=0 cellpadding=0 cellspacing=0>
<tr><td align=left background=bg1.gif>
<p align="center">
<img border="0" src="images/karaoke1.jpg" width="161" height="121" align="left"><img border="0" src="images/karaoke2.jpg" width="120" height="121" align="left"><a href=><img src=dlogo.gif width=125 height=119 border=0 align="left"></a><img border="0" src="images/karaoke3.jpg" align="left" width="161" height="121"><a href=><img src=images/karaoke4.jpg width=161 height=116 border=0 align="left"></a></td></tr>
<tr><td align=left bgcolor=#014FA4>

<!-- Top_Menu -->
<a href="index.html"><img src=b1.gif width=98 height=30 border=0></a><a href="karaoke.html"><img src=b2_o.gif width=98 height=30 border=0></a><a href="djs.html"><img src=b3.gif width=91 height=30 border=0></a><a href="pro.html"><img src=b4.gif width=92 height=30 border=0></a><a href="games.html"><img src=b5.gif width=83 height=30 border=0></a><a href="aboutus.html"><img src=b6.gif width=95 height=30 border=0></a><a href="contactus.html"><img src=b7.gif width=95 height=30 border=0></a><br>
<!-- /Top_Menu -->

</td></tr>
</table>

<!-- /HEAD -->


<!-- MIDDLE -->

<br><br>

<table width=100% border=0 cellpadding=0 cellspacing=0>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td width=100% align=left background=bg2.gif>
<img src=head1.gif width=520 height=22><br></td>
</tr>
<tr align=left valign=top>
<td><img src=images/ad3.gif width=217 height=248><br></td>
<td><img src=spacer.gif width=50 height=1><br></td>
<td>
<br>
<font face="Arial">
<?php $OL=1; require("calendar.php"); ?></td>
</table>

<br><br>

<!-- /MIDDLE -->


<!-- BOTTOM -->

<table width=100% border=0 cellpadding=0 cellspacing=0 height="66">
<tr>
<td height="3"><img src=tr1.gif width=267 height=3></td>
<td align=left background=bg3.gif width=100% height="3">
<img src=spacer.gif width=1 height=3><br></td>
</tr>
<tr>
<td height="58"><p>&nbsp;<p><b>Last Updated :</b>
June 26, 2005</b></td>
<td align=left class=news height="58">
<br>&nbsp;</td>
</tr>
<tr><td colspan=2 bgcolor=#014FA4 height="5">
<img src=spacer.gif width=1 height=5><br></td></tr>
</table>

<!-- /BOTTOM -->

</body>
</html>
 

Old 06-30-2005, 01:09 PM   #2
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

There is a problem.... even though you didn't forget the CSS and the OL calls, you forgot to call for the calendar itself.... Just after your
PHP Code:
<?php $OL=1; require("calendar.php"); ?>
add
PHP Code:
<?php require("calendar.php"); ?>
Note that you'll have to adjust the paths to calendar.php in case that this file is not inside of the installation directory of the calendar.

Last edited by ve9gra; 06-30-2005 at 01:43 PM. Reason: fixing syntax errors
 

Old 06-30-2005, 01:15 PM   #3
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

To expand my answer, here's what's happening at each call, and why you need to have require("calendar.php") 3 times (or 4 if you want the listing module too).

When you do $CSS=1; require("calendar.php"); the calendar script will only insert the code required for the CSS information. Then you do the $OL=1; require("calendar.php"); which then inserts the code required for the overLib functions to work (the mouse-over popups). Then finally you call require("calendar.php"); alone and the script knows that it now has to display the calendar. As an alternate, you can add $TOC=1; before that call to display the calendar and it will change the output to be the Text On Calendar mode. And optionally, you can also do a $LIST=1; require("calendar.php"); and the script will know to insert the code for the listing module.

Each time you pass one of the uppercase variables before requiring the calendar, it's output will be for a different section.
 

Old 06-30-2005, 01:26 PM   #4
kveene
Calendar User
 
kveene is offline
Join Date: Jun 2005
Posts: 5
Default

I know you probably think i am ignorant. I added that line you told me too. However, i am still unable to see it Thanks for your explanation.
i owe you big
<html>
<head>
<?php $CSS=1; require("calendar.php"); ?>
<meta http-equiv="Content-Language" content="en-us">

<title>Dakota Entertainment</title>

</head>

<body bgcolor=white leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>

<!-- HEAD -->

<table width=100% border=0 cellpadding=0 cellspacing=0>
<tr><td align=left background=bg1.gif>
<p align="center">
<img border="0" src="images/karaoke1.jpg" width="161" height="121" align="left"><img border="0" src="images/karaoke2.jpg" width="120" height="121" align="left"><a href=><img src=dlogo.gif width=125 height=119 border=0 align="left"></a><img border="0" src="images/karaoke3.jpg" align="left" width="161" height="121"><a href=><img src=images/karaoke4.jpg width=161 height=116 border=0 align="left"></a></td></tr>
<tr><td align=left bgcolor=#014FA4>

<!-- Top_Menu -->
<a href="index.html"><img src=b1.gif width=98 height=30 border=0></a><a href="karaoke.html"><img src=b2_o.gif width=98 height=30 border=0></a><a href="djs.html"><img src=b3.gif width=91 height=30 border=0></a><a href="pro.html"><img src=b4.gif width=92 height=30 border=0></a><a href="games.html"><img src=b5.gif width=83 height=30 border=0></a><a href="aboutus.html"><img src=b6.gif width=95 height=30 border=0></a><a href="contactus.html"><img src=b7.gif width=95 height=30 border=0></a><br>
<!-- /Top_Menu -->

</td></tr>
</table>

<!-- /HEAD -->


<!-- MIDDLE -->

<br><br>

<table width=100% border=0 cellpadding=0 cellspacing=0>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td width=100% align=left background=bg2.gif>
<img src=head1.gif width=520 height=22><br></td>
</tr>
<tr align=left valign=top>
<td><img src=images/ad3.gif width=217 height=248><br></td>
<td><img src=spacer.gif width=50 height=1><br></td>
<td>
<br>
<font face="Arial">
<?php $OL=1; require("calendar/calendar.php"); ?>
<php require("calendar.php"); ?>
</table>

<br><br>

<!-- /MIDDLE -->


<!-- BOTTOM -->

<table width=100% border=0 cellpadding=0 cellspacing=0 height="66">
<tr>
<td height="3"><img src=tr1.gif width=267 height=3></td>
<td align=left background=bg3.gif width=100% height="3">
<img src=spacer.gif width=1 height=3><br></td>
</tr>
<tr>
<td height="58"><p>&nbsp;<p><b>Last Updated :</b>
June 26, 2005</b></td>
<td align=left class=news height="58">
<br>&nbsp;</td>
</tr>
<tr><td colspan=2 bgcolor=#014FA4 height="5">
<img src=spacer.gif width=1 height=5><br></td></tr>
</table>

<!-- /BOTTOM -->

</body>
</html>

Last edited by ve9gra; 06-30-2005 at 01:42 PM. Reason: removed link
 

Old 06-30-2005, 01:41 PM   #5
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

Oups... I had a syntax mistake in my answer... I missed the "?"... it should be
PHP Code:
<?php require("calendar.php"); ?>
I'm going to guess that the file you're working on is karaoke.php...

A few things to fix... lets modify the 3 calls to the calendar.. (i see you did one, but that's not enough). Here they are... this one goes in the <head></head> section
PHP Code:
<?php $CSS=1; require("calendar/calendar.php"); ?>
and this one goes where you want the calendar to display
PHP Code:
<?php 
$OL
=1
require(
"calendar/calendar.php"); 
require(
"calendar/calendar.php"); 
?>
I know it looks a bit different, but this should work just the same.

After you've modified this code, upload that file to your webroot (httpdocs) instead, as right now all your links for pictures and menus are broken.

Good luck.
 

Old 06-30-2005, 01:48 PM   #6
kveene
Calendar User
 
kveene is offline
Join Date: Jun 2005
Posts: 5
Default

it worked thanks!!!
 

Old 06-30-2005, 02:00 PM   #7
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

Glad I could be of help!
 
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
6.2.1 - New Event Category drop-down not working dave_gordon General Support 3 09-04-2005 09:39 AM
Next/Previous Links not working kerry General 3 08-03-2005 12:14 PM
Navigation Not Working littlefishweb General Support 7 07-17-2005 10:56 AM
Complete version purchased, serial not working thegonzo General Support 2 04-23-2005 11:20 AM
Mouseover pop-ups in IE not working... moxy Mambo/Joomla Integration 2 04-01-2005 03:47 PM



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