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


Login with username, password and session length

Search

 
Advanced search

8264 Posts in 1911 Topics- by 2176 Members - Latest Member: dsets5646
Calendar Script CommunityCustomizationHacks and Mods (Moderators: scott, DanO)Multiple Calendars in SSI workaround?
Pages: [1] 2   Go Down
Print
Author Topic: Multiple Calendars in SSI workaround?  (Read 2011 times)
0 Members and 1 Guest are viewing this topic.
pPittman
New Member
*

Karma: 0
Offline Offline

Posts: 0

Public relations


WWW
« on: October 19, 2005, 04:34:00 PM »

I am working on developing a site where I use multiple calendars for various reasons (differnt schedules).

The default ssi.html works very well with the default on the home page enableing me to pull all dates and display them nicely, however, I would also like to be able to display the individual schedules for each group involved as well in a similar format.

I tried copying the file ssi.html to ssi3.html and call that referenced to teh indivdual calendar but got the default grid somehow.

<!--#exec cgi="/calendarscript/calendar.pl?/calendarscript/calendar.pl?template=ssi3.html&duration=30d"-->

Any suggestions or would I be better off relearning a new script?

Paul

Logged

Don't ask a question if your afraid of the answer!
DanO
Moderator
Sr. Member
*****

Karma: 13
Offline Offline

Posts: 284

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


WWW
« Reply #1 on: October 19, 2005, 04:50:00 PM »

** and call that referenced to the indivdual calendar **

Where is that? I don't see that in the SSI tag you posted.

<!--#exec cgi="/calendarscript/calendar.pl?/calendarscript/calendar.pl?template=ssi3.html&duration=30d"-->

BTW. You can not have two "?" in a single url.

JFYI

Dan O.

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

Logged
pPittman
New Member
*

Karma: 0
Offline Offline

Posts: 0

Public relations


WWW
« Reply #2 on: October 19, 2005, 05:06:00 PM »

Sorry,  Was copy and pasteing and got the two combined.

Here is the call for the default: located at www.arppix.net/

<!--#exec cgi="/calendarscript/calendar.pl?template=ssi.html&duration=30d"-->

The specific calendar I wish to call on is "bulldogs" but need to have teh default one working on the home page as that reflects all scheduled dates.  

Here is the tag I included in the ssi3.html file in an effort to invoke only the bulldogs calendar.

<a

href="http://arppix.net/calendarscript/calendar.pl?calendar=bulldogs&view=Event&event_id=($in{'event_id'})&event_id=<%= EVENT

FIELD(id) %>"> <small><b><%= $EVENT->{'details'}->{'Who'} %><%= $EVENT->{'details'}->{'title'} %>

</b></small></a><small>  <%= $EVENT->{'details'}->{'eventtitle'} %> <i><%= $EVENT->{'details'}->{'location'}</i> %>

Again,
Sorry about the confusion.

Paul

------------------
Don't ask a question if your afraid of the answer!

Logged

Don't ask a question if your afraid of the answer!
pPittman
New Member
*

Karma: 0
Offline Offline

Posts: 0

Public relations


WWW
« Reply #3 on: October 19, 2005, 05:28:00 PM »

Don't ask me how but I did get it to do what I was looking for.

The call in the shtml file seems to be the key.  Here is the code that did the trick:

<!--#exec cgi="/calendarscript/calendar.pl?calendar=bulldogs&template=ssi3.html&duration=30d"-->

The only draw back right now is the entering of the dates in seperate calendars, but the fact that it is actually doing what I needed it to do is a small price to pay.

Paul

------------------
Don't ask a question if your afraid of the answer!

Logged

Don't ask a question if your afraid of the answer!
DanO
Moderator
Sr. Member
*****

Karma: 13
Offline Offline

Posts: 284

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


WWW
« Reply #4 on: October 20, 2005, 01:45:00 AM »

Well now you're specifying the calendar the template is to get the events from:

<!--#exec cgi="/calendarscript/calendar.pl?calendar=bulldogs&template=ssi3.html&duration=30d"-->

(You weren't in any of the other calls you posted.)

Glad to hear you figured it out.

BTW. The <!--#exec cgi SSI tag doesn't often accept a querystring to the URI. On Apache servers the <!--#include virtual SSI tag can be used instead:

<!--#include virtual="/calendarscript/calendar.pl?calendar=bulldogs&template=ssi3.html&duration=30d"-->


Dan O.

[This message has been edited by DanO (edited December 10, 2005).]

Logged
Drew
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #5 on: December 10, 2005, 03:39:00 PM »

I see on the documents page, the calendarscript does not support feeds for multiple calendars.... Is this a way to get around that?  I have like 10 calendars set up for different types of genres of events.... Of each of those genres I would like to display "today's events" in on the home page.....

So all I have to do is create multiple ssi.html's for each calendar, and then use the code listed there?

Little confused as I've never messed with SSI before.... Looks easy enuff thuogh...

Logged

pPittman
New Member
*

Karma: 0
Offline Offline

Posts: 0

Public relations


WWW
« Reply #6 on: December 10, 2005, 04:20:00 PM »

I have a seperate calendar set up for each "client" amd then go in and update each accordingly.  Kind of a pain in the butt, but the alternative is to just edit manually via HTML.
Lesser of two evils wins.  

Hopefully, in a future upgrade, something like this can be incorporated as it seems that more than I have a desire for it.  Thanks guys though for making available what you have though!

Paul

------------------
Don't ask a question if your afraid of the answer!

Logged

Don't ask a question if your afraid of the answer!
Drew
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #7 on: December 10, 2005, 05:25:00 PM »

eh?  so creating multiple feed's is indeed not possible?  I thought that's what you were refferring to with:
<!--#exec cgi="/calendarscript/calendar.pl?calendar=bulldogs&template=ssi3.html&duration=30d"-->
with "bulldogs" being the calendar name......  *sigh*  I guess if I would've read the documentation better, I would not have purchased script.  
Logged

DanO
Moderator
Sr. Member
*****

Karma: 13
Offline Offline

Posts: 284

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


WWW
« Reply #8 on: December 10, 2005, 06:44:00 PM »

** the calendarscript does not support feeds for multiple calendars **

I don't know what you mean by 'feeds'.

** I have like 10 calendars set up ... Of each of those genres I would like to display "today's events" in on the home page **

Depending on what SSI tags your server recognizes, that may not be a problem to do in CalendarScript. You should however keep in mind that if you do what you're planning, every time your home page is called, 10 CalendarScript scripts will be run. If your site is popular or if it gets spidered a lot, that could present problems for the server.

** So all I have to do is create multiple ssi.html's for each calendar **

You would only need multiple ssi.html files if each of the calendars where using different templates. Otherwise the same template can display events from any of the calendars.

** with "bulldogs" being the calendar name **

The calendar 'key'.

** if I would've read the documentation better **

It always helps... but there still should not be any problem doing what you want... depending on the limitations I stated above.

Dan O.

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

Logged
Drew
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #9 on: December 11, 2005, 09:47:00 AM »

DanO you made my day!  Wow, I'm so glad I can implement that.  Now I just gotta figure it out.  I'm on a server balancing host(multiple servers with instantaneous switchover with net congestion) with 300GB of bandwidth per month, so it shouldn't be a problem.  I know this wouldn't require bandwidth, more just processing power on the server, right?

Looks like I will have to ask my host, I don't think they use Apache servers.... hmmmm...

They are all using the same template (color theme, etc?).

I guess I'll read up more in the documentation and figure out when I get out of work tonight.

Thanks for your input!

Logged

DanO
Moderator
Sr. Member
*****

Karma: 13
Offline Offline

Posts: 284

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


WWW
« Reply #10 on: December 11, 2005, 02:00:00 PM »

** They are all using the same template (color theme, etc?). **

The colour settings of each calendar don't matter, just the templates selected to be used by them.

** I don't think they use Apache servers **

Than you'll be at the mercy of whatever SSI tags they support. Check their FAQs.

** more just processing power on the server, right? **

Yes.


 You know, it is possible to display events from all the different calendars at the same time (aka. on a single template) using the 'Meta Calendar' plug-in available at the Unofficial CalendarScript - Mods and Plugins site. Maybe that would be an alternative to calling the script multiple times on a single page?

JFYI

Dan O.

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

Logged
Drew
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #11 on: December 11, 2005, 02:35:00 PM »

Okay, I understand what you mean by template.... This is probably what I need to edit if I don't want the calendar to be 100% screen width, or is this a specific template for SSI feeds?

Hmmm... All events under one SSI tag with the Meta-Calendar?  Question:  If I went this route, each event listed under "Today's Events", will it identify which calendar each event came from?  If not, it will not be a good option since on any given day, over the 10 calendars, there could quite easily be 50-60 events for one day.

If you might lead the blind a moment here, what is the SSI code I should be using to pull my daily events for each calendar? I understand I will have to redo it 9 times over replacing the "name" of the calendar for each of my other "Today's Events" SSI codes.

Is there anything I can edit crons/mimes that would allow me to execute the SSI code, or would my host be directly responsible of whether or not the code would be compatible with my server?

I really appreciate your help and prompt replies....

Logged

Drew
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #12 on: December 11, 2005, 02:58:00 PM »

Looks like my host does indeed support SSI, so I will be working on this as soon as I get home. http://kb.powweb.com/categories/SSI/

If anyone knows the code I need for "Todays Events" that identifies the calendar, you know I would greatly greatly greatly appreciate it  

Thanks for all the help!

Logged

Drew
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #13 on: December 11, 2005, 11:27:00 PM »

okay...  after doing pretty much everything wrong that I possibly could... I finally got it!!  My big problem was not realizing the code had to be on a .shtml page for the server to parse it with my host.


Well, I got it working and it works for the multiple calendars:
http://www.review-mag.com/Home.shtml

Now my problem is:
#1 I want those events listed to be a link to their event on the calendar.  Is there a hack or easy template modification for this?

and
#2 as I'm here ready to turn in, I notice it is well over a half hour past midnight and it is showing yesterday still.  Does this have to do with my server time or something I can adjust within calendarscript?


I would also rather pull the date off each one since they're listed right on top of eachother, would that be just removing this from template? :

<DT><%=$DAY->{dayname}%>, <%=$DAY->{monthname}%> <%=$DAY->{dd}%>

Logged

DanO
Moderator
Sr. Member
*****

Karma: 13
Offline Offline

Posts: 284

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


WWW
« Reply #14 on: December 11, 2005, 11:30:00 PM »

** All events under one SSI tag with the Meta-Calendar? If I went this route, each event listed under "Today's Events", will it identify which calendar each event came from? **

You would have to modify the template to display that information (in whatever way you would like - colour coding, graphics, etc.). It is possible - see the Meta Calendar installation instructions for possible conditionals which could be used in the template.

** If you might lead the blind a moment here, what is the SSI code I should be using to pull my daily events for each calendar? **

It depends on the SSI tags that your server allows, 2 examples are shown in the messages above. The duration=30d is obviously the duration of events to be displayed, the calendar=... the particular calendar's key reference and template=... the name of the template to be used to display the evens on.

There are several links in the Unofficial CalendarScript - Mods and Plugins site's 'Links' section dealing with SSI and CalendarScript. You might want to read them to see it they give you any clues.

** If anyone knows the code I need for "Todays Events" that identifies the calendar **

It would be the same code used to display "Todays Events" that doesn't identify the calendar... with the addition of the calendar key identification to the query string (which is illustrated a couple of messages above).

Dan O.


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

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