[Pro] Easy php Calendar

Need some coding help.

I’m trying to get this calendar to work. I’ve connected to a sql database so am quite happy there. My attempt is at http://sandiegoafa.org/calendar.php?mo=06&yr=2009

Now, I"m having some formatting issues, the calendar isn’t displaying properly.

The instructions (http://docs.easyphpcalendar.com/) say that I need to have css inserted into my page in order for it to display correctly. I think this is where my problem is, can’t get the code in the right position on the page.

The code directions read:

There must be a link to the CSS file in the header (just before the tag) of any page that displays the Easy PHP Calendar script.

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

*Replace “calendar/” with the actual path to the calendar directory relative to the directory of your web page.
If you use the mouse-over option, make sure the code below is in the BODY section of any PHP page that will display the Easy PHP Calendar script (preferably the first line below the tag.

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

*Replace “calendar/” with the actual path to the calendar directory relative to the directory of your web page.


I thought I knew how to do this using page/html markup but it’s not working for me. Can anyone kindly offer some advice?

Thanks,

Bill


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Well, first off Bill I may or may not have a clue how to do what you’re doing, but here’s two ideas.

  1. Would it have something to do with your path settings in your calendar? Instead of:
require("calendar/calendar.php")

it would be:

require("/calendar/calendar.php")
  1. I see also that it’s failing to load a js file and a CSS sheet. The locations it’s trying to read from are.
    JS - http://sandiegoafa.org/sandiegoafa/calendar/overLIB/overlib_mini.js and CSS for: http://sandiegoafa.org/sandiegoafa/calendar/theme/default/esstyle.css.

Perhaps those are the missing pieces to what you’re trying to do.


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks for the comments Dan. I think it does have something to do with calling the CSS template that adds in the style. I haven’t quite figured out how to call that template from the files that are on the server. There is a eestyle.css file and I think that renders the code I need. I’m figuring this out without a complete understanding of php…muddling through.

Bill

http://williammacdesign.com

On Thursday, June 25, 2009, at 12:26AM, “Dan J” email@hidden wrote:

Well, first off Bill I may or may not have a clue how to do what you’re doing, but here’s two ideas.

  1. Would it have something to do with your path settings in your calendar? Instead of:
require("calendar/calendar.php")

it would be:

require("/calendar/calendar.php")
  1. I see also that it’s failing to load a js file and a CSS sheet. The locations it’s trying to read from are.
    JS - http://sandiegoafa.org/sandiegoafa/calendar/overLIB/overlib_mini.js and CSS for: http://sandiegoafa.org/sandiegoafa/calendar/theme/default/esstyle.css.

Perhaps those are the missing pieces to what you’re trying to do.


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Bill,
It appears the stylesheet for the calendar is here;
http://sandiegoafa.org/calendar/theme/default/esstyle.css
and your html page is looking here for it;
http://sandiegoafa.org/sandiegoafa/calendar/theme/default/esstyle.css

Remove the extra ‘sandiegoafa’ reference in the path and you should be
set.
Regards,
Tim.

On 25 Jun 2009, at 07:52, Bill McCarroll wrote:

Thanks for the comments Dan. I think it does have something to do
with calling the CSS template that adds in the style. I haven’t
quite figured out how to call that template from the files that are
on the server. There is a eestyle.css file and I think that renders
the code I need. I’m figuring this out without a complete
understanding of php…muddling through.

FreewayActions.com - Freeware and shareware actions for Freeway
Express & Pro.

Protect your mailto links from being harvested by spambots with Anti
Spam.
Only available at FreewayActions.com

http://www.freewayactions.com


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Tim,

Still no luck…can’t get anything from changing the reference links.

:frowning:

Bill

On Jun 25, 2009, at 11:40 AM, Tim Plumb wrote:

Hi Bill,
It appears the stylesheet for the calendar is here;
http://sandiegoafa.org/calendar/theme/default/esstyle.css
and your html page is looking here for it;
http://sandiegoafa.org/sandiegoafa/calendar/theme/default/esstyle.css

Remove the extra ‘sandiegoafa’ reference in the path and you should
be set.
Regards,
Tim.

On 25 Jun 2009, at 07:52, Bill McCarroll wrote:

Thanks for the comments Dan. I think it does have something to do
with calling the CSS template that adds in the style. I haven’t
quite figured out how to call that template from the files that are
on the server. There is a eestyle.css file and I think that
renders the code I need. I’m figuring this out without a complete
understanding of php…muddling through.

FreewayActions.com - Freeware and shareware actions for Freeway
Express & Pro.

Protect your mailto links from being harvested by spambots with Anti
Spam.
Only available at FreewayActions.com

http://www.freewayactions.com


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Bill,
Looking at the source code for your calendar page (http://sandiegoafa.org/calendar.php
) I can see that the link to the CSS file is malformed;
/sandiegoafa/calendar/theme/index.htm/esstyle.css
The reference to index.htm in the middle of the URL is a bit of a
giveaway that the link is probably broken.

After a bit of scratching around I finally found a stylesheet at;
/calendar/theme/default/esstyle.css

I suspect there are a few more folders in the theme directory for each
of the other styles so your stylesheet link may be;
/calendar/theme/(the theme name)/esstyle.css

Regards,
Tim.

On 25 Jun 2009, at 18:34, Bill McCarroll wrote:

Hi Tim,

Still no luck…can’t get anything from changing the reference links.

:frowning:

FreewayActions.com - Freeware and shareware actions for Freeway
Express & Pro.

Protect your mailto links from being harvested by spambots with Anti
Spam.
Only available at FreewayActions.com

http://www.freewayactions.com


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Not sure where to make the edits. I have this code to pull in the
calendar and stylesheets:


html markup: before :

<?php $showTheme="esstyle.css"; ?> <?php $CSS=1; require("/var/www/html/sandiegoafa/calendar/ calendar.php"); ?>

html markup: after :

<?php $OL=1; require("/var/www/html/sandiegoafa/calendar/ calendar.php"); ?>

insert markup item:

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

Bill

On Jun 25, 2009, at 7:13 PM, Tim Plumb wrote:

Hi Bill,
Looking at the source code for your calendar page (http://sandiegoafa.org/calendar.php
) I can see that the link to the CSS file is malformed;


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Bill,
Unfortunately i don’t know Easy PHP calendar at all but looking at
the help docs I just found this;
‘Note: Always use relative paths. Do NOT use ‘http://www.YourDomainName.com/calendar/calendar.php
in the require command or the calendar will not perform as expected.’
at;
http://docs.easyphpcalendar.com/source/Integration/NormalMode.htm

Your examples all use absolute paths from the server root. Try
changing these to relative paths from the php file and see if that
makes any difference. For example;

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

If it looks like I’m guessing then… it’s because I am! :slight_smile:
Thanks,
Tim.

On 25 Jun 2009, at 19:28, Bill McCarroll wrote:

Not sure where to make the edits. I have this code to pull in the
calendar and stylesheets:


html markup: before :

<?php $showTheme="esstyle.css"; ?> <?php $CSS=1; require("/var/www/html/sandiegoafa/calendar/ calendar.php"); ?>

html markup: after :

<?php $OL=1; require("/var/www/html/sandiegoafa/calendar/ calendar.php"); ?>

insert markup item:

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

Bill

On Jun 25, 2009, at 7:13 PM, Tim Plumb wrote:

Hi Bill,
Looking at the source code for your calendar page (http://sandiegoafa.org/calendar.php
) I can see that the link to the CSS file is malformed;

FreewayActions.com - Freeware and shareware actions for Freeway
Express & Pro.

Protect your mailto links from being harvested by spambots with Anti
Spam.
Only available at FreewayActions.com

http://www.freewayactions.com


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi TIm,

Thanks for your valiant efforts!

I’m going to have to play with it a bit. I’m getting the calendar to
render (http://sandiegoafa.org/calendar.php) but it’s still not seeing
the css code for background colors and other styles.

I’m tenacious so will keep trying but I appreciate your great
suggestions.

Bill

On Jun 26, 2009, at 3:03 AM, Tim Plumb wrote:

Hi Bill,
Unfortunately i don’t know Easy PHP calendar at all but looking at
the help docs I just found this;
‘Note: Always use relative paths. Do NOT use ‘http://www.YourDomainName.com/calendar/calendar.php
in the require command or the calendar will not perform as expected.’
at;
http://docs.easyphpcalendar.com/source/Integration/NormalMode.htm

Your examples all use absolute paths from the server root. Try
changing these to relative paths from the php file and see if that
makes any difference. For example;

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

If it looks like I’m guessing then… it’s because I am! :slight_smile:
Thanks,
Tim.

On 25 Jun 2009, at 19:28, Bill McCarroll wrote:

Not sure where to make the edits. I have this code to pull in the
calendar and stylesheets:


html markup: before :

<?php $showTheme="esstyle.css"; ?> <?php $CSS=1; require("/var/www/html/sandiegoafa/calendar/ calendar.php"); ?>

html markup: after :

<?php $OL=1; require("/var/www/html/sandiegoafa/calendar/ calendar.php"); ?>

insert markup item:

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

Bill

On Jun 25, 2009, at 7:13 PM, Tim Plumb wrote:

Hi Bill,
Looking at the source code for your calendar page (http://sandiegoafa.org/calendar.php
) I can see that the link to the CSS file is malformed;

FreewayActions.com - Freeware and shareware actions for Freeway
Express & Pro.

Protect your mailto links from being harvested by spambots with Anti
Spam.
Only available at FreewayActions.com

http://www.freewayactions.com


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Bill

I have just used this PHP Event Calendar from PHP Jabbers ($29) http://www.phpcalendarscripts.com/

Easy installation and the style sheet is editable.

Just my 2cents

Cheers, Marcel


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Marcel,

Thanks for your brilliant suggestion. I installed this calendar and
it works just great, and very easy to install.

Thanks for the help, saved me many hours of handwringing!

Bill

On Jun 28, 2009, at 8:30 AM, Helveticus wrote:

Bill

I have just used this PHP Event Calendar from PHP Jabbers ($29) http://www.phpcalendarscripts.com/

Easy installation and the style sheet is editable.

Just my 2cents

Cheers, Marcel


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options