PDA

View Full Version : Problems with displaying calendar


abebabe
10-06-2006, 10:48 AM
I'm testing trial version on FrontPage test website. I've added code to html page I want to see calendar appear and it doesn't work.

I can see calendar when I point to address with calendar.php but it doesn't display on my services&calendar page

:mad:
HELP!!!!

The services&calendar page I created is "services&calendar.htm" I tried changing extension to php and it disables my design mode in FrontPage and I get all sorts of errors.

Brian
10-06-2006, 11:54 AM
FrontPage does not play well with PHP. It can sometime even re-write your PHP code all on it's own rendering it useless (I've seen this myself).

Do you have access to another editor or can you manually add the calendar code to the page (such as using a text editor)?

abebabe
10-06-2006, 12:14 PM
I acutally checked another entry on the forum and I was wondering where do I add the following code and this isn't mentioned in epcal help?

<?php
$TOC=1;
require ("calendar/calendar.php");
?>

abebabe
10-06-2006, 12:16 PM
Sorry, found entry on help file

abebabe
10-06-2006, 12:36 PM
Here is snippet of code I'm using:

<title>Service times and calendar</title>
<script language="JavaScript">
<!--
function FP_preloadImgs() {//v1.0
var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
for(var i=0; i<a.length; i++) { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; }
}
function FP_swapImg() {//v1.0
var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length;
n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm;
elm.$src=elm.src; elm.src=args[n+1]; } }
}
function FP_getObjectByID(id,o) {//v1.0
var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
return null;
}
// -->
</script>
<?php $CSS=1; require("phpcalendar/phpcalendar/calendar.php"); ?>
</head>
<body onload="FP_preloadImgs(/*url*/'button5E.jpg', /*url*/'button5F.jpg', /*url*/'button64.jpg', /*url*/'button65.jpg', /*url*/'button67.jpg', /*url*/'button68.jpg')">
<div align="center">
<a name="top of page"></a>
<table border="0" cellpadding="0" cellspacing="0" width="730">
<tr>
<td height="9"></td>
</tr>
<tr>
<td background="images/top_bar_bg.gif" height="41">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<!--webbot bot="Include" u-include="includes/logo.htm" tag="BODY" --></td>
<td align="right">
<!--webbot bot="Include" u-include="includes/menu_global.htm" tag="BODY" --></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="27">&nbsp;</td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td valign="top" width="161">
<!--webbot bot="Include" u-include="includes/menu_main.htm" tag="BODY" --></td>
<td valign="top" width="26" rowspan="2">
<img border="0" src="images/main_left.gif" width="26" height="273"></td>
<td valign="top" width="498" bgcolor="#FFFFFF" rowspan="2">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<img border="0" src="images/main_top.gif" width="498" height="17"></td>
</tr>
<tr>
<td height="122">
<div id="flashcontent">
<img src="images/image_main_04.jpg" width="490" height="113"></div>
<script type="text/javascript">
var so = new SWFObject("flash_main_04.swf", "themeart", "498", "122", "6", "#FFFFFF");
so.write("flashcontent");</script>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="right" style="padding-right:19px" height="40">
<img border="0" src="images/bullet_banner.gif" width="42" height="12"></td>
<td width="410" class="banner">
<font size="2"><a href="#Weekly Services">
Weekly Services</a><a
<?php $OL=1; require("phpcalendar/phpcalendar/calendar.php"); ?>
href="#Pastors_and_Elders">

Brian
10-06-2006, 03:47 PM
So far so good, but you do have the OL code in the wrong place. It should be immediately after the <body> tag.

Now you need to add the code for the Mode of the calendar you want to display (as detailed in the Integration section of the instructions).

abebabe
10-07-2006, 10:37 PM
Brian, will run through this on Monday.

Thanks,

Abe :classic:

abebabe
10-10-2006, 04:41 PM
Brian here's link to calendar.php. Why is it I still don't see this on my webpage. Aslo the formatting looks nothing like the demo.php. Why is that?

http://www.flemingtonassemblyofgod.org/phpcalendar/phpcalendar/calendar.php

Thanks,

Abe

Brian
10-10-2006, 06:57 PM
You can't call the calendar.php file directly. Please view the Integration section of the instructions, especially the Important section for full details on how to properly add the calendar to your pages.

abebabe
10-10-2006, 07:27 PM
You can't call the calendar.php file directly. Please view the Integration section of the instructions, especially the Important section for full details on how to properly add the calendar to your pages.
Brian sorry for the very Newb questions, but I'm lost concerning relative path. I renamed a test page with php extension to test and here is the link. I'm getting all sorts of errors.

http://www.flemingtonassemblyofgod.org/nature_painting/FOAG%20redesign/nature_painting.tem/Test_cal.php

Any help is appreciated

abebabe
10-10-2006, 07:47 PM
Brian, I finally got a clue. Pasted folder into same directory as page and it works!

Trying the demo and I'm seeing multiple calendars but I believe I saw another thread on that problem.

Thanks for help,

Abe:clap:

abebabe
10-10-2006, 09:16 PM
Okay, problem I've been running into is that page I was working with was ".htm" extension as opposed to ".html". I can work in Frontpage with no hassles. I've been monkeying with demo file and for some reason it keeps repeating the calendar on the page and I would like to test drive adding events and mouse-overs, which I can't seem to get to work. Here's link to page. Thanks!

http://www.flemingtonassemblyofgod.org/nature_painting/FOAG%20redesign/nature_painting.tem/index_copy(1).html?mo=12&yr=2006

Brian
10-11-2006, 09:46 AM
If you're having problems getting pop-ups to work: https://www.easyphpcalendar.com/support/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=12

abebabe
10-11-2006, 09:51 AM
Brian, got it to work. You have been very helpful. I posted a question under the General Discussion concerning third option for removing copyright info and such. Could you take a look and reply there to me.

I'm ready to buy and really like what I see!

Thanks again!!