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: Having trouble with SSI  (Read 706 times)
0 Members and 1 Guest are viewing this topic.
radar
New Member
*

Karma: 0
Offline Offline

Posts: 0

IT Director


WWW
« on: October 11, 2002, 06:23:00 PM »

I have searched the forum and read the help doc's, but still have not been able to figure out how to get the SSI to work. The site I Admin is on a Cobalt 550 and unfortunately it has Front Page extensions installed, and I use Front Page to do some of the coding.  I can not get the include syntax to work.  I am using the following:
"<!--#include virtual="scripts/calendar.pl"-->"

I do not have a CGI bin that I call on to run my scripts, at least in my web root.  When I do insert the above code nothing happens at all.  I have went and edited the ssi.txt to say the following:

template=ssi.html duration=1d

When I view the ssi.html page just by its self I get a bunch of junk that shows up.
http://www.westpointupc.com/scripts/calendarscript/templates/calendars/default/ssi.html

I know I read a lot of replies to "ssi trouble" post that said that this really isn't all that hard, but this one has me stumped.

Anyone with some words of wisdom please let me know I would greatly appreciate it.

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: October 11, 2002, 10:08:00 PM »

** When I do insert the above code nothing happens at all. **

Is the SSI tag removed from the source code of the page?

If not, your server isn't parsing the page for SSI tags. Most servers need files to be named with a .shtml file extension to signal the server to parse them.

Dan O.

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

Logged
radar
New Member
*

Karma: 0
Offline Offline

Posts: 0

IT Director


WWW
« Reply #2 on: October 12, 2002, 10:49:00 AM »

BINGO!  That got it Dan.  Thank you very much.


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

Logged
pardebob
New Member
*

Karma: 0
Offline Offline

Posts: 0

Retired


WWW
« Reply #3 on: October 16, 2002, 07:02:00 AM »

DanO
I have the same problem and my screen looks exactly like the other post in this thread.
I have renamed to ssi.shtml but when I go to that page on my server I get that wrong output.
Can you give me any more help?

pardebob

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

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: October 16, 2002, 01:00:00 PM »

** I have renamed to ssi.shtml **

You shouldn't have to rename anything.

** when I go to that page on my server I get that wrong output **

What exactly is the "wrong output"?

You can not call that file directly and expect anything to be displayed. Templates are only meant to be called through and parsed by the calendar script.

Dan O.

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

Logged
pardebob
New Member
*

Karma: 0
Offline Offline

Posts: 0

Retired


WWW
« Reply #5 on: October 16, 2002, 01:54:00 PM »

** I have renamed to ssi.shtml **
You shouldn't have to rename anything.

++ I checked my web host and was told that ssi's must have a .shtml extension to work properly on my server.

** when I go to that page on my server I get that wrong output **

What exactly is the "wrong output"?

++ Please go to:  http://www.evranch.org/cgi-bin/calendar/calendarscript/templates/calendars/default/ssi.shtml
to see the output.

You can not call that file directly and expect anything to be displayed. Templates are only meant to be called through and parsed by the calendar script.

++ I do not understand this. Do you mean I must make a template to display ssi.html or ssi.shtml??

Can you give me any more help on how to get ssi.html to work on my server.I am trying to get a list calendar for today to call from my sites home page.?

pardebob

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #6 on: October 16, 2002, 06:23:00 PM »

     
quote:
I checked my web host and was told that ssi's must have a .shtml extension to work properly on my server.

Yes, the pages that have the SSI tag in them, not the page being called by it.

     

quote:
You can not call that file directly and expect anything to be displayed. Templates are only meant to be called through and parsed by the calendar script.

++ I do not understand this.


To see an example of what the actual template file will look like once called through the script, look at the following URL:

http://www.evranch.org/cgi-bin/calendar/calendar.pl?template=ssi.html

     

quote:
I am trying to get a list calendar for today to call from my sites home page.?

Then you change the parameters in the ssi.txt file and call the calendar script from a web page with a .shtml file extension with an SSI tag like:

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

or

<!--#exec cmd="/cgi-bin/calendar/calendar.pl" -->

or

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

depending on which your server understands.

        NOTE: You should not need to include the ?template=ssi.shtml (as shown in the example above) in your SSI calls as the script should know to use that template when called via SSI (provided you change the reference to it in the ssi.txt file since you've changed the file name from what it was originally).

Dan O.


[This message has been edited by DanO (edited August 20, 2003).]

Logged
pardebob
New Member
*

Karma: 0
Offline Offline

Posts: 0

Retired


WWW
« Reply #7 on: October 16, 2002, 08:01:00 PM »

DanO

Thank you that helps me.
I will do as you suggest.

pardebob

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

Logged
pardebob
New Member
*

Karma: 0
Offline Offline

Posts: 0

Retired


WWW
« Reply #8 on: October 17, 2002, 09:00:00 AM »

DanO

I am still struggling.
This will be my last post I either get it now or I cannot do it.

This is ssi.txt file
template=today.shtml
duration=1d


This is today.shtml file that I have made:
<!--#exec cgi="/cgi-bin/calendar/calendar.pl"-->

I have changed the names of the files that I made .shtml back to .html

Here is what I get: http://www.evranch.org/cgi-bin/calendar/calendar.pl?template=today.shtml

To repeat I am trying to get a list calendar for today on my home page.

Can you try to help me one last time??

pardebob

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #9 on: October 17, 2002, 07:27:00 PM »

   
quote:
I am trying to get a list calendar for today on my home page.

1. You put the SSI call to the calendar.pl file **in your home page's code**

2. You make sure that **that page** has an .shtml file name ending.

3. You modify the ssi.txt file with the data you want the calendar to use. Meaning, normally the template=... will point to the template you want included into your main page (usually ssi.html unless you've changed it).

BTW. If the whole calendar gets included by the SSI call, it is NOT working correctly. Only a list of upcoming events should be included into your page when called via SSI.

That's it!

Dan O.

[This message has been edited by DanO (edited March 25, 2005).]

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