• Using basic HTML code in pascal pro

    From Wayne Steele@3:633/690 to Donald Tidmore on Mon Aug 29 10:05:00 2005
    Hi Donald,

    I'm hoping that one of you can give me instructions on how one
    can take a basic Lord program, in this case Jason Brown's
    LordStat utility, and change it so that it can output basic HTML
    text files. The program currently makes ANSI and ASCII bulletin
    files to cover usage of the LORD and Lord/32 beta bbs door games.
    What I want to do is write simple HTML files but I have no idea
    as to how to go about doing that.

    So can one of you provide me with information on this topic? I
    figure that someone somewhere has done this sort of thing, and I
    hope one of them is still active in this echo. Thanks, Donald.

    You could also browse the elebbs sourcecode... www.elebbs.com and you
    can browse online via cvs... Look in the cgi/default directory... This
    is for the EleWEB side of EleBBS and uses pascal code for showing html
    stuff via cgi scripts...

    Lata, badnewsbbs@westnet.com.au
    zomorf ICQ 12489905 offline
    telnet ftp news http://badnews.bbs.us

    ... I know a good tagline when I steal one.

    ---
    * Origin: Come & Visit for a Kick@ss EleBBS & EleWEB BBS (3:633/690)
  • From Sean Dennis@1:18/200 to Donald Tidmore on Fri Sep 30 19:54:04 2005
    Hello, Donald!

    Replying to a message of Wayne Steele to Donald Tidmore:

    I'm hoping that one of you can give me instructions on how one
    can take a basic Lord program, in this case Jason Brown's
    LordStat utility, and change it so that it can output basic HTML
    text files. The program currently makes ANSI and ASCII bulletin
    files to cover usage of the LORD and Lord/32 beta bbs door games.
    What I want to do is write simple HTML files but I have no idea as
    to how to go about doing that.


    That's not difficult at all, really. Just create your HTML stuff as a text file... something like:

    Program HTMLCreate;

    Uses DOS, CRT;

    Var
    Temp : Text;

    Begin
    Assign(Temp,'yourfile.html');
    {$I-}Rewrite(Temp){$I+}
    WriteLn('<html>');
    WriteLn('<title>Test Page</title>');
    WriteLn('<body>');
    WriteLn('<b>Put Your Data Here</b>');
    WriteLn('</body>');
    WriteLn('</html>');
    Close(Temp);
    End.

    Hope this helps a little. :)

    Later,
    Sean

    --- FleetStreet 1.27.1
    * Origin: Outpost BBS - Johnson City, TN - outpostbbs.darktech.org (1:18/200)
  • From Roelof Beverdam@2:280/5218 to Sean Dennis on Sun Oct 2 10:34:12 2005
    Hello Sean,

    That's not difficult at all, really. Just create your HTML stuff as a text file... something like:

    Program HTMLCreate;

    Uses DOS, CRT;
    [cut]

    You usually would prefer NOT to include the CRT Unit into your program. It results in code with direct screen access output, which is not redirectable to the Com port.

    Of course, unless the output file is statically generated (offline updated once
    a day or so) fot later presentation to the user. But even then I would prefer to have errors during a nightly event being saved into a logfile using I/O-redirection instead of loosing them.

    Cheers,
    Roelof Beverdam

    --- Dutchie V3.10.11
    * Origin: The Beaver's Nest (2:280/5218)