My server does not allow SSI execution calls but I can include virtual commands along with the normal h aref commands.
I can understand the basics of scripting, but by no means am I an expert.
Any assistance or direction would be appreciated!
Paul Pittman
What are virtual commands?
If you can't include a script into your pages via SSI, you could display it in an iframe or I recall reading about some elaborate JavaScript method. You could try searching the forums.
I don't know any other way it would be possible.
Dan O.
------------------
I pulled it from the source of the display. Don't know if I'm going about this right or not, but at least I got something!
The problem now is calling the displayed text for upcoming events AFTER this.
Hope this helps.
I have placed it into an shtml file: http://www.arppix.com/home4.shtml
and it displays what I need PLUS. Is there a way to remove the top and bottom parts of the display so that you ONLY get the scheduled dates?
I played around with the SSI.HTML but really screwed something up. Just call me dumb.
At least I was smart enough to save the original 1st and get it working.
Paul
That's all the ssi.html template file should produce.
It looks like the calendar does not recognize it is being called via SSI and just loading the regular calendar. This is what the output should look like when called via SSI: http://www.arppix.com/iracal/calendar.pl?template=ssi.html&duration=365d
You can try using an SSI call like:
"<!--#exec cgi="/iracal/calendar.pl?template=ssi.html&duration=365d"-->
But that won't work on many servers.
<!--#include virtual="/cgi-bin/calendar.pl?duration=10d&template=ssi.html" -->
You might have to adjust the path to suit your site.
------------------Dale Ray
[This message has been edited by eladyar (edited August 20, 2004).]
virtual
The value is a (%-encoded) URL relative to the current document being parsed. The URL cannot contain a scheme or hostname, only a path and an optional query string. If it does not begin with a slash (/) then it is taken to be relative to the current document.
A URL is constructed from the attribute, and the output the server would return if the URL were accessed by the client is included in the parsed output. Thus included files can be nested.
If the specified URL is a CGI program, the program will be executed and its output inserted in place of the directive in the parsed file. You may include a query string in a CGI url:
<!--#include virtual="/cgi-bin/example.cgi?argument=value" --> include virtual should be used in preference to exec cgi to include the output of CGI programs into an HTML document.
at: http://httpd.apache.org/docs/mod/mod_include.html
------------------Dale Ray [This message has been edited by eladyar (edited January 29, 2003).]
The script is behaving EXACTLY as I need it to. I don't know what you did or changed, but it worked!
I do have a question though concerning the duration. The "duration=365d" argument in the tag. Does this mean that it will display all events in the schedule for 365 days or can I just modify it to however many days I need. (ie 7d, 30d, etc).
Eladyar: I appreciate your help too. I knew guys like you were out there to help us uneducated wannabe's trying to do good in our own way. I did try your tag but nothing happened. All I got was a blank screen. As you probably gathered from above, I apparently have a screwy server. So what else is new. Thank you anyway!
I appreciate all of you guys help! If you want to see your work and efforts in action, see http://www.irasprints.com.
I will definately be in touch with Matt!
Thanks again.
Paul Pittman!IRA Online
quote: Does this mean that it will display all events in the schedule for 365 days or can I just modify it to however many days I need. (ie 7d, 30d, etc).
You can change it to what ever duration you want.
I knew that I couldn't use the "<!--#exec cgi" on my server and had to use the "<!--#include virtual=".
Your welcome, I was just trying to pitch in. There are many people here who offer help.
quote:"duration=365d" argument in the tag. Does this mean that it will display all events in the schedule for 365 days or can I just modify it to however many days I need. (ie 7d, 30d, etc).
Yes.
quote:Could this explain why I was having trouble to begin with and what can I do (if anything) to avoid future problems
Find a host running Apache web server software. JMO
** That got it **
Glad to hear it.
How can I show some seperation between the date and the event?
I edited the /default/ssi.html file and tried to put a table between the date and events but saw no difference.
"<!--#include file="preferences.pl"--><%&getEvents( {'duration'=>$in{duration}} );$DAY = $Grid->{'grid'}->
You should be able to modify it to add any other details you want.
------------------Dale Rayhttp://www.gavitsports.org
In the ssi.html template file it is the <DL> <DT> <DD> that does the formatting of the data. I don't know what effect putting the table code where you have will effect the layout. You can read about the <DL> tag usage at: http://www.ncdesign.org/html/030text.htm#list
If you went back to the original ssi.html file and just removed those tags, you could add spacing with just <P>, <BR> or <BR><BR> tags or use the template code that eladyar supplied.
Thanks again guys!
You guys definately know your stuff!