home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / BBS / SNIPT401.ZIP / SNIPPET.DOC < prev    next >
Text File  |  1992-09-05  |  20KB  |  550 lines

  1.  
  2.  
  3.  
  4.                         >>   SNIPPET V4.01   <<
  5.                            Revision:  920905
  6.  
  7.                   (C) Copyright 1988-92 By John Folsom
  8.                            All Rights Reserved
  9.  
  10.  
  11.  
  12.                               BOILERPLATE
  13.  
  14. WARRANTY
  15. --------
  16. The author disclaims any and all warranties, express or implied,
  17. including warranties of merchantability or fitness for any purpose,
  18. and refuses to accept liability for any damages, direct or indirect,
  19. attributable to the use of this program.
  20.  
  21. SNIPPET was written by a computer hobbyist for his own use and is
  22. being released for free public distribution in the belief that others
  23. may also find it of some value.  While it is believed to be bug-free,
  24. the user of this program assumes all risk with respect to its quality
  25. and performance.
  26.  
  27. DISTRIBUTION
  28. ------------
  29. SNIPPET is being distributed as Freeware.  All program copyrights are
  30. reserved by the author.  Users are licensed to operate this program
  31. on their personal computers for any purpose for which it may seem
  32. suitable and for an unlimited period of time without monetary
  33. obligation.  There is no "registered version", no enabling keys, no
  34. disks to wait for, no fancy bound documentation.  This is as complete
  35. and fully functional as it gets.
  36.  
  37. CONTRIBUTIONS
  38. -------------
  39. As a system operator since 1986 myself, I'm very much aware of the costs
  40. involved in running a BBS and don't care to add to any sysop's financial
  41. burden.  Nevertheless, if you DO like SNIPPET and choose to use it to
  42. enhance your BBS, a nominal donation of $5.00 would be appreciated.  In
  43. return for your contribution, I'll make a good-faith effort to provide
  44. you (via modem) with future revisions of the program.  With or without
  45. donation, I would appreciate comments from SNIPPET users, particularly
  46. with regard to unique and innovative applications, or suggestions for
  47. improving the program.  An address for these purposes is provided at the
  48. end of this file.
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60. SNIPPET V4.01                   Page [1]
  61.  
  62.  
  63.  
  64.  
  65.                       GETTING TO THE GOOD STUFF
  66.  
  67. WHAT IT DOES
  68. ------------
  69. SNIPPET is a flexible daily "quip" or "quote" message retrieval
  70. system that, while operable as a stand-alone program, is specifically
  71. designed to be universally adaptable for use with any major MS DOS
  72. BBS format.  For the latter, the only requirements are that the host
  73. software must have a sysop-configurable daily maintenance "event"
  74. routine as well as the means to read and display an external ASCII
  75. text file.  ANSI.SYS (or equivalent driver) is also required for
  76. color/graphics display.
  77.  
  78. The SNIPPET text messages may be displayed as an initial "banner"
  79. prior to the log-on prompt, upon user demand via a door routine, or
  80. as a closing bulletin displayed at log-off.  DCI or SLBBS sysops, for
  81. example, can use SNIPPET with the auto-logon door option available to
  82. them to create a new message for each logon.  Conceivably, the program
  83. could also be adapted to generate messages to be displayed randomly
  84. (when called by the host software) during an online session.  In a
  85. non-BBS application, SNIPPET can be used to display a fresh
  86. "thought-for-the-day" each time the user's PC is booted up.  Both color
  87. and monochrome files are created.
  88.  
  89. INSTALLATION
  90. ------------
  91. For those upgrading, SNIPPET V4.01 is compatible with existing V3.+ data
  92. files.  However, program changes require replacement of the SNIPPET.CFG
  93. file generated by earlier versions.
  94.  
  95. All required files, except for the output files (e.g., SNIPPET.ANS and
  96. SNIPPET.BBS) must be located together in the same subdirectory.  Upon
  97. installation of V4.01, verify that the subdirectory used for the SNIPPET
  98. files is included in your AUTOEXEC.BAT PATH statement.  This should be a
  99. matter of course for those using their main BBS subdirectory
  100. (recommended) for SNIPPET.
  101.  
  102. Example:
  103.  
  104.         PATH=C:\DOS;C:\NORTON;C:\FASTBACK;C:\BBS
  105.                                           ^^^^^^
  106. Using the subdir 'C:\BBS' as an example, add this new statement to your
  107. AUTOEXEC.BAT file:
  108.  
  109.         SET SNP=C:\BBS
  110.  
  111. NOTE:   These measures are optional, required only if it is necessary
  112.         or desirable to be able to run SNIPPET and/or SNIPCFG from other
  113.         than the resident drive and subdirectory (C:\BBS in this
  114.         example).
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121. SNIPPET V4.01                   Page [2]
  122.  
  123.  
  124.  
  125.  
  126. Files required for installation are:
  127.  
  128.                 SNIPCFG.EXE     -- Custom configuration module
  129.                 SNIPPET.CFG     -- Configuration and indexing data
  130.                 SNIPPET.EXE     -- Main text retrieval program
  131.                 SNIPPET.DAT     -- SNIPPET text message database
  132.                                    (ASCII)
  133.  
  134. Although the SNIPCFG.EXE file is not really required for normal
  135. operation after installation, it's a good idea to keep it handy for
  136. future display or database modifications.
  137.  
  138. Other files included in the authorized distribution archive are:
  139.  
  140.                 SNIPPET.ANS     -- Sample ANSI display file
  141.                 SNIPPET.BBS     -- Sample Monochrome display file
  142.                 SNIPPET.DOC     -- This file
  143.                 FILE_ID.DIZ     -- Transfer File Description
  144.                 WHATSNEW.DOC    -- Recent Modification Notes
  145.  
  146. In addition, while some BBS programs may have internal accomodations
  147. to call SNIPPET directly as a regular event, others may require an
  148. external EVENT.BAT file for this purpose.  SNIPPET returns directly
  149. to DOS level after generating the new day's message, so a simple
  150. batch file like the following should suffice:
  151.  
  152.                 @echo off
  153.                 snippet
  154.                 bbs               rem: or equivalent, if req'd
  155.  
  156. For a non-BBS application, the following lines can be added to the
  157. end of an AUTOEXEC.BAT file:
  158.  
  159.                 cls
  160.                 snippet
  161.                 type snippet.ans
  162.                 
  163. As noted earlier, this will cause a new message to be displayed each
  164. time the system is rebooted.
  165.  
  166. In a BBS environment, some planning prior to installation is called
  167. for, including where (when) the snippet file should be displayed,
  168. what special filename may be needed by the host for access, how the
  169. displayed message is to interact with surrounding internally
  170. generated BBS text or graphics, and so forth.  Decisions regarding
  171. display format can be finalized after a period of experimentation.  The
  172. Preview option provided in SNIPCFG can be very helpful in this regard.
  173.  
  174. The next step is to run SNIPCFG.  If you have a monochrome graphics
  175. display (Hercules compatible), you may wish to boot this program with a
  176. [M] or [/M] command-line option to ensure proper cursor positioning.
  177. For example:
  178.                 SNIPCFG M (or) SNIPCFG/M
  179.  
  180.  
  181.  
  182. SNIPPET V4.01                   Page [3]
  183.  
  184.  
  185.  
  186.  
  187. This program is straightforward and fairly self-explanatory.  The
  188. current parameter definitions for SNIPPET (contained in SNIPPET.CFG) are
  189. displayed along with a command dialogue window via which any or all may
  190. be selected for modification.
  191.  
  192. CONFIGURATION OPTIONS
  193. ---------------------
  194. The database of "snippets" (quotes, proverbs and witticisms) is
  195. unencrypted and may be freely edited "to taste" by the user, or replaced
  196. in toto using any ASCII text editor.  The real secret to SNIPPET's
  197. flexibility and adaptability to different applications and environments,
  198. however, is its unique configuration program.
  199.  
  200. SNIPCFG is designed to be as helpful as possible, letting the
  201. computer do what it does best--the drudge work.  It isn't necessary, for
  202. instance, to backspace over text strings; entering any new character
  203. will automatically delete the old text.  Commands not shown in the menu
  204. of options include [ESC] and <CTRL-C>, which immediately exit to DOS,
  205. and <CTRL-Y> which may be used to delete an entire line of text.
  206. Principal parameters/commands include the following:
  207.  
  208.    [1]  Color Output Filename:
  209.    [2]  Mono Output Filename:
  210.  
  211.         Defines output filenames to satisfy host software requirements.
  212.         SNIPPET generates both color and monochrome versions of the
  213.         retrieved message text for display.  They may be renamed to suit
  214.         any special BBS bulletin display format.  EBBS-PC sysops might
  215.         want to use "CB.ANS" and "CB.ASC", for instance, so that the
  216.         appropriate version will be displayed as the Closing Bulletin at
  217.         logoff.  SNIPCFG will automatically inhibit spaces and limits
  218.         the length of the filename (before extension) to 8 characters.
  219.  
  220.    [3]  File Destination Path:
  221.  
  222.         Redirects the SNIPPET output files to any specified
  223.         subdirectory.  The complete path in the form [d:\subdir\...]
  224.         must be provided.  Spaces are disallowed and the program will
  225.         always assume the first character entered to be the destination
  226.         drive, formatting text accordingly.  If no path is specified,
  227.         the files generated will be saved to the SNIPPET resident
  228.         directory.
  229.  
  230.    [4]  SNIPPET Preface Text [U/NU]:
  231.  
  232.         A prefacing "title" text string up to 39 characters in length
  233.         can be included with the displayed snippet.  BBS sysops can use
  234.         this feature to tailor the message to their system's particular
  235.         theme or style.  Automatic underlining (indicated by the [U]
  236.         flag) of this text when displayed may be toggled on or off.
  237.         Leading, trailing and double spaces are disallowed.  The snippet
  238.         may be displayed without preface by simply deleting the text.
  239.  
  240.  
  241.  
  242.  
  243. SNIPPET V4.01                   Page [4]
  244.  
  245.  
  246.  
  247.  
  248.    [5]  Color/Graphics Options:
  249.  
  250.         Invokes a sub-menu from which the simple SNIPPET graphics
  251.         element (a 78 column doubled line) may be toggled on and off,
  252.         and the foreground colors for graphics, preface text and snippet
  253.         message may be individually selected.
  254.  
  255.    [6]  Lead/Trailing Blank Lines:
  256.  
  257.         Up to 6 blank lines (line feeds) may be separately specified to
  258.         lead and/or trail the message display.  These will precede and
  259.         follow the graphics element if enabled.  The total space
  260.         occupied by the display will vary with message length.  If
  261.         adequate spacing is provided by the host software, "0/0" may be
  262.         entered.
  263.  
  264.    [7]  Message Retrieval Mode:
  265.  
  266.         Toggles between Sequential and Randomized SNIPPET message
  267.         retrieval modes.  In sequential mode, messages are selected in
  268.         the strict numerical order of the database.  The alternative is
  269.         to have them called up at random.  Note that although the
  270.         program will not allow the same message to be displayed
  271.         back-to-back, it is possible that a message will occasionally
  272.         reappear within a few cycles in random display mode.  It's all
  273.         in the luck of the draw!
  274.  
  275.    [8]  Total/Sort SNIPPET Msgs:
  276.  
  277.         Retotals the message database, with or without random shuffling.
  278.         This option MUST invoked be after any editing of the database
  279.         which changes the number of messages or which creates gaps in
  280.         its numerical sequence.  If randomization is elected (a
  281.         secondary command option), the database will be completely
  282.         re-ordered and renumbered.
  283.  
  284.         WARNING!  Because of the simple ASCII/sequential nature of this
  285.         file, the random sort option will take considerable time.  For
  286.         example, a 10 MHz 286 takes 19 minutes to randomly shuffle 450
  287.         messages, while a sequential sort requires only 10 seconds.
  288.  
  289.    [9]  Next SNIPPET To Retrieve:
  290.  
  291.         This option allows the user to arbitrarily select any message to
  292.         be the next displayed.  This is primarily useful in the
  293.         sequential mode; to re-initiate things after rebuilding the
  294.         database, to set up a particular sequence of messages for a
  295.         special occasion, or for test purposes.
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304. SNIPPET V4.01                   Page [5]
  305.  
  306.  
  307.  
  308.  
  309.    [P]  Preview SNIPPET Msgs:
  310.  
  311.         This option allows the user to view the SNIPPET message
  312.         configuration as it will actually appear in operation before
  313.         saving revised parameters, view specific messages by number, and
  314.         review the entire message database.  Preview options include
  315.         line numbers on/off, next message, previous message, and
  316.         auto-sequencing.
  317.  
  318.         When the Preview feature is first activated, the "Next SNIPPET
  319.         To Retrieve" (see above) will be displayed with leading and
  320.         trailing spaces as previously configured.  Line numbers are
  321.         provided to verify spacing.  (With line numbers active, some
  322.         lines of text may be truncated.)  These may be toggled off for a
  323.         more normal representation.  The SNIPPET database may be stepped
  324.         through forwards or backwards with the N>ext and P>revious
  325.         commands or automatically displayed in numerical order with the
  326.         S>equence option.  While auto-sequencing, invoking the S>top
  327.         command holds the current message and returns to the manual
  328.         display mode.
  329.  
  330.         NOTE!  "The Next SNIPPET To Retrieve" will have advanced to the
  331.         message number following the last displayed in Preview and you
  332.         may wish to change this prior to exiting SNIPCFG.
  333.  
  334.    [X]  EXIT/Save Parameters:
  335.  
  336.         Ends the program and, if any parameter has been modified,
  337.         provides the opportunity to save the new configuration.
  338.  
  339. SPECIAL BBS APPLICATIONS
  340. ------------------------
  341. Many BBS packages have special bulletin formats to consider as well as
  342. unique features which are not explicitly supported by SNIPPET.
  343. Nevertheless, with a little imagination and help from a DOS batch
  344. command or two, seamless integration is possible for virtually any BBS
  345. software.  For example, DCI sysops can use the following technique to
  346. use their BULLETIN.MNU to display SNIPPET messages.
  347.  
  348. Create files like these with an ASCII editor:
  349.  
  350. P1:
  351.   **DCI SNIPPET.BUL #1 - ANSI COLOR
  352.  
  353. P2:
  354.   **DCI SNIPPET.BUL #2 - Extended ASCII
  355.  
  356. P3:
  357.   (etc.....)
  358.  
  359. CC:
  360.   //W
  361.  
  362.  
  363.  
  364.  
  365. SNIPPET V4.01                   Page [6]
  366.  
  367.  
  368.  
  369.  
  370. SNIPEVEN.BAT:
  371.   @echo off
  372.   cd snip
  373.   snippet
  374.   cd \dci
  375.   copy snippet.bbs snippet.asc             rem: Create "third" file
  376.   copy p1+snippet.ans+cc+p2+snippet.bbs+cc+p3+snippet.asc+cc snippet.bul
  377.  
  378. The line "%%SNIPPET.BUL%%" should then be inserted into the DCI
  379. BULLETIN.MNU file (following the **DCI BULLETIN #1 header) and
  380. SNIPEVEN.BAT called as a daily event.  This will cause a daily-updated
  381. SNIPPET message to be displayed after log-on which is followed by a
  382. "Press Any Key" pause prompt.  Although SNIPPET generates 2 files
  383. initially,  here the mono file is duplicated to provide a third display
  384. for 80 column text-only users.
  385.  
  386. TriBBS sysops can also incorporate their system's internal display
  387. control codes by using the COPY command in a batch file.  The TriBBS
  388. automatic ANSI detection feature allows the the display of the
  389. appropriate (color or mono) SNIPPET message immediately after
  390. connection, as in the example that follows.
  391.  
  392. First, create files similar to the following:
  393.  
  394. KEY:
  395.                rem: ASCII 16
  396.  
  397. SNIPT:
  398.   @echo off
  399.   \snip\snippet
  400.   cd display
  401.   copy snippet.ans+key logon1.ans
  402.   copy snippet.bbs+key logon1.bbs
  403.   cd \tribbs
  404.   board
  405.  
  406. Add a new daily event with SNIPT as the Event File called.  Thereafter,
  407. a fresh SNIPPET will be generated daily that will display at log-on,
  408. followed by the "more" prompt.  Elsewhere in the log-on sequence, it
  409. might be desirable to use a file consisting solely of CHR$(12) added
  410. ahead of the SNIPPET message (e.g., where "clrs" = ASCII 12:
  411. "copy clrs+snippet.ans+key logon3.ans") to clear the screen before its
  412. display.
  413.  
  414. The optional SNIPPET Preface (title) Text also provides a unique
  415. opportunity to utilize BBS control codes to personalize messages by, for
  416. example, automatically inserting the caller's name.
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426. SNIPPET V4.01                   Page [7]
  427.  
  428.  
  429.  
  430.  
  431. One note of caution!  When using the COPY command to combine files, do
  432. NOT use the same filename for both a file to be combined and the
  433. destination file.  The following statement:
  434.  
  435.   copy p3+snippet.bul+cc snippet.bul
  436.  
  437. ...should be avoided.  This is because DOS will delete "snippet.bul"
  438. (the destination file) before attempting to combine (COPY) the files,
  439. resulting in a "File Not Found" error.
  440.  
  441. MAINTENANCE
  442. -----------
  443. SNIPPET normally requires no particular attention, however users do
  444. have the option of adding, deleting or modifying individual snippets. 
  445. There are a couple of important things to keep in mind when making
  446. these alterations.
  447.  
  448.      1.   This release of the program comes with a database of 600
  449.           messages.  It may be expanded to up to a maximum of 999. 
  450.           In normal sequential retrieval mode, the program will
  451.           automatically start over at the top after the highest
  452.           numbered text has been used.  In randomized mode, the
  453.           "message total" defines the selection range.  If messages
  454.           are added or deleted, changing the total number of messages
  455.           or creating gaps in numerical order, the SNIPCFG module
  456.           must be rerun to update this parameter in the CFG file. 
  457.           The "Total/Sort" option eliminates any gaps or errors in
  458.           message numbering.
  459.  
  460.      2.   A delimiter in the form "@@###" is required for each
  461.           individual snippet message file, where "###" is the message
  462.           number read during retrieval.  Each new message added must
  463.           include its own unique identifier in precisely this form. 
  464.           Also, when deleting message fields, remove the
  465.           corresponding delimiters to prevent the display of "nul"
  466.           files.
  467.  
  468. ACKNOWLEDGEMENTS
  469. ----------------
  470. Although SNIPPET.DAT is an eclectic compilation of quips, quotations,
  471. and proverbs with diverse and, for the most part, untraceable origins,
  472. the material used for the most recent editing and augmentation may be
  473. attributed primarily to two sources:
  474.  
  475. THE PORTABLE CURMUDGEON                THE GREAT THOUGHTS
  476. Compiled/edited by John Winokur        Compiled by George Seldes
  477. (C)opyright 1987 by John Winokur       (C)opyright 1985 by George Seldes
  478. Published by New American Library      Published by Ballantine Books
  479. NAL Penguin, Inc.                      Random House, Inc.
  480. New York, NY                           New York, NY
  481.  
  482. ISBN 0-453-00565-9                     ISBN: 0-345-29887-X
  483.  
  484.  
  485.  
  486.  
  487. SNIPPET V4.01                   Page [8]
  488.  
  489.  
  490.  
  491.  
  492. I gratefully acknowledge the following individuals for taking the time
  493. to beta-test SNIPPET on their systems and for offering their enormously
  494. helpful comments and suggestions for program improvement, most of which
  495. I've tried to incorporate in recent versions of the program:
  496.  
  497.                     Ed Parry, EBBS-PC BBS author
  498.                 Marianne (Cassi) Love, DCI BBS author
  499.                                and
  500.                 Lou Ludwig, Sysop of END OF THE WORLD
  501.                          (808-499-1501)
  502.  
  503.  
  504.  
  505.                                - o -
  506.  
  507.  
  508.  
  509.         Comments, suggestions, bug reports and, of course,
  510.         donations should be addressed to:
  511.  
  512.                            John Folsom
  513.                      6568 Bantam Lake Circle
  514.                        San Diego, CA 92119
  515.  
  516.  
  517.         Messages may be left on any of the following BBS systems:
  518.  
  519. Prides Crossing      Nordevald Software BBS        EBBS Headquarters
  520.  San Diego, CA             Tampa, FL                 Sepulveda, CA
  521.  619-464-6271            813-961-0788                818-891-9350
  522.    9600 V.32             9600 HST 14.4               1200/2400 BPS
  523.    CASDI/24                FLTAM/24                    CAGLE/24
  524.  
  525.                         The Lobster Buoy
  526.                            Bangor, ME
  527.                    207-941-0805  14.4 V.32bis
  528.                    207-945-9346  14.4 HST/V.32bis
  529.  
  530.  
  531.                       GENie Mailbox: J.Folsom
  532.  
  533.  
  534.  
  535.  
  536.  
  537.  
  538.  
  539.  
  540.  
  541.  
  542.  
  543.  
  544.  
  545.  
  546.  
  547.  
  548. SNIPPET V4.01                   Page [9]
  549.  
  550.