I've installed the older version of Calendar script for two clients and I've paid to upgrade to the newer version for both of them. The one with a question is for an arts coalition currently at a temporary url: http://www.newslettersandmore.net/~eac/cgi-bin/calendar.pl
All their members enter events into the calendar. Once a month they want me to make a list of that month's events to email to their mailing list. I thought I'd use the List Display mode and copy the html since they want links in the email. So far, so good. That worked fine. But when I sent them the email they told me they want me to sort by interest area (ie: dance, music, theatre, etc).
So then I thought I'd do a search on each of those and get separate lists for each modality. WRONG. I have the free search utility from AtomZ installed and when I try to use the CalendarScript search I get back an AtomZ search result saying it can't find anything! Apparently there's some conflict going on there and I can't get rid of the AtomZ search feature for the rest of the site. I hope there's a solution because one of the reasons they wanted the upgrade was so their calendar listings would be searchable and AtomZ wasn't indexing the listings.
Meanwhile, what other solutions might there be to allow me to gather calendar listings by interest area? Should I have each organization be required to list their items with their modality as the Title (I could change title to "interest area"). Is there a function already there that I'm missing that would help me with this?
Thanks for any help. I appreciate your patience with my lack of knowledge.
Sheila Hoffman
The problem is that the HTML form code for the Atomz search box is never closed on the calendar pages. (Maybe not on the sire pages either?)
You have:
<form method="get" action="http://search.atomz.com/search/"><input size=15 name="sp-q"><br><input type=submit value="Search"><input type=hidden name="sp-a" value="sp100166c0"></form& n b s p ;</P></TD></TR></TABLE> . . .
Note the bolded part.
** Meanwhile, what other solutions might there be to allow me to gather calendar listings by interest area? Should I have each organization be required to list their items with their modality as the Title **
I don't know if it would be necessary to use the title field but having a field with the various categories would likely make separating the different events easier.
Dan O.
[This message has been edited by DanO (edited January 22, 2003).]
I appreciate the information. I hate to appear stupid but I'm not quite sure what to do. I don't write code. What is there is pasted in from AtomZ.
I understand that there's something missing from the code but is what you bolded what you're saying I need to add? It seems to already be there. And would this be in the default.html of the template I'm using? I just tried fussing with that code and it didn't make any difference.
Please spell it out for this novice. Thanks again.
Sheila
------------------Sheila HoffmanNewsletters & MoreFast, Affordable, EffectiveFull-Service Web & Print Design in Seattlewww.newslettersandmore.net
</form>& n b s p ;</P></TD></TR></TABLE> . . .
You're missing the > right after </form
** And would this be in the default.html of the template I'm using? **
You're using the OldStyle templates which I'm not familiar with. I don't know if that is what it's named nor if there may be any others that might have the same error which will have to be corrected as well.
BTW. There should not be any spaces between the & n b s p ; part of it. I had to add them so that code would display in the forums.
Thanks again. I appreciate your quick responses and that you're not making me feel dumb! I knew that codes needed to have a close on the end. I wasn't seeing that gap. However, unless I failed to fix what you told me to, it doesn't seem to fix the problem. I still get an AtomZ search result when searching via the calendar search. Would you mind checking to see if that's what you get too and if the code appears fixed to you. I checked all the template html files and only two of them had atomz code and I fixed them both.
Thanks,Sheila
I just checked your page and when I view the source code the closing tag for the Atomz search form is still not closed properly.
If loaded in an editor without word wrap on the bad line is number 153.
------------------
Dale Ray
[This message has been edited by eladyar (edited January 23, 2003).]
[This message has been edited by eladyar (edited August 20, 2004).]
<!-- Atomz Search HTML for Eastside Arts --><form method="get" action="http://search.atomz.com/search/"><input size=15 name="sp-q"><br><input type=submit value="Search"><input type=hidden name="sp-a" value="sp100166c0"><input type=hidden name="sp-p" value="any"><input type=hidden name="sp-f" value="iso-8859-1"></form><TR><TD WIDTH=115><P> </P></TD></TR></TABLE></TD></TR></TABLE>
Should I be looking somewhere else? This is from the template default.html and it's the same in the day.html which are the only two templates that have the atomz in it.
I'm feeling quite dense now. Maybe a screen capture of it with it circled would help? I'm guessing it's one of the other codes immediately follwing that's not closed because there's a > at the end of </form> which is where Dan said I needed it.
Thanks for your help and patience.
I checked the form page again at this url: http://www.wwwroot4.net/~eac/cgi-bin/calendar.pl?template=search.
Here is what I see when I view your page's source:
code:<!--END CODE -->?</P></TD></TR><TR><TD><P><!-- Atomz Search HTML for Eastside Arts --><form method="get" action="http://search.atomz.com/search/"><input size=15 name="sp-q"><br><input type=submit value="Search"><input type=hidden name="sp-a" value="sp100166c0"></form?</P></TD></TR></TABLE></TD></TR></TABLE><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=157 NOF=LY><TR VALIGN=TOP ALIGN=LEFT><TD WIDTH=6 HEIGHT=18><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=6 HEIGHT=1 BORDER=0 ALT=""></TD><TD WIDTH=151><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=151 HEIGHT=1 BORDER=0 ALT=""></TD></TR><TR VALIGN=TOP ALIGN=LEFT><TD></TD><TD WIDTH=151 CLASS="TextObject"><P STYLE="text-align: center;"><SPAN STYLE="font-size: xx-small;">Website generously donated by:</SPAN><BR><TABLE WIDTH="100%" BORDER=0 CELLSPACING=4 CELLPADDING=0 NOF=TE><TR><TD ALIGN="CENTER"><A HREF="http://www.kingcountyarts.org" target=_blank><IMG ID="Picture30" HEIGHT=25 WIDTH=130 SRC="../assets/images/kingcoarts.jpg" BORDER=0 ALT=""></A></TD></TR></TABLE></P></TD></TR></TABLE></TD><TD><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 NOF=LY><TR VALIGN=TOP ALIGN=LEFT><TD WIDTH=19 HEIGHT=34><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=19 HEIGHT=1 BORDER=0 ALT=""></TD><TD></TD></TR><TR VALIGN=TOP ALIGN=LEFT><TD></TD><TD WIDTH=549><TABLE ID="Table3" BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH="100%"><TR><TD WIDTH=549><P><HTML>
<!--END CODE -->?</P></TD></TR><TR><TD><P><!-- Atomz Search HTML for Eastside Arts --><form method="get" action="http://search.atomz.com/search/"><input size=15 name="sp-q"><br><input type=submit value="Search"><input type=hidden name="sp-a" value="sp100166c0"></form?</P></TD></TR></TABLE></TD></TR></TABLE><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=157 NOF=LY><TR VALIGN=TOP ALIGN=LEFT><TD WIDTH=6 HEIGHT=18><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=6 HEIGHT=1 BORDER=0 ALT=""></TD><TD WIDTH=151><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=151 HEIGHT=1 BORDER=0 ALT=""></TD></TR><TR VALIGN=TOP ALIGN=LEFT><TD></TD><TD WIDTH=151 CLASS="TextObject"><P STYLE="text-align: center;"><SPAN STYLE="font-size: xx-small;">Website generously donated by:</SPAN><BR><TABLE WIDTH="100%" BORDER=0 CELLSPACING=4 CELLPADDING=0 NOF=TE><TR><TD ALIGN="CENTER"><A HREF="http://www.kingcountyarts.org" target=_blank><IMG ID="Picture30" HEIGHT=25 WIDTH=130 SRC="../assets/images/kingcoarts.jpg" BORDER=0 ALT=""></A></TD></TR></TABLE></P></TD></TR></TABLE></TD><TD><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 NOF=LY><TR VALIGN=TOP ALIGN=LEFT><TD WIDTH=19 HEIGHT=34><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=19 HEIGHT=1 BORDER=0 ALT=""></TD><TD></TD></TR><TR VALIGN=TOP ALIGN=LEFT><TD></TD><TD WIDTH=549><TABLE ID="Table3" BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH="100%"><TR><TD WIDTH=549><P><HTML>
You can see on the line with the closing tag for your form that there is no ">" after "form" and before your non-breaking space.
The code you quoted isn't anything like the code that is actually being used to display your page. The above lines that I quoted are taken from your page's source as displayed in my browser and not reformatted in any way.
After looking at my post I see that the BB did not quite display your code as is. The line where the form closes is actually:
code:</form&n b s p;</P>
</form&n b s p;</P>
I added the spaces to the non-breaking space so it would display.------------------
Thanks again,Sheila
The URL of your search page is using a template called search.html. Here is the URL: IN a standard calendar you would get to the search page using a URL like the one below: http://www.wwwroot4.net/~eac/cgi-bin/calendar.pl?view=Search When I tried this by entering it in my browser address bar I get the calendar page instead of the search page. It appears that the search view is not working.You must have a search.html file somewhere in your CalendarScript directories because the program finds and displays search.html that is called by the URL you are using in your form to choose the action. You have to fix the search.html file since that is being used to display your search page.If I am way off base here someone else jump in.------------------Dale Ray[This message has been edited by eladyar (edited August 20, 2004).]
IN a standard calendar you would get to the search page using a URL like the one below: http://www.wwwroot4.net/~eac/cgi-bin/calendar.pl?view=Search
When I tried this by entering it in my browser address bar I get the calendar page instead of the search page. It appears that the search view is not working.
You must have a search.html file somewhere in your CalendarScript directories because the program finds and displays search.html that is called by the URL you are using in your form to choose the action. You have to fix the search.html file since that is being used to display your search page.
If I am way off base here someone else jump in.
I do have a Search.html page. However it's just perl script. There's no mention of it in there about the AtomZ search. So I've been assuming that it is using the Default.html template to get the site's navigation, etc and that file is OK. If you check the code of the initial calendar page the code is fine. I can't figure out why it isn't fine on the Search page. I must be missing something obvious here but I sure don't know what it is. I'm open to suggestions.
Thanks for trying to help.
* I do have a Search.html page. However it's just perl script. *
A Perl script's file name should end with a .pl or .cgi extension.
BTW. Dale did say search.html not Search.html which should be located in the same directory as the default.htmltemplate.
[This message has been edited by DanO (edited January 24, 2003).]
<%$VIEW = "SEARCH";$db = new DBFile($main::events_db);# Keep form values to populate form fieldsforeach (keys %in) { $name = $_; if ($name =~ s/^FIELD_//) { $search_params->{$name} = $in{$_}; } }%><HTML><HEAD> <TITLE>Calendar Search</TITLE><META HTTP-EQUIV="expires" CONTENT="now"><META HTTP-EQUIV="Pragma" CONTENT="no-cache"><!--#include file="styles_scripts.html"--></HEAD><BODY BGCOLOR="#ffffff" LINK="#000000" ALINK="#000000" VLINK="#000000">
<CENTER>
<FORM NAME="mainform" ACTION="<%= $CGI_URL %>" METHOD="POST"><INPUT TYPE="hidden" NAME="fromTemplate" VALUE="<%=$thisTemplate%>"><INPUT TYPE="hidden" NAME="template" VALUE="search.html"><INPUT TYPE="hidden" NAME="command" VALUE="search">
<TABLE CLASS="thinborder" BORDER=1 CELLPADDING=2 CELLSPACING=0><TR> <TD CLASS="thinborder" COLSPAN="2" ALIGN="center" BGCOLOR="#000000"> <FONT COLOR="#ffffff"> <FONT SIZE="+3">Search</FONT> <BR> [ <A STYLE="color:#ffffff" HREF="<%=$CGI_URL %>">Back to Calendar</A> ] </FONT> </TD></TR><%IF USER LOGGED IN%><TR> <TD CLASS="thinborder" ALIGN="right" COLSPAN="2"> Logged in as: <B><%=($User->{name} | | $User->{username})%></B> [<a href="<%= $CGI_URL_QUERYSTRING %>&command=logout" onClick="return confirm('Are you sure you want to logout?')">Logout</a>] </TD></TR><%/IF%><% if ($userMessage ne "") { %><TR> <TD COLSPAN="2" ALIGN="left" VALIGN="top"> <FONT COLOR="<%=$AdminConfig->get("user-message-font-color")%>"> <%= $userMessage %> </FONT> </TD></TR><% } %><%$fieldnames = &main: BGetSearchFields($db);foreach $field (@$fieldnames) {%><TR> <TD CLASS="thinborder" ALIGN="RIGHT"><B><%= $db->{'properties'}->{$field}->{'name'} | | $field %> : </B></TD> <TD><%= &main::GetSearchFieldInput($db->{'properties'}->{$field},$field,$search_params) %></TD></TR><% } %><TR> <TD CLASS="thinborder" ALIGN="RIGHT"><B>Between : </B></TD> <TD> <SELECT NAME="start_month"><%= &HTML::monthNameOptions($in{start_month} | | $TODAY_MONTH) %></SELECT> <SELECT NAME="start_date"><%= &HTML::dateOptions($in{start_date} | | $TODAY_DATE) %></SELECT> <SELECT NAME="start_year"><%= &HTML::yearOptions($in{start_year} | | $TODAY_YEAR) %></SELECT> and <SELECT NAME="end_month"><%= &HTML::monthNameOptions($in{end_month} | | $TODAY_MONTH) %></SELECT> <SELECT NAME="end_date"><%= &HTML::dateOptions($in{end_date} | | $TODAY_DATE) %></SELECT> <SELECT NAME="end_year"><%= &HTML::yearOptions($in{end_year} | | ($TODAY_YEAR+1)) %></SELECT> </TD></TR><TR> <TD CLASS="thinborder" ALIGN="CENTER" COLSPAN="2"> <INPUT CLASS="button" TYPE="submit" VALUE="Search"> </TD></TR><% IF SEARCH RESULT %><TR> <TD CLASS="thinborder" COLSPAN="2" ALIGN="center"> <u><B>Search Results</B></u><BR> <% IF SEARCH RESULTS EXIST %> No Matches <% ELSE %> <TABLE CLASS="thinborder" BORDER="1" CELLPADDING="1" CELLSPACING="0"> <TR> <TH>First Occurrence</TH> <TH>Title</TH> <TH>Description</TH> </TR> <% FOREACH SEARCH RESULT %> <TR> <TD> <% IF NEXT OCCURRENCE EXISTS %> <%=$MONTH_NAMES->[$EVENT->{schedule}->{nextoccurrence}->{month}-1]%> <%=$EVENT->{schedule}->{nextoccurrence}->{date}%>, <%=$EVENT->{schedule}->{nextoccurrence}->{year}%> <% ELSE %> None <% /IF %> </TD> <TD><A HREF="<%=$CGI_URL_QUERYSTRING%>popup=0&template=event_detail.html&event_id=<%=$EVENT->{'details'}->{'id'}%>" STYLE="text-decoration:underline;" onClick="showDetails('<%=$EVENT->{'details'}->{'id'}%>');return false;"><%= $EVENT->{'details'}->{'title'} %></A></TD> <TD><%=$EVENT->{details}->{description}%></TD> </TR> <% /FOREACH %> </TABLE> <% /IF %> </TD></TR><% /IF %><TR> <TD CLASS="thinborder" COLSPAN="2" BGCOLOR="#000000" ALIGN="center"> <FONT COLOR="white" SIZE="-1"> Powered by <A HREF="http://www.CalendarScript.com/" STYLE="color:#ffffff;text-decoration:underline;">CalendarScript</A> </FONT> </TD></TR></TABLE>
</FORM>
</CENTER>
</BODY></HTML>
I don't see the problem there. What is entered as the "Header:" in the Administration: Template Display Preferences section?
When I go to Admin: Template Display preferences I get this: There are no display options for this template set! Could this be the problem? I have no idea what that entry is about. The other site where I have this calendar installed also shows the same result, no display options to the template set. The search works on that site however, because it's not got the AtomZ element in there messing things up!
FYI: in Calendar Settings/Display Template Type I have the EAC template I created selected and it is being used.
Is it possible this problem isn't about that closing ">" mark but some conflict between what AtomZ is looking for and what Calendar Script is looking for?