home *** CD-ROM | disk | FTP | other *** search
/ CD Shareware Magazine 1997 January / CD_shareware_1-97.iso / DOS / COMUNICA / DORMAN24.ZIP / DOORMAN.DOC < prev    next >
Encoding:
Text File  |  1996-10-29  |  24.2 KB  |  580 lines

  1.  
  2.                                  DoorMan
  3.  
  4.                                   v2.4
  5.  
  6.                                    by
  7.  
  8.                               Paul M. Becker
  9.  
  10.  
  11.                                 Beck's BBS
  12.                                 (847) 938-3654 (28.8 V32bis)
  13.                                 Weekdays 4pm - 8am
  14.                                 Weekends 24 hours
  15.                           ALSO -
  16.                                 TriBBS support files!
  17.                                 ASP Shareware CDrom online!
  18.                                 Numerous FIDO conferences!
  19.                                 Thousands of OFFLINE files with
  20.                                    overnight turnaround!
  21.  
  22.                        (EMAIL) pmbecker@execpc.com
  23.  
  24.  
  25.  
  26.                                 OVERVIEW
  27.                                 ________
  28.  
  29.  
  30.    DoorMan is a Door/Bulletin Menu Manager designed primarily for the
  31.    TriBBS 10.x BBS.  It was written generically enough to run on any
  32.    BBS that supports standard DOOR dropfiles.  The driving force behind
  33.    this utility was to provide unlimited Door and Door Bulletin
  34.    menus using 'hot keys'.  I implemented other features
  35.    I encountered with other door managers that seemed appropriate.
  36.    The final product is what I will present here, to all that may be
  37.    interested.
  38.  
  39.    FEATURES of DoorMan include:
  40.  
  41.    COM1-15 and non-standard irqs
  42.    Fossil available, not required
  43.    Multi-Node aware
  44.    Unlimited number of menus
  45.    Menu chaining
  46.    'On-the-fly ASCII, ANSI, and RIP menu displays consistent with Tribbs
  47.    Security level menu displays
  48.    Displays your own ASCII, ANSI, or RIP files if they exist
  49.    Door Usage tracking facility
  50.    Door serialization for single node doors on multi-node system
  51.    Display custom ASC,ANSI,or RIP file as prelude into each door.
  52.    Seamless TriBBS implementation using MAINx.BAT, FILEx.BAT, MESSx.BAT
  53.      SYSOPx.BAT.  Also return to any Tribbs menu (10.x only)
  54.    All Tribbs door dropfiles are updated with 'timeleft' prior to
  55.      running a door.
  56.  
  57.  
  58.                   DoorMan is FreeWare!!!!!!!!!!!!!
  59.  
  60.                   Please logon to the support BBS
  61.                   for the latest version and fixes.
  62.  
  63.  
  64.                               INSTALLATION
  65.                               ____________
  66.  
  67.  
  68.    Installation is fairly easy and straight-forward. The following steps and
  69.    examples should have you up and running in a very short period of time.
  70.    It is assumed that you are familiar with setting up DOORS on your system.
  71.    To this end, only examples of the configuration file and Door batch file
  72.    are described.
  73.  
  74.       1) Create a directory to hold all DoorMan files  (ie., \DOORMAN)
  75.  
  76.       2) Unzip DORMANxx.ZIP into the the above directory
  77.  
  78.       3) Create a configuration file, with a name of your choice, using
  79.          the supplied DEMO.CFG file as a guide. A description follows:
  80.  
  81.             c:\tribbs\door.sys       Location of System file
  82.                                      MUST used DOOR.SYS!!!!!!!!!!!!!!!
  83.  
  84.             Beck's BBS               Your BBS Name
  85.  
  86.             Paul                     SYSOP's First Name
  87.  
  88.             Becker                   Sysop's Last Name
  89.  
  90.             DOORMEN1                 Initial Menu to run
  91.                                      (Do not specify the .MNU file suffix)
  92.  
  93.             0                        Forced Node number.  The BBS node will
  94.                                      be taken from the Door Dropfile if this is
  95.                                      0.  Any value greater than 0 will be used
  96.                                      as the BBS Node number.
  97.  
  98.             \tribbs\nwork\callers.log  Name of the file log entries are to be
  99.                                      written out to.  Use the TriBBS temp log
  100.                                      to combine DoorMan entries with Tribbs
  101.                                      entries. Enter "0" to disable log function.
  102.  
  103.             DOOR.TRK                 Filename for the Door Usage Tracking
  104.                                      function.  Enter "0" to disable.
  105.                                      Specify the same filename for all nodes
  106.                                      for complete BBS stats.
  107.  
  108.  
  109.  
  110.       4) Create a batch file using the DEMO.BAT file supplied. A
  111.          description of this file follows:
  112.  
  113.             ECHO off
  114.             cd \                      Reset Current directory
  115.  
  116.             cd doorman                Get into DoorMan directory
  117.  
  118.             IF EXIST DMAN1.BAT DEL DMAN1.BAT  Clear possible previous bat
  119.                                       file.  The filename must be DMANx.BAT
  120.                                       where x is the BBS node number.
  121.  
  122.             DOORMAN NODE1.CFG [/IM=ALTMENU]
  123.                                       First parm is config file. Use 1 for
  124.                                       each node.
  125.                                       Second parm is optional and overrides
  126.                                       Initial menu specified in config file.
  127.  
  128.             IF EXIST DMAN1.BAT DMAN1.BAT  Runs a requested door
  129.  
  130.             cd\tribbs                 BBS subdirectory
  131.             board                     Run BBS bat file
  132.  
  133.         ****  For seamless TriBBS implementation, enter DoorMan from
  134.               any TriBBS menu via MAINx.BAT, MESSx.BAT, etc.
  135.  
  136.  
  137.        5) When running in more than one node, be sure to supply a
  138.           different configuration file for each node (your choice of name).
  139.  
  140.        6) If running with Fossil-based multi-port boards add
  141.            /FD to the line containing the CFG name as follows:
  142.  
  143.                        DOORMAN NODE1.CFG /FD
  144.  
  145.  
  146.        7) Setting up the MENU files (.MNU)
  147.  
  148.           The menu files are located in the DOORMAN subdirectory.
  149.           The must be suffixed with .MNU
  150.           You can have an unlimited number of menu files.
  151.           Each menu can have a maximum of 60 entries.
  152.           You MUST specify all parameters as show below.  Any missing
  153.           parameters will result in end-of-file errors!!!
  154.  
  155.  
  156. Line1     DFG,DBG,HFG,HBG,Menu title (used for on-the-fly displays)
  157. =====================================
  158.  
  159.           DFG = Ansi foreground color code for each menu detail line
  160.           DBG = Ansi background color code for each menu detail line
  161.           HFG = Ansi foreground color code for each menu heading line
  162.           HBG = Ansi background color code for each menu heading line
  163.           Menu-title=Text to appear in the Menu Heading
  164.  
  165. Line2-xx  hotkey,function,description of door/file,file-name,sec-level
  166.           ==================================================
  167.  
  168.           hotkey=Key to select this menu option (must be single char.)
  169.                  **
  170.                  Special character of "~" will display only, not be
  171.                  selectable.  Allows for comments and spacing in the
  172.                  on-the-fly menu displays.  Sec-level is used.
  173.  
  174.           function=function to be invoked by this selection: (single char.)
  175.                    functions are:  A - Display grAphics file
  176.                                        (No line counter used)
  177.                                    D - Run a Door
  178.                                    F or @ -
  179.                                        Display file (with @X color codes)
  180.                                        and @@ variables.
  181.                                    G - Goodbye/Logoff of BBS
  182.                                    L - Run a Door using Serialization.
  183.                                    Q - Quit to Main BBS Menu
  184.                                    R - Toggle RIP graphics
  185.                                    M - Load a new Menu
  186.                                    X - Toggle Expert mode
  187.                                    1 - Return to Tribbs at NEWUSER.BAT
  188.                                    2 - Return to Tribbs at SECnnnn.BAT
  189.                                    3 - Return to Tribbs at LOGON.BAT
  190.                                    4 - Return to Tribbs at Main Menu
  191.                                    5 - Return to Tribbs at Files Menu
  192.                                    6 - Return to Tribbs at Message Menu
  193.                                    7 - Return to Tribbs at Sysop Menu
  194.  
  195.           Description=text description of this selection.  36 character
  196.                       maximum.
  197.  
  198.           File-name=filename to be processed by this selection.
  199.           ----------------
  200.                     If function is M (a menu),
  201.                        specify MENUNAME
  202.                        DO NOT specify a file suffix!  The file suffix
  203.                        will be added by DoorMan (.MNU)
  204.  
  205.                     ** If MENUssss.RIP/ANS/BBS exists,
  206.                        where ssss is the users security level, that file
  207.                        will be displayed in leiu of the on-the-fly
  208.                        menu. NOTE: Menuname length + security-level
  209.                        length cannot exceed 8 characters.  If security
  210.                        level menus are not found, then:
  211.                     ** If menuname.RIP/ANS/BBS exists, that file
  212.                        will be displayed in leiu of the on-the-fly
  213.                        menu.
  214.           ----------------
  215.                     If function is D or L ( a door),
  216.                        specify  \bat\doorname
  217.                        DO NOT specify a file suffix!  The file suffix
  218.                        will be the BBS node number.
  219.  
  220.                     ** If \bat\doorname.RIP/ANS/BBS exists, that file
  221.                        will be display prior to running the door.
  222.           ----------------
  223.                     If function is A or F or @,
  224.                        specify the complete file name.
  225.                        If you do not specify a suffix, and the file as
  226.                        specified does not exist, RIP/ANS/BBS suffixes
  227.                        will be checked for in that order and the first one
  228.                        found, consistent with the current graphic setting
  229.                        will be displayed.
  230.           ----------------
  231.                     If function is Q, the hot-key will cause DoorMan to
  232.                        return to the BBS Menu that called Doorman.
  233.           ----------------
  234.                     If function is G, the hot-key will cause DoorMan to
  235.                        do a Goodbye/Logoff without returning to the BBS.
  236.  
  237.                     **Note: If a GOODBYE.* file exists in the Doorman
  238.                             subdirectory, it will be displayed
  239.                             prior to logoff.
  240.           ----------------
  241.                     If function is 1 - 7, Doorman will return to the
  242.                        BBS at the following points:
  243.  
  244.                        1 = NEWUSER.BAT
  245.                        2 = SECnnnn.BAT
  246.                        3 = LOGON.BAT
  247.                        4 = MAIN MENU
  248.                        5 = FILES MENU
  249.                        6 = MESSAGE MENU
  250.                        7 = SYSOP MENU
  251.  
  252.           ----------------
  253.                     If function is R, the current RIP graphics setting
  254.                        will be toggled.
  255.           ----------------
  256.                     If function is X, the Expert mode will be toggled.
  257.           ----------------
  258.  
  259.           Sec-level=Security level of user necessary to select this option.
  260.                     The user will NOT see items that don't pass security.
  261.                     To allow the same hot-key for different security
  262.                     levels, code a line for each sec-level in descending
  263.                     sec-level sequence. First match will be displayed, the
  264.                     rest will not.
  265.  
  266.        8) Setting up the DOOR BAT files
  267.  
  268.           The door bat files are located in the \DOORMAN\BAT subdirectory.
  269.           *can be any subdirectory as specified in the menu file*
  270.  
  271.           The are suffixed by node, ie., SCRABBLE.1, DOOM.2
  272.           You can have an unlimited number of door bat files.
  273.           Door bat files return to DoorMan, not the BBS.
  274.  
  275.           SAMPLE BAT FILE 'SCRABBLE.1'
  276.           ----------------
  277.           @echo off              |
  278.           cd\scrabble            | execute scrabble door
  279.           scrabdor scrab1.cfg    |
  280.           rem following statement to delete lock file after door exit.
  281.           rem this file is created by DoorMan
  282.           if exist \doorman\bat\scrabble.lok del \doorman\bat\scrabble.lok
  283.           cd\tribbs\batch        |
  284.           main$                  |return to DoorMan via Tribbs bat file
  285.           ----------------
  286.           SAMPLE BAT FILE 'SCRABBLE.2'
  287.           ----------------
  288.           @echo off              |
  289.           cd\scrabble            | execute scrabble door
  290. ==>       scrabdor scrab2.cfg    |
  291.           rem following statement to delete lock file after door exit.
  292.           rem this file is created by DoorMan
  293.           if exist \doorman\bat\scrabble.lok del \doorman\bat\scrabble.lok
  294. ==>       cd\tribbs2\batch       |
  295.           main$                  |return to DoorMan via Tribbs bat file
  296.           ----------------
  297.  
  298.        9) Running the DEMO................
  299.  
  300.           You can run the DEMO.BAT file from the DoorMan subdirectory
  301.           to get an idea of the features of DoorMan.
  302.  
  303.           It is setup with a local DOOR.SYS.
  304.           It has door bat files in the doorman subdirectory.  I suggest
  305.           a /bat subdirectory off of the doorman subdirectory.
  306.  
  307.           Peruse the .MNU files to get a feel for the syntax.
  308.           End-of-file errors are usually caused by missing/extra parameters
  309.           in a .MNU file!!!!
  310.           Use any editor to create your own menus.
  311.           You can combine doors and their associated bulletin files
  312.           as one organizational technique.  Or combine like doors on
  313.           their own menus.  Or whatever!
  314.  
  315. =====================================
  316.  
  317. Door Usage Facility
  318.  
  319.           The Door Usage report is generate by program DOORTRK.EXE.
  320.           Run it as an event daily or whenever you want to create
  321.           the report.  The syntax is:
  322.  
  323.           DOORTRK DOOR.TRK DOORUSE.BBS
  324.  
  325.           where DOOR.TRK is the tracking filename specified in the
  326.           config file.
  327.  
  328.           and DOORUSE.BBS is the output report file.
  329.  
  330. =====================================
  331.  
  332. Door Serialization Facility
  333.  
  334.           If you specify a function code of "L" to request serialization
  335.           on a door, a doorname.LOK file is created in the same directory
  336.           as the doorname bat file is.  This file should be deleted as
  337.           soon as the door program is exited.  The best place for this
  338.           would be in the doors bat file, where is should be deleted even
  339.           if the user looses carrier or whatever.  DoorMan will ensure it
  340.           is deleted, but there's a chance DoorMan will not run under
  341.           all adverse conditions.
  342.  
  343.  
  344. =====================================
  345.  
  346. Door Advertisement Facility
  347.  
  348.           If a file exists in the same directory as the doorname.x sub-
  349.           directory called doorname.RIP/ANS/BBS, it will be
  350.           displayed prior to executing the Door.  This allows for Door
  351.           specific displays.
  352.  
  353. =====================================
  354.  
  355. Door Include/Exclude Facility
  356.  
  357.           If a file exists in the same directory as the doorname.x file
  358.           called doorname.INC or doorname.EXC, then the users
  359.           found in that file will be included (can run) or excluded
  360.           (cannot run) that door.
  361.  
  362.           The format of the file simply contains the users fullname
  363.           on each line of the file.
  364.  
  365. =====================================
  366.  
  367. Language File Facility
  368.  
  369.           File LANGUAGE.xxx contains customizable display lines used by
  370.           Doorman.
  371.           Multiple language files can be used in sync with Tribbs, as
  372.           the LANGUAGE file extention is passed to and used by DOORMAN.
  373.           If there is no file for an extention, .001 is used.  If that
  374.           is not present, default messages are used.
  375.           @X-codes and @@ variables can be used in the language files.
  376.           The following @@ variables are recongnized:
  377.  
  378.           @TIMEON@         Time on this call
  379.           @TIMELEFT@       Time left for today
  380.           @MENUPROMPT@     Valid menu options at this time
  381.           @USER@           Complete user name
  382.           @ALIAS@          Users alias
  383.           @BAUDRATE@       Current connect BAUD rate
  384.           @BIRTHDATE@      Users birthday
  385.           @BOARDNAME@      Name of this BBS
  386.           @SYSOPNAME@      Complete SYSOP name
  387.           @SYSTEMDATE@     Current system date
  388.           @SYSTEMTIME@     Current system time
  389.           @FIRST@          Users first name
  390.  
  391.           ...  All Tribbs variables are recognized.  Not all data is
  392.                available.
  393.  
  394.           The variables are also recognized when displaying .BBS files.
  395.           In addition, the following @@ variables are recognized while
  396.           displaying a .BBS file:
  397.  
  398.           @CLS@            Clear screen now
  399.           @MORE@           Issue 'MORE' prompt
  400.           @MOREON@         Activate 'MORE' prompt
  401.           @MOREOFF@        Inactivate 'MORE' prompt
  402.           @BREAKON@        User can break file display
  403.           @BREAKOFF@       User cannot break out of file display
  404.           @PAUSE@          Wait for user to hit ENTER to continue
  405.  
  406.                           TROUBLESHOOTING
  407.                           ---------------
  408.  
  409. (1) If you are running this Door on a 486 system and encounter errors such as
  410.  
  411.     ERROR 6.... OVERFLOW Error
  412.     ERROR 5.... ILLEGAL Function Call (may be associated with other problems)
  413.     KEYBOARD Timeout after 5 minutes
  414.  
  415.     You may have to put the following line in your AUTOEXEC.BAT file:
  416.  
  417.          SET NO87=ON
  418.  
  419. (2) If you encounter an Error 62 (Input Past End of File), BEFORE you see the
  420.     opening screen of the Door, your problem will more than likely be associated
  421.     with the CFG file. The error 62 means that you do not have enough entries
  422.     in the CFG. Compare your CFG file with the CFG definition in the DOC file.
  423.  
  424.  
  425. (3) If you encounter an ERROR 70... Permission Denied, this will more than
  426.     likely mean that you DO NOT have SHARE loaded. SHARE is a DOS file that
  427.     comes with your version of DOS. To load it type the word SHARE at the DOS
  428.     prompt. To load it permanently type the word SHARE on a line by itself in
  429.     your AUTOEXEC.BAT file, any place prior to the loading of your BBS
  430.     software. There have been numerous reports that loading SHARE high causes
  431.     some problems, so to be on the safe side, do not load it high.
  432.  
  433.  
  434. Should you have any questions or problems, please do not hesitate to
  435. contact the support BBS or leave an E-Mail as stated above.
  436.  
  437.  
  438.  
  439.  
  440.                         NON-STANDARD COM SUPPORT
  441.                         ________________________
  442.  
  443.       Support for COM 1-4 on the standard IRQ's - COM1/COM3 = IRQ4 and
  444.       COM2/COM4 = IRQ3. If you wish to use a non-standard IRQ, add the IRQ
  445.       number after the configuration filename. Let's assume your Door is
  446.       called FOOBAR and you want to use COM1 and IRQ5. The command line
  447.       passed to your Door would be:
  448.  
  449.                             FOOBAR FOOBAR.CFG /5
  450.  
  451.       The /5 tells FOOBAR to use IRQ5 rather than the standard IRQ4 that is
  452.       normally used with COM1. No /x parameter is needed for the standard
  453.       IRQ's.
  454.  
  455.       As an alternative, you may use an environmental variable on the command
  456.       line. To use the variable (following the example above), place a
  457.       SET IRQ=5 in the batch file used to bring up your BBS (you would need a
  458.       different IRQ number for each node). The command line would now look
  459.       like this:
  460.  
  461.                           FOOBAR FOOBAR.CFG /%IRQ%
  462.  
  463.       This, in combination with the use of the environmental variables
  464.       described in the MULTI-NODE SETUP section will allow you to use one
  465.       batch file and one config file to run this door on all nodes.
  466.  
  467.  
  468.  
  469.  
  470.                            MULTI-NODE SETUP
  471.                            ________________
  472.  
  473.       DoorMan is Multi-Node aware. Each node must have the
  474.       ability to access a configuration file which will have its own system
  475.       file (DORINFOx.DEF, PCBOARD.SYS, DOOR.SYS, etc) defined on the first
  476.       line. There are 2 ways to accomplish this:
  477.  
  478.       (1) Create a separate configuration file for each node. The only
  479.           difference between each file would be the location of the system
  480.           file for that particular node. For example, on my system there are 2
  481.           nodes and the first line of the config files would look like this:
  482.  
  483.                         NODE1:  H:\PCB1\DOOR.SYS
  484.                         NODE2:  H:\PCB2\DOOR.SYS
  485.  
  486.           Thus, if you have a 4 node BBS, you will need 4 configuration files.
  487.  
  488.       (2) Use ONE configuration file for ALL nodes. This Door will recognize
  489.           the following PCBoard/Wildcat environmental variables:
  490.  
  491.                  PCBDIR    (Directory containing the System file)
  492.                  PCBDRIVE  (Drive containing the System file)
  493.                  WCNODEID  (Active Node Number)
  494.  
  495.           Thus, the first line of the SINGLE configuration file, for this Door
  496.           would look like this:
  497.  
  498.                         %PCBDRIVE%%PCBDIR%\DOOR.SYS
  499.                         c:\wc30\wcwork\node%wcnodeid%\door.sys
  500.  
  501.       NOTE: This option, as described, assumes that you are running PCB or
  502.             Wildcat software. The environmental variables are automatically
  503.             created by the software for each node.
  504.  
  505.             HOWEVER, if you are running other BBS software you should be able
  506.             to set the variables EXACTLY as described below, for EACH node
  507.             (more than likely in each batch file you use to bring up EACH node):
  508.  
  509.                             PCBDRIVE=C:
  510.                             ^^^^^^^^^
  511.                             PCBDIR=\NODE2
  512.                             ^^^^^^^^
  513.  
  514.             Info with a carat (^) under it, MUST be typed as is. The rest
  515.             depends on your naming conventions.
  516.  
  517.             This, in combination with the use of the optional environmental
  518.             variable described in the NON-STANDARD COM SUPPORT section, will
  519.             allow you to use one batch file and one config file to run this
  520.             door on all nodes.
  521.  
  522.  
  523.  
  524.  
  525.  
  526.                               LEGALITIES
  527.                               __________
  528.  
  529.  
  530.       THIS SOFTWARE AND ACCOMPANYING MATERIALS ARE DISTRIBUTED "AS IS"
  531.       WITHOUT WARRANTY, EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
  532.       LIMITED TO ANY IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  533.       FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL ANYONE INVOLVED WITH
  534.       THE CREATION AND PRODUCTION OF THIS PRODUCT BE LIABLE FOR INDIRECT,
  535.       SPECIAL, OR CONSEQUENTIAL DAMAGES, ARISING OUT OF ANY USE THEREOF
  536.       OR BREACH OF ANY WARRANTY.
  537.  
  538.  
  539.  
  540.  
  541.  
  542.                              DISTRIBUTION
  543.                              ____________
  544.  
  545.    You may make this file available for downloading from your BBS or you may
  546.    upload it to any BBS of your choice, provided that you do not make any
  547.    changes to the contents of the archive (ZIP file). The archive and its
  548.    individual contents may not be used by any service that charges any money
  549.    whatsoever, without the written permission of the author.
  550.  
  551.  
  552.  
  553.  
  554.  
  555.                              REGISTRATION
  556.                              ____________
  557.  
  558.    Registration allows you access to on the support BBS.  Fixes and
  559.    enhancements will be made periodically, and you will be allowed to down
  560.    load the latest.  The software itself is uncrippled.  If you use Doorman,
  561.    please take the time to register and signon to the support BBS.  Your input
  562.    would be appreciated.
  563.  
  564.    To register your copy of DoorMan, please logon to the support BBS.
  565.  
  566.  
  567.  
  568.                                  MISC
  569.                                  ____
  570.  
  571.    The latest version of DoorMan is available on the support BBS to
  572.    registered users.  The current shareware version will also be available.
  573.  
  574.    Remember, should you have any problems, questions or suggestions, be sure
  575.    to drop me a message on either the support BBS or Email me.
  576.  
  577.    Special thanks to Dave Kober of the Upper LeveL BBS for giving
  578.    Doorman a try and offering several useful suggestions.
  579.  
  580.