If you want to see what it looks like visit:
[dead link removed]
You can download the template and a read me of directions at: http://www.rdtk.net/files/print_html.zip
I hope some of you can get some use from this.
------------------Dale Ray
[This message has been edited by eladyar (edited August 20, 2004).]
Any thoughts?
Jack
------------------
If you are using the full year templates you would have to modify that template. No calendar is displayed because there are no routines to display the 90 day or full year calendar in the template I modified.
Thanks for the code!
You download the file at: http://www.rdtk.net/files/print_html.zip
My thanks to everyone who contributes to this forum, especially TubaDave and Dan O.
Thanks also to Matt for the great script at a reasonable price!
[Include file (/var/www/cgi-bin/calendarscript/templates/calendars/default/styles.pl) could not be found] [Include file (/var/www/cgi-bin/calendarscript/templates/calendars/default/styles_scripts.html) could not be found]
Well, sure enough, those files don't exist in myCalendarScript 3.2 default template directory. Should these includes be changed to point to something else, like maybe "preferences.pl" or such?
I also had a very minor bug in that the name of the month, or week, etc. at the top of the printable calendar always had a "-" (a dash) in front of it. With patient wandering through the mountain of cat-on-the-keyboard tracks that is Perl scripting I actually found a dash in the middle of a line that seemed to have something to do with the title, and erasing that dash fixed it.
Experiments with browsers showed me that getting a cleancalendar printout suitable for copying/reproduction in printis aided by:
- printing in landscape mode ...on average appears to make most efficient use of the space- tweaking your browser page settings for skinniest margins possible- tweaking page settings to eliminate page numbers, URL listing, other similar extra web page printout stuff.
Of course if you have a zillion events it can still runto several pages but if you're on the edge, these thingshelp get it all squeezed in.
All the fiddling was worth it because now our secretary can avoid having to manually draw/type up a calendar for our publications.
Glad the template helped.
The - (dash) in the Calendar title is meant to be between the calendar header (as defined in the calendarscript settings on the template settings page) for the calendar and the date range printed. If you don't have the calendar header defined the dash would look out of place. (edit: I just looked at the code and the dash should not print unless the header is defined, I don't know what was happening on your site)
EDIT: I have added your printing suggestions to the readme and also a version of the print.html template that does not print the events end times. The URL in the first message points to the updated file.
------------------Dale Ray http://www.sscsoftball.org
[This message has been edited by eladyar (edited November 07, 2003).]
<% if ($VIEW eq "Month") { %><%= $MONTH_NAME %>, <%= $YEAR %><% } %> <% if ($VIEW ne "Month") { %><%= $RANGE_START %> to <%= $RANGE_END %><% } %>
to this:
<% if ($VIEW eq "Month") { %><%= $MONTH_NAME %>, <%= $YEAR %><br><font size="4"><%=$_PAGE_TITLE%><% } %></font> <% if ($VIEW ne "Month") { %><%= $RANGE_START %> to <%= $RANGE_END %><br><font size="4"><%=$_PAGE_TITLE%><% } %></font>
I added the following:
<br><font size="4"><%=$_PAGE_TITLE%> and </font> to each line.
The code is found in the print.html file around here:##############not the complete code################
<!--#include file="styles_scripts.html"-->
</HEAD><BODY BGCOLOR="<%=$_BGCOLOR%>" LINK="<%=$_LINK%>" ALINK="<%=$_ALINK%>" VLINK="<%=$_VLINK%>" LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" WIDTH="100%" HEIGHT="100%"> <TR><TD COLSPAN="2" align="center" height="5%"><h1> <% if ($_HEADER) { %><%= $_HEADER %> - <% }%> <% if ($VIEW eq "Month") { %><%= $MONTH_NAME %>, <%= $YEAR %><br><font size="4"><%=$_PAGE_TITLE%><% } %></font> <% if ($VIEW ne "Month") { %><%= $RANGE_START %> to <%= $RANGE_END %><br><font size="4"><%=$_PAGE_TITLE%><% } %></font> </h1></TD></TR><TR> <TD VALIGN="top" ALIGN="left" WIDTH="100%"> <!-- =============================== --> <!-- THIS IS THE ACTUAL DISPLAY AREA --> <!-- =============================== -->
Hope this helps anyone who needs the same features. Thanks to the authors of the code for their work.
quote:Hope you do not mind but I had to modify the print.html file so it would print out the calendar name under the month, year heading
Thanks for contributing your modification to the rest of the CalendarScript users.
------------------Dale Rayhttp://www.sscsoftball.org
So how can I make it show printable view as weekly rather than monyhly.
thanks john
It was at the top of the page "nice and easy"
John