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)Adding list to index page using SSI
Pages: [1]   Go Down
Print
Author Topic: Adding list to index page using SSI  (Read 534 times)
0 Members and 1 Guest are viewing this topic.
Mango
New Member
*

Karma: 0
Offline Offline

Posts: 0

Designer


WWW
« on: August 02, 2003, 04:43:00 PM »

Hellos, I downloaded the hack/mod but when I follow the directions, the whole huge calendar appears on my index page, what did I do 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: August 03, 2003, 01:15:00 PM »

** I downloaded the hack/mod  **

It might help to know which hack/mod you're referring to.

** what did I do wrong? **

Without knowing what you did, it will be difficult to say what you did wrong.

If you're calling the calendar properly via SSI, it may be possible that the script is not recognizing it is being called from such a tag. In that case it may be possible to alter the SSI tag to pass the needed variables to the script in that SSI call.

The previous forum message "SSI head ache !" has information about that.

Dan O.

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

Logged
Mango
New Member
*

Karma: 0
Offline Offline

Posts: 0

Designer


WWW
« Reply #2 on: August 05, 2003, 05:05:00 PM »

Ok i fixed the whole calendar showing up by changing to :

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

but the font is not Tahoma and it looks like this:

Tuesday, August 5
• 5:30 pm -7:30 pm : National Night Out

Thursday, August 7
• 6:00 pm -9:00 pm : First Thursday
• 6:30 pm : Free Concert

Saturday, August 30
• 10:00 am -6:00 pm : Art in the Pearl

with no links to main list. where do I change this?

------------------
Thanks
Jeff
http://www.oldtownflorist.com

Logged

Mango
New Member
*

Karma: 0
Offline Offline

Posts: 0

Designer


WWW
« Reply #3 on: August 06, 2003, 05:54:00 PM »

Was talking about the headlines hack.....

------------------
Thanks
Jeff http://www.oldtownflorist.com

[This message has been edited by Mango (edited August 06, 2003).]

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: August 06, 2003, 09:19:00 PM »

** where do I change this? **

In the template which is displaying the results.

Dan O.

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

Logged
Mango
New Member
*

Karma: 0
Offline Offline

Posts: 0

Designer


WWW
« Reply #5 on: August 06, 2003, 10:39:00 PM »

Thanks for gettin back DanO, but Im still confused, there are 2 templates used right? Im using default.html and ssi_max_days.html, which needs to be altered?

------------------
Thanks
Jeff
http://www.oldtownflorist.com

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: August 07, 2003, 02:03:00 PM »

** there are 2 templates used right? Im using default.html and ssi_max_days.html, which needs to be altered? **

I see by your other message (Editing all text to Tahoma) that you've figured that out?

Dan O.

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

Logged
Mango
New Member
*

Karma: 0
Offline Offline

Posts: 0

Designer


WWW
« Reply #7 on: August 07, 2003, 02:15:00 PM »

Dan0, thanks fer chekcing back, Ive figured out the Tahoma text issue, just wondered which template I needed to add links to them, that would be the ssi_max_days.html?

------------------
Thanks
Jeff
http://www.oldtownflorist.com

Logged

Mango
New Member
*

Karma: 0
Offline Offline

Posts: 0

Designer


WWW
« Reply #8 on: August 07, 2003, 11:02:00 PM »

<%
&getEvents( {'duration'=>$in{duration}} );
$DAY = $Grid->{'grid'}->
  • ->
  • ;
    $EVENTS = $DAY->{events};
    $total_events=0;
    $max_days=10;
    $total_days=0;
       $time = time;
       ($neg_pos,$hours) = ($vars{time_offset} =~ /([+-])(\d+)/);
       if ($neg_pos eq '+') {
          $time += (60*60 * $hours);
       }
       else {
       $time -= (60*60 * $hours);
       }
       ($mday,$month,$year) = (localtime($time))[3,4,5];
       $month = $month+1;
       $year = $year+1900;
       $datestamp = sprintf("%4.4d%2.2d%2.2d",$year,$month,$mday);
    %>

    <DL>
     <font face="Tahoma" size="2">
     <%FOREACH EVENTLIST%>
     <%IF EVENTS EXIST%>
     <%$total_events++;%>
     <%if($DAY->{dd} >= $mday) { %>
     <%if($total_days >= $max_days) {
            exit();
       }%>
     <%$total_days++;%>
     </font>
     <DT><font face="Tahoma" size="2" color="#800000"><b><font color="#000000"><%=$DAY->{dayname}%></font></b></font><font face="Tahoma" size="2"><b><font color="#000000">,</font></b>
       <font color="#800000"><b><font color="#000000"><%=$DAY->{monthname}%></font></b></font>
       <font color="#800000"><b><font color="#000000"><%=$DAY->{dd}%></font></b></font>
       </font>
     <DD> <font face="Tahoma" size="2">
       <%FOREACH EVENT%>
       • <a href="<%= $ENV{SCRIPT_NAME} %>?view=Event&event_id=<%= $EVENT->{details}->{id} %>">
           <%= $EVENT->{'details'}->{'title'} %></a><BR>
       <%/FOREACH%>
       <%/IF%>
       <%}%>
       <%/FOREACH%>
       </font>
    </DL>
    <font face="Tahoma" size="2">
    <%unless($total_events){%>
    </font>
    <CENTER>
     <font face="Tahoma" size="2"><I>No Events</I></font>
    </CENTER>
    <font face="Tahoma" size="2">
    <% } %>
    </font>
    <blockquote>
     <div align="left"><font face="Tahoma" size="2"><A HREF="../../../<%=$AdminConfig->get("calendar_url")%>?calendar=<%=$Calendar%>">View
       Calendar</A></font></div>
    </blockquote>

    ahhh finally


    ------------------
    Thanks
    Jeff http://www.oldtownflorist.com

    [This message has been edited by Mango (edited August 07, 2003).]

Logged

Pages: [1]   Go Up
Print
Jump to: