home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
WWIVMODS
/
MODSUNKN.ZIP
/
FROM.MOD
< prev
next >
Wrap
Text File
|
1988-07-12
|
7KB
|
173 lines
I did this mod after my HD crashed and I lost all my user info. This can not
be done (to my knowledge) w/o starting all over again with your users. If you
try to do it the variable size for each user will be all wrong and your system
will mostlikely crash if you or anyone else tries to logon or if you use the
U command from WFC. This is all because you need to add in 3 variables to
VARDEC.H which is compiled into every part of the WWIV, it's just like the
'ol COMMON.PAS. If anyone knows how to add variables to VARDEC.H w/o screwing
up all present user data, please tell me sometime. The only way I could think
of it is expending the user info files by using something like pc-tools to
change it around in hex, i could never do this, but there must be an easier
way.
OK, so you now know that to use these mods you are either going to have to
destroy all current user records and type them back in again or your a new
sysop who wants to get things the way you want them before you start your
board. Hopefully you won't add them in because you were foolish enough to let
your HD crash w/o a back up like me. Just follow the instructions and you will
be able to keep track of were your users are calling from. It's a nice little
mod that I find quite handy.
==>MrBill (Me Again)
MrBill's Abode
703-369-6140
07/11/88
------------------------------------------------------------------------------
add these variables to VARDEC.H to make the room for the new information. Make
sure that you put them in the first section of variables or you'll be screwed.
------------------------------------------------------------------------------
macros[3][81], /* macro keys */ /* search for this */
street[31], /* add this */
citystate[31], /* add this */
zip[6], /* add this */
sex; /* user's sex */
------------------------------------------------------------------------------
add these procedures anywhere in NEWUSER.C aroung the other ones that are
called input_whatever
------------------------------------------------------------------------------
void input_street()
{
do {
nl();
pl("Enter your street address.");
outstr(":");
inputl(thisuser.street,30);
if (thisuser.street[0]==0) {
nl();
pl("I'm sorry, you must enter your street address.");
}
} while ((thisuser.street[0]==0) && (!hangup));
}
void input_citystate()
{
do {
nl();
pl("Enter your city and state (i.e Manassas, Va)");
outstr(":");
inputl(thisuser.citystate,30);
if (thisuser.citystate[0]==0) {
nl();
pl("I'm sorry, you must enter your city and state in the correct form.")
}
} while ((thisuser.citystate[0]==0) && (!hangup));
}
void input_zip()
{
do {
nl();
pl("Enter you 5 digit zipcode.");
outstr(":");
inputl(thisuser.zip,5);
if (thisuser.zip[0]==0) {
nl();
pl("I'm sorry, you must enter your zipcode.");
}
} while ((thisuser.zip[0]==0) && (!hangup));
}
------------------------------------------------------------------------------
add this to NEWUSER.C to ask for the information on where they live
------------------------------------------------------------------------------
if (printfile("NEWUSER.MSG")) /* search for this */
sl1(0,"#Aborted NEWUSER.MSG");
}
input_name();
input_realname();
input_street(); /* add */
input_citystate(); /* add */
input_zip(); /* add */
input_phone();
input_pw(); /* add this to get rid of the random pw */
input_sex();
input_age(&thisuser);
input_comptype();
input_screensize();
input_ansistat();
}
------------------------------------------------------------------------------
Add this to NEWUSER.C so that a user can edit his info incase of a mistake.
------------------------------------------------------------------------------
print("9. Password : ",thisuser.pw,""); /* search for this */
nl(); /* add */
prt(0,"------> Please use UPPER and lower case <-----"); /* add */
nl(); nl(); /* add */
print("A. Address : ",thisuser.street,""); /* add */
print("B. City, State : ",thisuser.citystate,""); /* add */
print("C. Zipcode : ",thisuser.zip,"");
pl("Q. No changes.");
nl();
nl();
prt(2,"Which (1-9,A,B,C,Q) : "); /* change */
ch=onek("QABC123456789"); /* change */
ok=0;
switch(ch) {
case 'Q': ok=1; break;
case '1': input_name(); break;
case '2': input_realname(); break;
case '3': input_callsign(); break;
case '4': input_phone(); break;
case '5': input_sex(); break;
case '6': input_age(&thisuser); break;
case '7': input_comptype(); break;
case '8': input_screensize(); break;
case '9': input_pw(); break;
case 'A': input_street(); break; /* add */
case 'B': input_citystate(); break; /* add */
case 'C': input_zip(); break; /* add */
}
} while ((!ok) && (!hangup));
------------------------------------------------------------------------------
add this to SYSOPF.C to the end of procedure void print_short() so that you
can see where the user is from in the //uedit
------------------------------------------------------------------------------
print("Rest: ",&s2,""); /* search for this */
print("Address : ",(u->street),""); /* add */
print("City/State : ",(u->citystate),""); /* add */
print("Zipcode : ",(u->zip),""); /* add */
itoa(u->gold,s,10); /* from another mod */
print("Gold: ",&s,""); /* from another mod */
nl();
}
------------------------------------------------------------------------------
add this to the beginning of void yourinfo() in BBSUTL.C to show the address
and such when a user hits the Y command from the mainmenu
------------------------------------------------------------------------------
void yourinfo() /* search for this */
{
char s[81];
outchr(12);
print("Your name : ",nam(&thisuser,usernum),"");
print("Your address : ",thisuser.street,""); /* add */
print("From : ",thisuser.citystate,""); /* add */
print("Zipcode : ",thisuser.zip,""); /* add */
print("Phone number : ",thisuser.phone,"");