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
Calendar Script CommunityCustomizationHacks and Mods (Moderators: scott, DanO, Marty)Headlines (SSI templates)
Pages: [1]   Go Down
Print
Author Topic: Headlines (SSI templates)  (Read 1302 times)
0 Members and 1 Guest are viewing this topic.
odysious
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« on: March 02, 2006, 10:33:00 AM »

Hi,
I'm tring to setup the Headlines (SSI templates) new_minical found on this page: http://www.much2.com/calendarscript/index.html#templates  

I'm a novice at this and the instructions are not very clear. I am hoping someone could help me out.

Here are the instructions that I followed with my comments.

1) Copy the enclosed templates to the directory that contains ssi_html. -> Comment: I do not have a directory that contains ssi_html. I however do have ssi.html so I copied the template (new_minical) there.

2) Edit ssi.txt to point to the template of your choice. -> Comment: I editied the ssi.txt value template=ssi.html to read template=new_minical.html

3) Open the new ssi_*.html templace in an editor. If you are using the ssi_max* templates, change the value of either $max_days or $max_events (depending on the template chosen) to the number you'd like for the template to display. The default values are three. -> Comment: I did not wish to change the value so I did not open the new_minical.html

I then added SSInclude to my home page (<!--#exec cgi="/cgi-bin/calendarscript3/calendar.pl"--> modified it to point to the correct path to my calendar.pl and all I got was [an error occurred while processing this directive]

What am I doing wrong?

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: March 02, 2006, 12:59:00 PM »

** I do not have a directory that contains ssi_html **

That was a typo by the author.

** I then added SSI [tag] to my home page (<!--#exec cgi="/cgi-bin/calendarscript3/calendar.pl"--> modified it to point to the correct path to my calendar.pl and all I got was [an error occurred while processing this directive] **

That means that either the SSI tag you used wasn't properly recognized by the server or the file was not able to be included or was just not found.

I'm afraid SSI is not handled uniformly by the various web servers out there. It may take some trial and error to get it working on your server. Make sure the path you used was correct (try it right in a browser location bar - adding the domain of course), check your host's SSI FAQs for what SSI tags their server (whatever software that is) recognizes. If that fails, you may find some alternate SSI tags to try in the previous forum message "SSI head ache!".

JFYI

Dan O.

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

Logged
odysious
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #2 on: March 02, 2006, 01:47:00 PM »

Thanks DanO

I tried using <!--#include virtual="/cgi-bin/calendar.pl"--> and that worked. However it is not mini at all.

It did shrink the calendar however not even close to the example shown here http://www.much2.com/calendarscript/ssi-200406.gif

Any suggestion would be appreciated

Thanks again.

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #3 on: March 02, 2006, 08:57:00 PM »

** that worked. However it is not mini at all. **

Did you read my reply to the message that started' "Thanks for the help Dan......but when I use the <!--#include virtual="/cgi-bin/calendar.pl"--> I get the whole calendar (grid form)..."?

It should have answered your latest question.

Dan O.

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

Logged
odysious
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #4 on: March 03, 2006, 07:29:00 AM »

I checked it out and it now works.

Thanks

However I do have another question. Is it possible to have the date and time displayed on the Detail View of an event?

Thanks again.

[This message has been edited by odysious (edited March 03, 2006).]

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #5 on: March 03, 2006, 12:29:00 PM »

** I checked it out and it now works. **

I assume you modified your SSI tag as was shown there in the example?

** However I do have another question. Is it possible to have the date and time displayed on the Detail View of an event? **

That is MUCH more complicated to achieve. You can find a link to at least one message regarding it in the 'Links' section of the Unofficial CalendarScript - Mods and Plugins site under "Event Details mods:".

BTW. If you have any other questions NOT related to the original message topic, it would likely be best if you started a new message for them.

Dan O.

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

Logged
odysious
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #6 on: March 03, 2006, 12:41:00 PM »

**  I assume you modified your SSI tag as was shown there in the example? **

Yes I used <!--#include virtual="/cgi-bin/calendar.pl?template=new_minical.html&duration=2d&calendar=default"--> and it worked great.  


** BTW. If you have any other questions NOT related to the original message topic, it would likely be best if you started a new message for them. **

Sorry about that. I will know better next time.

Thanks for the help. Greatly appreciated.

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

Logged
newtech
New Member
*

Karma: 0
Offline Offline

Posts: 28


« Reply #7 on: August 02, 2007, 09:24:19 PM »

I am having the same problem as listed before-the mini calendar is not showing on my page, instead full calendar.   I do not see the post that is referenced earlier as the solution:
Did you read my reply to the message that started' "Thanks for the help Dan.  .  .  .  .  .  but when I use the <!--#include virtual="/cgi-bin/calendar.  pl"--> I get the whole calendar (grid form).  .  .  "?

I have used both:
<!--#include virtual="/cgi-bin/calendar.  pl"-->

and

<!--#include virtual="/cgi-bin/calendar.  pl?template=new_minical.  html&duration=2d&calendar=default"-->
EDIT I was able to get the above to work.  What is the duration=2d suppose to do.  I don't see any difference using it or not.
« Last Edit: August 02, 2007, 11:20:16 PM by newtech » Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #8 on: August 03, 2007, 01:45:08 AM »

** I am having the same problem as listed before-the mini calendar is not showing on my page, instead full calendar. **

Than your server isn't reading the ssi.txt file to find the template to use. You'll have to try calling the script and adding the template parameter in the call (see the following link)... if it works on your server software.

LINK > SSI usage


**  I do not see the post that is referenced earlier as the solution: **

You mean the the previous forum message "SSI head ache!"? That file was deleted from the previous forum. I had linked to an archived version but it looks like the new CalendarScript owners have banned that service from their servers so archive material is not longer available. It's too bad. Sad

** What is the duration=2d suppose to do. **

Display 2-days worth of events. Search for "duration" in the page at the following link:

LINK > Customization > Modifying Display Templates.

Dan O.
Logged
newtech
New Member
*

Karma: 0
Offline Offline

Posts: 28


« Reply #9 on: August 03, 2007, 03:18:32 AM »

Quote
Display 2-days worth of events.
So, then if I am understanding this correctly, then in:
<!--#include virtual="/cgi-bin/calendar. pl?template=new_minical.   html&duration=2d&calendar=default"-->

2d is not a correct parameter(of no value) for the string above.   The reason is the template is a mini calendar and a mini calendar is not going to show 2 days of events.  The 2d parameter would only work if the template was showing a list, not a calendar, correct?

Asking this to see if I am understanding the parameter and template concepts.  I need to be able to figure out how to have another template that will show a list, not grid, of 30-60 days of events.
Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #10 on: August 03, 2007, 08:31:39 PM »

** 2d is not a correct parameter (of no value) for the string above. **

I'm not positive of what variables that template expects to be passed but if it isn't displaying just 2 day's worth of events, it likely isn't needed, no.

**  I need to be able to figure out how to have another template that will show a list, not grid **

That's what the ssi.html template that ships with CalendarScript does. It will  accept (and act upon) the duration variable when passed.

Dan O.
Logged
Pages: [1]   Go Up
Print
Jump to: