Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Pages: [1]   Go Down
Print
Author Topic: Embedding a calendar into a page  (Read 312 times)
0 Members and 1 Guest are viewing this topic.
vedawilliams
Guest
« on: January 12, 2005, 02:36:00 PM »

Hello,

I'm trying to embed a calendar into an HTML page with navigation, but I'm not sure how. Right now I'm trying:

<!-- #include virtual="http://www.durhamjaycees.org/cgi-bin/calendar_admin.cgi" -->

I'm reading the documentation, but I'm not seeing what I need. Moreover, this is my first time working with this, and I'm not sure if I need administrator access in order to embed it into the page. Note that the calendar is currently functional at www.durhamjaycees.org.

Can anyone help?

Thanks!

- Veda  (veda@localweb.com)

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: January 12, 2005, 07:56:00 PM »

** I'm not sure if I need administrator access in order to embed it into the page. **

No, but the page you're trying to embed it into must usually have a specific file name extension so the server knows to parse it for SSI tags. Your web space also has to be set up to allow SSI.

** Can anyone help? **

There are a number of links in the 'Links' section of the Unofficial CalendarScript - Mods and Plugins site that have information regarding the use of SSI with CalendarScript. reading those should help.

Dan O.

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #2 on: January 12, 2005, 08:03:00 PM »

BTW. You have spaces in the wrong places in the SSI tag you posted and also have use a URL which is not allowed. You also can only include the calendar itself not the administration page which is the URL from your SSI tag example.

If that is exactly what you're using, that may be one reason it isn't working. A proper SSI tag is like:

<!--#include virtual="/cgi-bin/calendar.cgi"-->

Maybe this resource would be best to start with?

LINK > BigNoseBird.Com's Server Side Include (SSI) Page

JMO

Dan O.

------------------

Logged
vedawilliams
Guest
« Reply #3 on: January 13, 2005, 03:50:00 PM »

Ok, some progress...

The file I want to embed to is Calendar.shtml. I updated my .htaccess file to allow .html and .shtml files.

I updated my include string to:

<!--#include virtual="/cgi-bin/calendar.pl"-->

Attempting to execute the page generates an [an error occurred while processing this directive] error.

Ok, so I go and download the SSI template file from http://www.much2.com/calendarscript/index.html.  The file calls <!--#include file="preferences.pl"-->   I don't even have this file on my machine, so I'm not sure where I'm supposed to get it from.  

What file am I supposed to be calling? Where can I get a preferences.pl file? And what is in this template anyways? I want to use the calendar as it currently appears on the website, and not have to reconfigure the look and feel, if possible: http://www.durhamjaycees.org/cgi-bin/calendar.cgi

Thanks, and sorry for being dense.

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #4 on: January 13, 2005, 09:18:00 PM »

** I updated my include string to: <!--#include virtual="/chi-bin/calendar.pl"-->

Is there a calendar.pl on your server??

BTW. If you can't get at straight call to the calendar file to work via SSI, you won't be able to use any other template either.

** page generates an [an error occurred while processing this directive] error. **

In addition to the file name extension thing, you might also want to check your hosts FAQs to see if 'include virtual' is even a supported SSI tag on their server. It isn't on all, just Apache servers AFAIK.

**  I want to use the calendar as it currently appears on the website, and not have to reconfigure the look and feel **

You don't have to reconfigure the look and feel unless you want the look and feel different. The calendar works as it is 'out of the box'.

** I'm trying to embed a calendar into an HTML page with navigation ... I want to use the calendar as it currently appears on the website **

BTW. You can not include the whole calendar display into another page. If you include anything from the calendar into another web page, it is usually just a listing of events.

See an example towards the right of http://www.much2.com/calendarscript/ssi-200406.gif  (note the "Monday, December 24")

**  And what is in this template anyways? **

A template is a template which tells the calendar.pl/calendar.cgi application how to format the data asked to display by the use.

JFYI

Dan O.

[This message has been edited by DanO (edited January 14, 2005).]

Logged
Pages: [1]   Go Up
Print
Jump to: