home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
WWIVMODS
/
PRE412.ZIP
/
ELRIC27.MOD
< prev
next >
Wrap
Text File
|
1990-01-18
|
5KB
|
158 lines
Elric27.mod/elric27.zip
Hello, and welcome to Elric's mods #27. The Transfer help files.
I get a lot of relatively new computer users calling me and asking me
how to unzip a file, or how to use Zmodem, or whatever. I got tired of it, so
I wrote this today to try and take care of it. What it does is add
the H command to the transfer section to give a short menu of help files.
You are free to add as many or as few of these as you like. All you have to do
is add/delete the appropriate lines in the short menu, then renumber the code.
Feel free to contact me at the address at the bottom of the mod for help.
/** this step is indeed a form step, much like a form letter **/
1. From DOS, in your dir where you keep your source....
PKZIP SOURCE *.c *.h
If you already have a source zip file, then
PKZIP -f source *.c *.h
This way you have a copy of everything before you screw it up with a bad mod.
If you decide to take the mod out, it's as easy as
PKUNZIP -x source
and hit Y to overwrite any files you changed.
/** we now resume our regularly scheduled mod with step 2.... **/
2. Down at the bottom of sysopf1, add this function
void transhelp()
{
char ch;
int done;
do{
done=0;
nl();nl();
printfile("TRHELP");
/** I left the ? in the possible commands, but all it does is just cycle**/
/** back through and print the menu again.... **/
prt(2,"1234Q?:")
ch=onek("1234Q?");
nl();nl();
switch (ch){
case '1':printfile("ZIP"); break;
case '2':printfile("DSZ"); break;
case '3':printfile("BATCH"); break;
case '4':printfile("TRULES"); break;
case 'Q': done=1; break;
}
} while ((!done) && (!hangup));
}
3. Now, back to actual C programming, load up FCNS.H. Somewhere,
anywhere, declare transhelp. I added it to the bottom of the list of stuff
for sysopf1.c, since that's where it is...
void print_net_listing();
void read_new_stuff();
void voteprint();
void print_pending_list();
void transhelp(); /** add me **/
4. Now load up BBS.C, and look down for dlmainmenu. Somewhere in there,
add case 'H'.
case 'G':
pl(": Archive commands"); /**ignore this if you haven't added my "hotkey" mod **/
helpl=30;
temporary_stuff();
break;
/** add this **/
case 'H':
pl(": Help with transfer stuff"); /** again, ignore if no elric15. **/
transhelp();
break;
/** end of mod **/
case 'L':
5. Now re-compile, and you're done with the software. Now to add files...
6. Put this short text file in your gfiles dir. Call it TRHELP.MSG.
-------------------cut here------------------
The [insert BBS name here] BBS
Transfer help section
1. Help for ARC/ZIP/PAK/LZH/ZOO files
2. Help for DSZ protocols
3. Help for Batch downloads
4. Rules of the Transfer Section
Q. Quit
----------cut here -----------------
7. Now you need to create the appropriate files for the help files.
I'll leave that mostly up to you, but here's what you need.
All of these go in the gfiles dir.
File name Contents
ZIP.MSG simple instructions on how to use PKUNZIP/PKZIP, PAK, ARC,
and whatever other archive types you have on your BBS.
DSZ.MSG how to set up batch files to run DSZ, how to add them to term
programs, the commands to use the DSZ based protocols you use.
BATCH.MSG any batch protocals you use, what the commands are, how to
set up things at their end, how to work the batch commands
on the BBS, things like that
TRULES.MSG any rules you have about your transfer section, where to upload
things, whether or not you have/want "Adult" files, etc..
Of course, feel free to add support files for kermit or sealink or
whatever else you think you need. Also, you can creat ansi versions of these
if you have nothing better to do, just call it xxx.ANS, and if they have ANSI,
and if the file exists, printfile will pull out the ANSI version for them.
/** hey, it's the form info file **/
As usual, I take no responsibility for hard drive crashes, death in the
family, or end of the world as we know it resulting from this mod.
It's your fault if you didn't back up the files before you made the mod.
It's your fault if you don't back up your ENTIRE hard drive AT LEAST once
a month.
It works on my system with Turbo C 2.0, WWIV 4.1, V20/8088, 640K/640EMS.
If you use this, the only payment I ask is that you send me a
note through WWIVNet to 1@8251 saying you are using it...not too much to
ask is it?
If you have any problems, you can reach me through WWIV-Net, 1@8251, or call
my BBS.
The Kingdom of Melnibone
812-877-3488 24 Hrs a day
3/12/2400/4800/9600/12,000/14,400 baud HST MNP5
Auto-validation of WWIV sysops on first call
Xmodem, Ymodem, DSZ Zmodem with retry, Ymodem-G
Lord Elric