home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
BBS
/
SWAP40.ZIP
/
HOLIDAYV.DOC
< prev
next >
Wrap
Text File
|
1995-06-01
|
10KB
|
199 lines
***** SWAP v4.0 *****
(01 Jun 95)
GOODBYE/HELLO/HOLIDAY Screen Rotator for Wildcat!
Written By: Terry Atkinson
Adsum Wildcat! BBS
Dartmouth, NS
====================
SPECIAL DOCUMENT
USE OF VARIABLE HOLIDAY LISTS
====================
Review of SWAP.CFG (default name)
==================
CONFIGURATION ITEM COMMENT
================== =======
C:\WILDCAT\ROTATE\HELLO\ 1'INPUT Path to HELLO.BBS screen (ASCII)
C:\WILDCAT\ROTATE\HELLO\ 2'INPUT Path to HELLO.SCR screen (ANSI)
C:\WILDCAT\ROTATE\RIP\ 3'INPUT Path to HELLO.RIP screen (RIP)
C:\WILDCAT\ROTATE\GOODBYE\ 4'INPUT Path to GOODBYE.BBS screen (ASCII)
C:\WILDCAT\ROTATE\GOODBYE\ 5'INPUT Path to GOODBYE.SCR screen (ANSI)
C:\WILDCAT\ROTATE\RIP\ 6'INPUT Path to GOODBYE.RIP screen (RIP)
C:\WILDCAT\ROTATE\HOLIDAYS\ 7'INPUT Path to HOLIDAY.BBS screen (ASCII)
C:\WILDCAT\ROTATE\HOLIDAYS\ 8'INPUT Path to HOLIDAY.SCR screen (ANSI)
C:\WILDCAT\ROTATE\RIP\ 9'INPUT Path to HOLIDAY.RIP screen (RIP)
C:\WILDCAT\ROTATE\HOLIDAYS\ 10'INPUT Path to HOLIDAYV.BBS screen (ASCII)
C:\WILDCAT\ROTATE\HOLIDAYS\ 11'INPUT Path to HOLIDAYV.SCR screen (ANSI)
C:\WILDCAT\ROTATE\RIP\ 12'INPUT Path to HOLIDAYV.RIP screen (RIP)
C:\WILDCAT\ROTATE\MUSIC\ 13'INPUT Path to MUSIC.MUS files
C:\WILDCAT\DISP\HELLO1.BBS 14'Output Path/Filename for HELLO (ASCII)
C:\WILDCAT\DISP\HELLO1.SCR 15'Output Path/Filename for HELLO (ANSI)
C:\WILDCAT\DISP\HELLO1.RIP 16'Output Path/Filename for HELLO (RIP)
C:\WILDCAT\DISP\GOODBYE.BBS 17'Output Path/Filename for GOODBYE (ASCII)
C:\WILDCAT\DISP\GOODBYE.SCR 18'Output Path/Filename for GOODBYE (ANSI)
C:\WILDCAT\DISP\GOODBYE.RIP 19'Output Path/Filename for GOODBYE (RIP)
C:\WILDCAT\DISP\HELLO1.BBS 20'Output Path/Filename for HOLIDAY F (ASCII)
C:\WILDCAT\DISP\HELLO1.SCR 21'Output Path/Filename for HOLIDAY F (ANSI)
C:\WILDCAT\DISP\HELLO1.RIP 22'Output Path/Filename for HOLIDAY F (RIP)
C:\WILDCAT\DISP\HELLO1.BBS 23'Output Path/Filename for HOLIDAY V (ASCII)
C:\WILDCAT\DISP\HELLO1.SCR 24'Output Path/Filename for HOLIDAY V (ANSI)
C:\WILDCAT\DISP\HELLO1.RIP 25'Output Path/Filename for HOLIDAY V (RIP)
C:\WILDCAT\DISP\DOORS.SCR 26'Output Path/Filename for MUSIC file
HELLO1.LST 27'List of HELLO screens (BBS/SCR)
GOODBYE.LST 28'List of GOODBYE screens (BBS/SCR)
RIP.LST 29'List of RIP files (hello,goodbye)
HOLIDAYF.LST 30'List of fixed date holiday screens (BBS/SCR/RIP)
HOLIDAYV.LST 31'List of variable holiday screens (BBS/SCR/RIP)
MUSIC.LST 32'List of MUSIC files
DOORSSCR.BAK 33'File to PREpend .MUS to
COPYIT.BAT 34'Batch file to create.
SWAP.LOG 35'LOG file, or NONE if no logging required.
In this document, DAYofWEEK will refer to a number corresponding
to the name of the DAY of the week as follows:
SUN=1, MON=2, TUE=3, WED=4, THU=5, FRI=6, SAT=7
If you are conversant with Michael Conley's TODAYBBS program and
associated TODAY.xxx files, this is going to be a snap. If you are not
familiar with it, don't worry about it. You probably won't have a
difficult time grasping the concepts presented below anyway. They are
straight forward.
My definition of HOLIDAY:
========================
As far as this program and documentation goes, HOLIDAY refers to
ANY SPECIFIC DAY for which you want to rotate a SPECIFIED screen. It
could be Christmas Day, Labour Day, Mother's/Father's Day or even your
own birthday or anniversary.
There are two types of HOLIDAYS. One type is the old familiar
FIXED-DATE holidays such as Christmas Day, New Year's Day, Halloween,
etc. They always fall on the same DATE every year (ie. 25 Dec, 1 Jan,
31 Oct respectively). These types of holidays are put into the
HOLIDAYF.LST (default filename). See the SWAP.DOC file for more
information.
The second kind is a VARIABLE-DATE holiday - such as Mother's Day
(falling on the 2nd Sunday in May) or Labour Day (falling on the 1st
Monday in September). They do NOT fall on the same DATE every year.
This document explains how to set up a HOLIDAYV.LST (default filename)
to compensate for variable date holidays.
A text file called HOLIDAYV.TXT is included with this archive. It
gives some major variable date holidays and when they occur. You might
want to get a copy of this to your printer for quick reference as we
go along. (Note: HOLIDAYF.TXT is a file giving major FIXED holidays).
Example HOLIDAY (VARIABLE) rotation list (default - HOLIDAYV.LST)
========================================
DATE SCREENS COMMENT
==== ======= =======
01152,MLKING.BBS,MLKING.SCR,MLKING.RIP Martin L. King Day [3rd Mon in Jan]
05081,MOMDAY.BBS,MOMDAY.SCR,MOMDAY.RIP Mother's Day [2nd Sun in May]
Explanation:
Martin Luther King day falls on the 3rd Monday in January. Find
the MAXIMUM date by assuming that the 1st of the month is a TUESDAY.
This makes the 3rd Monday fall on 21 Jan. Note this date.
Then assume the 1st of the month is on a Monday. MLK day would then
fall on the 15th of Jan. Note this date. Of course you can now
realize that the 3rd Monday *could* fall on any DATE between the 15th
and 21st of Jan inclusive. Your VARIABLE DATE HOLIDAY LIST must
compensate for this by REPRODUCING the range of dates with a qualifier
following it.
The example above for MLK is 01152. This is to say:
01 = January (leading zeros are necessary)
15 = date
2 = qualifier -- day 2 is MONDAY (see above)
, = separator
MLKING.BBS = BBS (ASCII) screen to rotate today IF it is a Monday
, = separator
MLKING.SCR = SCR (ANSI) screen to rotate today IF it is a Monday
, = separator
MLKINGRIP = RIP screen to rotate today IF it is a Monday
You may have comments in this file providing they are separated
from the filenames by AT LEAST one space. "Martin L. King Day [3rd Mon
in Jan]" is a comment. Given this example, the entire listing for this
day would look as shown below:
DATE SCREENS COMMENT
==== ======= =======
01152,MLKING.BBS,MLKING.SCR,MLKING.RIP Martin L. King Day [3rd Mon in Jan]
01162,MLKING.BBS,MLKING.SCR,MLKING.RIP
01172,MLKING.BBS,MLKING.SCR,MLKING.RIP
01182,MLKING.BBS,MLKING.SCR,MLKING.RIP
01192,MLKING.BBS,MLKING.SCR,MLKING.RIP
01202,MLKING.BBS,MLKING.SCR,MLKING.RIP
01212,MLKING.BBS,MLKING.SCR,MLKING.RIP
05081,MOMDAY.BBS,MOMDAY.SCR,MOMDAY.RIP Mother's Day [2nd Sun in May]
Our second example is Mother's Day falling on the 2nd Sunday in
May. Assuming that the 1st of the month is on a MONDAY, the 2nd Sunday
would be on the 14th of May. Assume that a SUNDAY is the 1st day of
the week. Mother's Day would then fall on the 8th. Your "Mother's Day"
entries must reflect that range of dates: 8th to the 14th inclusive.
The entire listing for Mother's Day would look something like:
05081,MOMDAY.BBS,MOMDAY.SCR,MOMDAY.RIP Mother's Day [2nd Sun in May]
05091,MOMDAY.BBS,MOMDAY.SCR,MOMDAY.RIP
05101,MOMDAY.BBS,MOMDAY.SCR,MOMDAY.RIP
05111,MOMDAY.BBS,MOMDAY.SCR,MOMDAY.RIP
05121,MOMDAY.BBS,MOMDAY.SCR,MOMDAY.RIP
05131,MOMDAY.BBS,MOMDAY.SCR,MOMDAY.RIP
05141,MOMDAY.BBS,MOMDAY.SCR,MOMDAY.RIP
Given those examples, I'm sure you can work out almost any
variable holiday.
The dates (ie. 0508x above) must be in the format MMDDx. This
program will not work if not in this format. It does not affect the
remainder of the program. Your DOS must also return the date in the
standardized format of MM-DD-YYYY. You may put comments in the .LST
files providing they are separated from the file listing by at least
ONE space as shown above. This is handy for those who wish to NUMBER
their screens. i.e. 1.BBS, 2.BBS, 3.SCR, 109A44.BBS, and want to make
a small comment of what these are. Note that the dates do NOT have to
be in chronological order as the ENTIRE file is read and checked for a
date coincident with your system date. The FIRST CORRECT DATE
encountered will be used, and the program will exit.
The DATE/DAYofWEEK flag and the BBS filename MUST be separated by
a comma. Likewise the BBS filename and the SCR filename and the SCR
filename and the RIP filename. If either are not used, insert a comma
anyway. ie. [See example .LST files]
01152,,MLKING.SCR,MLKING.RIP Martin L. King Day [3rd Mon in Jan] (no .BBS)
05081,MOMDAY.BBS,,MOMDAY.RIP Mother's Day [2nd Sun in May] (no .SCR)
(MLKING.SCR will be used but no .BBS file will be used, MOMDAY.BBS
file will be used but there is no .SCR file.
Those using only .BBS screens with "@" codes on a WC3.x+ system
will find this feature handy. You may have as many holiday screens as
you wish. The BBS filename and the SCR filename do not have to match,
ie.
05081,MOTHER1.BBS,MOMDAY.SCR,MOM.RIP Mother's Day [2nd Sun in May]
You do not have to put dates before the files if you want to
maintain a list of available files for later assignment. Those files
will be ignored, ie.
EASTRMON.BBS,EASTERMON.SCR Easter Monday
FATHRDAY.BBS,FATHRDAY.SCR Father's Day
Beg for $$$
===========
Details for registering are in the SWAP.DOC file.
My address and/or where I can be contacted is in the SWAP.DOC file.