home *** CD-ROM | disk | FTP | other *** search
/ Carsten's PPE Collection / Carstens_PPE_Collection_2007.zip / T / TVIEW34.ZIP / TEXTVIEW.DOC < prev    next >
Text File  |  1994-06-22  |  24KB  |  531 lines

  1.  
  2.      ┌─────────────────────────────────────────────────────────────────┐
  3.      │                           TEXTVIEW 3.4                          │
  4.      │         A PCBoard Programming Language based Application        │
  5.      │       By Joseph Sheppard - The Ledge PCBoard (818) 896-4015     │
  6.      └─────────────────────────────────────────────────────────────────┘
  7.  
  8.     ───────────
  9.     DESCRIPTION
  10.     ───────────
  11.  
  12.     Textview allows the Sysop to make text based features available to
  13.     callers in an online magazine format.  It includes an option to
  14.     allow your users to download from a list of files you specify. The
  15.     sysop can also give extra time in the application to users of a
  16.     defined security level. All of the PCBoard function keys are
  17.     supported, including Sysop Chat (F10).
  18.  
  19.     TextView is written using the PCBoard Programming Language.  This
  20.     being the case, the program is compatible with any setup that is
  21.     successful at running PCBoard 15.1 or greater.
  22.  
  23.     Downloading is handled using your PCBoard setup, so all of the
  24.     protocols you have working in PCBoard, will be used automatically
  25.     by TextView including external protocols.
  26.  
  27.     Textview can shell to another program or batch file from inside
  28.     TextView if you wish. This can be any kind of routine you like as
  29.     long as you have enough free memory to support it.
  30.  
  31.     The program supports menu branching.  You can make up menu
  32.     selections, that when selected execute another Textview based
  33.     feature, and will return to the original feature when exited. This
  34.     can be done in multiple layers.
  35.  
  36.     TextView features can be launched from most files that can be
  37.     displayed via PCBoard.  For example, you can launch a TextView
  38.     feature from your Bulletin menu.
  39.  
  40.     TextView can launch other PPE programs.  Simply place an
  41.     exclamation point, followed by the path and name of the PPE, plus
  42.     any parameters needed to run the PPE in the first column of any
  43.     TextView displayed file, and the PPE program will be executed!
  44.  
  45.     If you have software that you want to distribute to users of a
  46.     certain security level only, you can make TextView available to
  47.     users with the same security level as your customers or higher.
  48.     When your customer goes into TextView, he can read new product
  49.     information and download an ZIP of the latest version of your
  50.     software. You choose the download path, so you can put the files
  51.     in a directory only accessible via TextView.  You can even give
  52.     him extra time when he is in the application, which will be
  53.     deducted when he exits, restoring the original time he had left
  54.     when he entered.
  55.  
  56.     The following user created files are supported in both ASCII and
  57.     ANSI:
  58.  
  59.     Welcome screen     (TVHELLO & TVHELLOG)
  60.     Menu screen        (TVMENU & TVMENUG)
  61.     Download Directory (TVDIR & TVDIRG)
  62.     Goodbye Screen     (TVBYE & TVBYEG)
  63.  
  64.     TextView can display as many files as you can support on your
  65.     system ASCII and ANSI versions are displayed depending on which
  66.     mode your caller is in.  The caller has the option to toggle
  67.     between ANSI and ASCII display mode.  Both file formats
  68.     (ASCII/ANSI) are supported, but not required.  If one or the other
  69.     format is unavailable, the caller will be shown what is available
  70.     for that menu selection. TextView will also convert PCBoard @x
  71.     color codes on the fly, as well as text @VARIABLES@.
  72.  
  73.     Command stacking is supported, so callers can capture several menu
  74.     selections with a command such as 1;2;3;4;NS.
  75.  
  76.     ─────
  77.     SETUP
  78.     ─────
  79.  
  80.     Here is a description of the files you will need to get started:
  81.  
  82.     1. Filename:         TV.PPE
  83.        Purpose:          Textview program
  84.        Location:         The directory specified in CMD.LST
  85.  
  86.     2. Filename:         TV.CNF
  87.        Purpose:          Defines parameters for TV.PPE
  88.        Location:         The same directory as TV.PPE.
  89.  
  90.        Sample File:
  91.  
  92.        RESERVED
  93.        D:\TV
  94.        20
  95.        0
  96.        0
  97.        M
  98.        D:\TV\DL
  99.        RESERVED
  100.        DEFAULT
  101.        TextView
  102.        N
  103.        RESERVED
  104.        NONE
  105.        D:\TV\TVMENU
  106.        D:\TV\TVHELLO
  107.        D:\TV\TVBYE
  108.  
  109.        Explanation:
  110.  
  111.        RESERVED: Reserved for Future Use.
  112.  
  113.        D:\TV: This is the path to the files you want to display.  I would
  114.        suggest putting these files in their own directory.
  115.  
  116.        20: This is the number of files available for display. It can
  117.        be any number higher than 1.
  118.  
  119.        0: Replace this with the security level you want to all more
  120.        time in the application for.  For instance if you are providing
  121.        product support for your level 50's and up, AND you want to
  122.        give them more time in the application, put a 50 here.  If you
  123.        don't want to give anyone more time put a 0 here.
  124.  
  125.        0: Replace this with the number of minutes you want to add to
  126.        the security level defined above.  If you want to give your
  127.        customers an extra 15 minutes in the application, then put a 15
  128.        here.  If you don't want to add any time, put a 0 here.
  129.  
  130.        M: This line tells TextView how you want to handle downloading.
  131.        Your choices are: Single file, Multiple files or No files
  132.        (downloading not allowed).  If you only have one file that you
  133.        want available for downloading, then put the letter S on this
  134.        line.  If you have a list of files you want the user to be able
  135.        to download then put an M on this line.  If you don't want the
  136.        user to be able to download at all, put the letter N on this
  137.        line (if N is selected the download option won't appear on the
  138.        command line at all).
  139.  
  140.        D:\TV\DL: Replace this with the path to the files you want the
  141.        user to be able to download.  Be sure that there is nothing in
  142.        this directory that you don't want downloaded because the user
  143.        will be able to take whatever is there.  Please don't call me
  144.        and yell at me because a user downloaded the USER file while in
  145.        TextView.  The only way this could happen is if you screw up
  146.        and put \PCB\MAIN on this line.  IMPORTANT: If you have
  147.        selected the Single file option (an S on line 6) then you will
  148.        need to add the filename to the path (example
  149.        D:\TV\DL\FILES.ZIP).  If you aren't going to allow downloading,
  150.        then put the word NONE on this line.
  151.  
  152.        RESERVED: Reserved for Future Use.
  153.  
  154.        DEFAULT: This line affects Registered Versions of TextView
  155.        only. Registered Sysops may place a filename on this line,
  156.        which must include the path if the file isn't in the same
  157.        directory as TV.PPE. The file named on this line must be an
  158.        ASCII file containing the names and paths of the files to be
  159.        displayed.  This feature is designed to cut maintenance time
  160.        for Sysops who display online magazines which are updated
  161.        frequently, but have the same filenames week to week.  USAToday
  162.        and NewsBytes are examples of these types of magazines.  The
  163.        files must be listed in the order that they appear on the menu.
  164.        For example, a file that had these three lines:
  165.  
  166.        C:\TEXT\WELCOME
  167.        D:\TV\NEWUSER
  168.        D:\PCB\MAIN\CALLER
  169.  
  170.        Would cause TextView to display your WELCOME screen if the
  171.        caller chose #1 off the menu.  Your NEWUSER file if he chose #2
  172.        and your CALLER log if he picked #3.  The number of files
  173.        listed in this file MUST be the same as the number you have on
  174.        line 3 of the .CNF file.
  175.  
  176.        TextView: You can give your TextView application a name that
  177.        will be placed in the CALLER log to let you know what features
  178.        are being used.
  179.  
  180.        N: TextView can run as a "Sub-System".  This means that you can
  181.        run one application, then follow it with TextView
  182.        automatically. The original purpose for this is to display game
  183.        door scorecards.  One put the letter Y on this line followed by
  184.        the desired prompt, and TextView will give the option to answer
  185.        (Y)es, (N)o, (G)oodbye before running.  For a score door, the
  186.        sysop might put the following on this line:
  187.  
  188.        Y;View the Scorecards?
  189.  
  190.        TextView will show:
  191.  
  192.        View the Scorecards?
  193.        (Y)es, (N)o, (G)oodbye: _
  194.  
  195.        If the caller answers Yes, then TextView is run, and he is
  196.        shown the material.  If he answers No, then he is returned to
  197.        the BBS.  If he answers Goodbye then he is properly logged off.
  198.  
  199.        This feature is valuable if you want to give a user certain
  200.        material to read before or after a particular application. For
  201.        example, you might use it to launch an TextView application
  202.        from a bulletin, giving the user an option to execute the
  203.        feature or not. Leave the letter N on this line if you don't
  204.        want TextView to act as a "Sub-System".
  205.  
  206.        RESERVED: Reserved for future use.
  207.  
  208.        NONE: Replace this with the name of a batch file or program you
  209.        would like your users to be able to run from the TextView menu.
  210.        This can be any kind of routine you like as long as you have
  211.        enough free memory to support it.  Programs that write directly
  212.        to screen will need a program like Marshall Dudley's "Doorway"
  213.        to redirect the output.  The program or batch file specified
  214.        must be in the same directory as TV.PPE. The user can run the
  215.        routine by typing the word you put on this line.  For example,
  216.        if the routine you want to run is called REGISTER, then you
  217.        would need a program called REGISTER.EXE or REGISTER.COM, or a
  218.        batch file called REGISTER.BAT in directory with TV.PPE.  Then
  219.        your caller would type the word REGISTER from the TextView
  220.        command line to run the routine.
  221.  
  222.        D:\TV\TVMENU: The Name and path of your TextView Menu.
  223.  
  224.        D:\TV\TVHELLO: The Name and path of your TextView opening
  225.        screen (leave a blank line to not show an opening screen).
  226.  
  227.        D:\TV\TVBYE: The Name and path of your TextView closing screen
  228.        (leave a blank line for no closing screen).
  229.  
  230.        ──────────────────
  231.        TEXTVIEW AS A DOOR
  232.        ──────────────────
  233.  
  234.     3. Filename:           TEXTVIEW
  235.        Purpose:            Used by PCBoard to run the TextView from
  236.                            the DOOR menu
  237.        Location:           Your Door batch file directory
  238.  
  239.        Sample file:
  240.  
  241.        @ECHO OFF
  242.        ECHO !D:\TEXTVIEW\TV.PPE TV.CNF > PCBDOOR.TXT
  243.  
  244.        Explanation:
  245.  
  246.        @ECHO OFF: Stops echoing commands to the local screen
  247.  
  248.        ECHO !D:\TEXTVIEW\TV.PPE TV.CNF > PCBDOOR.TXT:
  249.        Creates a file called PCBDOOR.TXT in the default directory for
  250.        the node the caller is on.  Inside the file is the command to
  251.        run the specified TextView feature from the door menu.
  252.  
  253.     Note: In order to run TextView from the Door menu, you must enter
  254.     TEXTVIEW in your DOORS.LST file.  This is done by via
  255.     PCBSETUP.EXE.  Set it up as a SHELLED door, by putting the letter
  256.     "Y" under the column that says "SHELL". "USERS.SYS" and "DOOR.SYS"
  257.     should be set to "N".
  258.  
  259.     ───────────────────────────
  260.     TEXTVIEW FROM THE MAIN MENU
  261.     ───────────────────────────
  262.  
  263.     To execute a Textview based feature from the Main Menu Command
  264.     prompt, you must put an entry in your CMD.LST file.  To do this,
  265.     you have to run PCBSETUP.EXE.  Go from the main menu to "File
  266.     Locations", then to "Configuration Files".  Next cursor down to
  267.     your CMD.LST file and hit F2 to edit it.  You must put in an entry
  268.     for each TextView based feature.  It might look like this:
  269.  
  270.     Command         Security      PPE/MNU File -or- Keystroke Replacement
  271.     ============    ============  =======================================
  272.     1) NEWUSER      10            D:\TVIEW\TV.PPE NEWUSER.CNF
  273.     2) SUPPORT      10            D:\TVIEW\TV.PPE SUPPORT.CNF
  274.  
  275.  
  276.     The First column is the word the caller will type to view the
  277.     feature.  The second is the minimum security level the caller must
  278.     have to use the feature.  The third is the command required to run
  279.     the feature with the location of TV.PPE first, and the name of
  280.     the configuration file second.  IMPORTANT: the configuration file
  281.     must be in the same directory as TV.PPE.
  282.  
  283.     ────────────────────────────
  284.     TEXTVIEW FROM A DISPLAY FILE
  285.     ────────────────────────────
  286.  
  287.     You can automatically execute a TextView feature from most files
  288.     that PCBoard can display.  For example, I launch three different
  289.     TextView features from my Bulletin Menu.  One menu item is for
  290.     information on the U'NI-net Echomail Network.  When the caller
  291.     goes to read this item, the TextView U'NI-net Menu is instantly
  292.     produced, from there the caller can read from a menu of text
  293.     files, or even download programs.  When the caller exits that
  294.     feature, the Bulletin menu prompt is displayed!
  295.  
  296.     The way this is done is to go into BLT.LST from PCBSETUP.EXE and
  297.     assign a file name to display as a bulletin.  Then hit F2 to edit
  298.     that file.  Place a single line in the file to execute the
  299.     TextView feature you want.  The line must start in column one with
  300.     an exclamation point, then the path to TV.PPE, a space, then the
  301.     name and path of the configuration file.  It would look like this:
  302.  
  303.     !D:\TVIEW\TV.PPE UNI.CNF
  304.  
  305.     You can launch other PPE's as well in this from an TextView based
  306.     feature.
  307.  
  308.     Several features can be stacked in this fashion.  For example, on
  309.     my BBS a caller can go to the Bulletin Menu, Select "New User
  310.     Information", the "NewUser" TextView menu is produced instantly.
  311.     From there, if the caller selects the menu item for "Information
  312.     on Internet Email", the "Internet" TextView menu is produced. When
  313.     the caller exits the Internet feature, the Newuser menu is
  314.     produced, and when that is exited the Bulletin prompt is back.
  315.  
  316.     This makes TextView amazingly flexible.  If you run another
  317.     program of mine called DDoor, you can launch any door on your
  318.     system from a TextView menu selection!  < Shameless Plug <g>
  319.  
  320.     ─────────────────
  321.     FILES YOU PROVIDE
  322.     ─────────────────
  323.  
  324.     The following files can be used to enhance your TextView features.
  325.     You don't have to create them. If you don't, then the code will
  326.     handle it by skipping to the next step, so if you don't want to
  327.     support an ANSI version of each file, simply don't include it.  If
  328.     you do use these they must be in the path defined by you in
  329.     TV.CNF. These files can be created with any ASCII or ANSI editor,
  330.     or PCBEDIT from CDC. Security Level specific and Language Specific
  331.     files are also supported, as well as RIP screens.
  332.  
  333.     TVHELLO & TVHELLOG: These are like PCBoard's WELCOME & WELCOMEG.
  334.     will be shown to your callers inside the application.
  335.  
  336.     TVDIR & TVDIRG: This is the directory of files you are offering
  337.     for download in the TextView application.  If you don't allow
  338.     downloading, then this file need exist.  You can use any of the
  339.     PCBoard directory maintenance programs to create and maintain this
  340.     file, including PCBFILER.  This file will be automatically
  341.     colorized.  To make this work correctly, reserve the first three
  342.     lines of the file for header information.  Have the first filename
  343.     and description on LINE 4.
  344.  
  345.     TVBYE & TVBYEG: This the last thing the caller sees before leaving
  346.     the feature to go back to PCBoard.
  347.  
  348.     TVx & TVxG: These are the actual files available for viewing.  x
  349.     equals the menu number of the file (So, TV1 and TV1G would be Menu
  350.     item 1). It is VERY important to remember to rename each feature
  351.     in this manner. This is written in the same manner as the PCBoard
  352.     Bulletins (BLT1, BLT1G, etc.).  Registered users may specify their
  353.     own filenames in a file defined on line 9 of the .CNF file.
  354.  
  355.     ──────────────────
  356.     NON-STANDARD PORTS
  357.     ──────────────────
  358.  
  359.     If your non-standard setup (multiport board or whatever) works
  360.     with PCBoard, it will work with TextView.  Don't give this a
  361.     second thought, this is one of the reasons I completely rewrote
  362.     the program using the PCBoard Programming Language.  Compatibility
  363.     is guaranteed!
  364.  
  365.     ────────────────────────────
  366.     TEXT VARIABLES & COLOR CODES
  367.     ────────────────────────────
  368.  
  369.     All display files will respond to the standard PCBoard text
  370.     variables and color codes. Place the variables anywhere in any
  371.     line to be displayed by TextView and they will be translated.
  372.  
  373.     ───────────────────────────
  374.     DOWNLOADING INSIDE TEXTVIEW
  375.     ───────────────────────────
  376.     Under most circumstances, Downloading with TextView is simple,
  377.     because it uses PCBoard's own downloading routines.
  378.  
  379.     However, when you want to give people who don't have downloading
  380.     access on your BBS the ability to download specific files
  381.     inside a TextView application, it can be a little tricky.
  382.  
  383.     First, you must give these callers some daily K-bytes in the PWRD
  384.     file.  TextView bypasses the fact that they don't have access to
  385.     the main board (D)ownload command, but they still have to have
  386.     some K-Bytes available in the PWRD file for it to work.
  387.  
  388.     The other consideration is that the routine from PCBoard that
  389.     TextView uses to download files, flags only the legit files they
  390.     are allowed to download, but then presents them with a prompt to
  391.     "Download Flagged Files (Y)".  I found out that if the caller
  392.     answers (N) to this question, he can then flag any file on the
  393.     system!  To get around this, you have to manipulate your FSEC file
  394.     a bit.  Here is what mine looks like:
  395.  
  396.         D:\NU\DL\,*.*,10,
  397.         ,*.*,30,
  398.  
  399.     The first line lets anybody with level 10 or greater download any
  400.     file in my D:\NU\DL directory.  This is the directory for my "New
  401.     User Door".  The next line tells the system to only allow level 30
  402.     or above (registered users) to download from any other directory.
  403.  
  404.     If you set it up this way, your unregistered callers can download
  405.     from the TextView door, but if they try to flag other files on the
  406.     system, they will get a security message.
  407.  
  408.     The FSEC file can be edited using PCBSETUP.EXE.
  409.  
  410.  
  411.     ────────────
  412.     REGISTRATION
  413.     ────────────
  414.  
  415.     TextView represents years of work.  I have been supplying updates
  416.     of this program since June of 1988.  In November of 1993 I did a
  417.     complete rewrite as a PPE without charging people who registered
  418.     the program before anything.  The fact that TextView is a PPE
  419.     guarantees future compatibility with PCBoard.  If you exploit the
  420.     full power of TextView it will become an important part of your
  421.     BBS.  For this reason, you should pay to register it.
  422.  
  423.     If you find that your are still running TextView 30 days after
  424.     setting it up, or if you'd like to unlock the registered features,
  425.     please call The Ledge PCBoard at 818-896-4015 and type REGISTER at
  426.     the main menu command prompt.  This will allow you to register by
  427.     MASTERCARD, VISA, DISCOVER or AMERICAN EXPRESS.
  428.  
  429.     If you prefer to pay by check or money order, please fill out
  430.     REGISTER.TXT and send it in with a shareware contribution of
  431.     $20.00 in US Funds.
  432.  
  433.     Registered users will receive a file called TV.KEY that when
  434.     present in the same directory as TV.PPE will bypass all
  435.     "unregistered" references, bypass the "Press Enter to Continue"
  436.     prompt before TVHELLO is displayed, and will allow you to use line
  437.     9 of the .CNF file to specify your own custom filenames for
  438.     display instead of TV1, TV2, TV3, etc.
  439.  
  440.     Valid TV.KEY files will automatically register this version of
  441.     TextView and ALL FUTURE VERSIONS!  There is no need to call my BBS
  442.     each time I release a new TV.PPE to get your registered copy.
  443.     Just download it from any source and your TV.KEY file will unlock
  444.     the new version for you just by being there no mumbo-jumbo, no
  445.     passwords...just run the program!
  446.  
  447.     ───────
  448.     SUPPORT
  449.     ───────
  450.     I can be reached at my BBS, The Ledge PCBoard (818) 896-4015 -
  451.     HST/V.32bis, U'NI-net Echomail Network (for which I am the
  452.     International host), Internet: sysop@ledge.com, Compuserve:
  453.     76175,623 or US Mail at the address listed in REGISTER.TXT.
  454.  
  455.     If you contact me on my BBS, please ignore the mail-in validation
  456.     procedure.  Simply leave me a [C]omment with your questions and I
  457.     will validate you as a "visiting Sysop" without delay.
  458.  
  459.     LEDGE SUPPORT: Please note that on your first call to the ledge,
  460.     you can enter the Ledge Support area.  It is a TextView feature
  461.     that will allow you to view the current "TEXTVIEW.DOC" file and
  462.     download the very latest version of TextView. You DON'T have to be
  463.     a registered user on The Ledge to use this service! Please let me
  464.     know you called though so I can validate you for future calls.
  465.  
  466.     UPDATES VIA INTERNET FTP: You can get all of the latest releases
  467.     of programs written by Joseph Sheppard, including Textview via
  468.     Internet File Transfer Protocol at the following locations:
  469.  
  470.     iia.org       /pub/users/uninet/sheppard
  471.     kaiwan.com    /user/uninet/sheppard
  472.  
  473.     UPDATES VIA FTPMAIL: If you have access to internet email, you can
  474.     receive uuencoded TextView updates!  Send a message addressed:
  475.  
  476.     To: ftpmail@ledge.com
  477.  
  478.     In the body of the message put the following words:
  479.  
  480.     list ledge
  481.  
  482.     You will receive a listing of the files available for download via
  483.     ftpmail, including the name of the latest TextView.  When you get
  484.     the correct filename, send another message to ftpmail@ledge.com,
  485.     this time put the following words:
  486.  
  487.     get ledge TVIEWxx.ZIP
  488.  
  489.     (Where the xx equals the version number, ie: TVIEW99.ZIP).
  490.  
  491.     ──────
  492.     THANKS
  493.     ──────
  494.  
  495.     Thanks to Samuel Smith, the genius behind Prodoor, ProKit, HS/Link
  496.     and other programs we have all benefited from.  I learned to
  497.     program in Turbo Pascal so I could write the original TextView
  498.     door using Sam's door kit routines.  I have moved on to the
  499.     PCBoard Programming Language, but I still owe Sam a lot for making
  500.     his source code public so I could learn from it.  Sam's Tool Shop
  501.     BBS can be reached by calling (818) 891-6780.
  502.  
  503.     Thanks to Charles Shapiro, Sysop of Absolut(e)ly Temporary (702)
  504.     254-8601 for his valuable help in beta testing TextView.
  505.  
  506.     Thanks to Mark Rapp, Sysop the MicroSellar BBS (201) 239-1346 for
  507.     some great technical suggestions that were very helpful in the
  508.     creation of the original TextView door.
  509.  
  510.     ──────────
  511.     DISCLAIMER
  512.     ──────────
  513.  
  514.     I make no warranty of any kind, express or implied, including
  515.     without limitation, any warranties of merchantability and/or
  516.     fitness for a particular purpose.  I shall not be liable for any
  517.     damages, whether direct, indirect, special or consequential
  518.     arising from a failure of this program to operate in the manner
  519.     desired by the user.  I shall not be liable for any damage to data
  520.     or property which may be caused directly or indirectly by the use
  521.     of this program.
  522.  
  523.     IN NO EVENT WILL I BE LIABLE TO YOU FOR ANY DAMAGES, INCLUDING ANY
  524.     LOST PROFITS, LOST SAVINGS OR OTHER INCIDENTAL OR CONSEQUENTIAL
  525.     DAMAGES ARISING OUT OF YOUR USE OR INABILITY TO USE THE PROGRAM,
  526.     OR FOR ANY CLAIM BY ANY OTHER PARTY.
  527.  
  528.  
  529.  
  530.  
  531.