you can see the error here: http://www.wearemanalive.com/cgi-bin/calendar/calendar.pl
and here is a copy of my default.html http://www.wearemanalive.com/default.html
the error is:syntax error at (eval 3) line 384, near "} elsif" Missing right curly or square bracket at (eval 3) line 522, at end of line
but ive looked it over a hundred time, and there is no missing brackets that im aware of....
any thoughts?
** any thoughts? **
I would suggest you start again from scratch with dayspan template (if you really want to use it) and then make your customizations to it instead of trying to move parts of its codes elsewhere.
JMO
Dan O.
------------------
the reason i wanted to move the code from dayspan to my default.html is because the code in the dayspan seems pretty old. lots of variables have been replaced with static text and the css (both the stylesheet and the tag classes) are changed unneccessarily. i thought that the code needed from that would be fairly minimal.
most of the differences between it and the new 3.2.1 default.html are all unimportant
is there any programs that can evaluate my opening and closing tags in a perl script and show me them visually? i feel like problem is an easy fix, but its near impossible to find details like that
if i take out...
<% $i = 0; foreach $EVENT (@{$currRow[$COL][0]}) { $i++; %>
it seems to work....
i updated the default.htm at the link above, and you can see that line i commented out at line 291 in the source.
it looks great now...except the event that spans, is ALSO lsited on each day indivudally...and i cant seem to find what is causing that.
also, if you look at in Firefox, the formatting is all wierd. But in IE7 it looks perfect.
and again... http://www.wearemanalive.com/default.html has my updated source
im PRETTY sure the reason for the problem is from using DaySpan and the At A Glance mod's together...
im thinking th conflicting code is this....
This line of DaySpan code:
code:<% $i = 0; foreach $EVENT (@{$currRow[$COL][0]}) { $i++; %>
and this section of At A Glance code:
code:<% @dino = ( );@rubble = ( );$ct=0;$startday=8;$endday=17;$firsttime=0;%><%FOREACH EVENT%><%$greatkazoo=0;%><%$i++;%>
<% @dino = ( );@rubble = ( );$ct=0;$startday=8;$endday=17;$firsttime=0;%><%FOREACH EVENT%><%$greatkazoo=0;%><%$i++;%>
Im trying to blend them together to make both happy, but so far, im not knowlegable to make it work....
any idea?
[This message has been edited by beneath_the_ashes (edited February 25, 2007).]
change it from:
code: <% @dino = ( );@rubble = ( );$ct=0;$startday=0;$endday=24;$firsttime=0;%><%FOREACH EVENT%><%$greatkazoo=0;%>
<% @dino = ( );@rubble = ( );$ct=0;$startday=0;$endday=24;$firsttime=0;%><%FOREACH EVENT%><%$greatkazoo=0;%>
to...
code: <% @dino = ( );@rubble = ( );$ct=0;$startday=0;$endday=24;$firsttime=0;%><% $i = 0; foreach $EVENT (@{$currRow[$COL][0]}) { $i++; %><%$greatkazoo=0;%>
<% @dino = ( );@rubble = ( );$ct=0;$startday=0;$endday=24;$firsttime=0;%><% $i = 0; foreach $EVENT (@{$currRow[$COL][0]}) { $i++; %><%$greatkazoo=0;%>
if anyone wants to see more of the code i edited to mod it, let me know. basically the template that comes with DaySpan is outdated, so added DaySpan into the new 3.2.1 deafult.htm
DaySpan & At A Glance in 3.2.1, or something would be a more helpful title
Glad to hear it.
** is there a way to change the title of this thread? **
Not to my knowledge.
the problem is, to get the date to show up in the event view, you have to pass the datestring variable through the URL....
BUT with dayspan, it passes the last date from the events week, instead of passing the datestring for the LAST DAY of that event.
How can i pass the last date of an spanned event via the daystring?
i tried: &datestring=<%=$dateEnd %>but it passes a strange date back. about a month ahead.
Is there such a variable defined anywhere??
** How can i pass the last date of an spanned event via the daystring? **
<%= $EVENT->{'schedule'}->{'end'} %> or <%= SCHEDULE FIELD(end) %> should make the event schedule's end date available but it will be in Unix date/time format. It would have to be converted from there to change it to human readable format (or the format the $DAY->{datestring} variable is in). I don't know that that date is stored anywhere else already in that format.
code:use POSIX qw(strftime);my @end = gmtime($EVENT->{schedule}->{end});my $end_datestr = strftime(%Y%m%d, @end);
use POSIX qw(strftime);my @end = gmtime($EVENT->{schedule}->{end});my $end_datestr = strftime(%Y%m%d, @end);
[This message has been edited by musicvid (edited April 10, 2007).]