home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
HATCH
/
WWIVNEWS.ZIP
/
9301_3.NWS
< prev
next >
Wrap
Text File
|
1993-01-23
|
22KB
|
499 lines
───────────────┬─────────────────────────────────────────────┬───────────────
│ Filo's Mod of the Month │
│ by Filo (1@5252) │
└─────────────────────────────────────────────┘
[Editor's nOTE: the past three months on the Modnet have seen what most
WWIV Sysops have come to consider the "pre-release drought" in the advance
of WWIV 4.22's release. Most mods that appear during this period usually
take the form of bug fixes for previous releases, or cosmetic updates of
of mods designed for older releases of WWIV. The following Mod-of-The-Month
selection by Filo is the best of the few mods that have appeared during this
period that could be considered "new and innovative" when compared to the
rest of the Modnet submissions.]
─────────────────────────────────────────────────────────────────────────────
The Mod-of-The-Month Selection represents my choice of what appears to be a
useful, practical mod to WWIV. It does not mean it is the best mod posted or
even that it works as I may not have tested it. Given the limitations of this
media, uuencoded mods are NOT eligible for selection as mod-of-the-month.
Further, I tend to reject mods that have had a number of fixes to them.
┌──────────────────────────────────────────────────────────Filo─header─(c)───┐
│ Mod Name: WAF016.MOD Author: Wafwot #2 @2632 │
│ Difficulty: Easy/Medium Date: Oct 1, 1992 │
│ WWIV Version: 4.21a Tested, should work with past/future versions. │
│ Description: Sends E-Mail to a new user from the sysop. This sends the │
│ new user E-Mail, using a file in Gfiles. Nice feature! │
└────────────────────────────────────────────────────────────────────────────┘
More Descriptive:
─────────────────
Ok, I have logged on to other BBS' in the country (not WWIV) and when I have
completed the newuser logon procedure, it tells me I have mail. I'm not sure,
but I think (VBBS) has this feature. This mail tells me about the sysop, some
features of the BBS, and/or other tidbits of useless <grin> information about
the BBS. It makes some of the less experienced users jump for joy, because they
have mail on their first call... and you know how new users love to get mail!
Anyway, here it is. I have no idea if this has been done before, but I'd like
to think it was my idea. I have over 900 mods, dating back to 1990, and I
haven't seen ANYTHING like this. If it is someone else's idea, tough shit. I
didn't steal it from you. <grin> Ok, Let go...
Step 1:
───────
Backup.
Step 2:
───────
Load up VARS.H and add the 'echo_off' variable to the int and extern int lists.
The examples below are from MY modded source, NOT an unmodded 'clean' source.
So, if you see some variables that you don't have, don't add them. Just add the
'echo_off' variable. Sorry, I deleted the clean source... for no apparent
reason. The 'echo_off' variable is used so that when you send the newuser
E-Mail automatically, the user does not see all the lines associated with
sending a load file via E-Mail. ie, File loaded into workspace, Saving...Mail
sent to User #0, etc. It makes it seemless and invisible.
int...
save_dos, screenbottom, screenlen, screenlinest, smwcheck,
statusfile, sysop_alert, tempio, topdata, topline, two_color,
userfile, usernum, useron, use_workspace, using_modem, wfc, x_only,
chat_calls, lastrandom, force_chat, echo_off;
/* ^ ADD THIS */
...and again a little further down in the externs...
extern int...
save_dos, screenbottom, screenlen, screenlinest, smwcheck,
statusfile, sysop_alert, tempio, topdata, topline, two_color,
userfile, usernum, useron, use_workspace, using_modem, wfc, x_only,
chat_calls, lastrandom, force_chat, echo_off;
/* ^ ADD THIS */
Step 3:
───────
Save VARS.H and load up NEWUSER.C. This is the actual void that sends the
E-Mail. Block copy the whole void to the end of your NEWUSER.C file.
void newuser_mail(void)
{
char title[61],s[81],mail[81];
messagerec msg;
echo_off=0; /* turns 'echo_off' */
title[0]=0; /* clears the title */
strcpy(s,nam(&thisuser,usernum)); /* copy username to s */
sprintf(mail,"%sNEWFORM.MSG",syscfg.gfilesdir); /* finds the form ltr */
load_workspace(mail,1); /* loads form ltr */
msg.storage_type=2; /* set mail storage */
inmsg(&msg,title,0,0,"E-Mail",0,s,0); /* places ltr in mail */
sendout_E-Mail(title,&msg,0,usernum,0,1,1,0,0); /* sends E-Mail */
++thisuser.waiting; /* so newuser can read it */
echo_off=1; /* turns echo back on */
}
Step 4:
───────
This is where we will call the newuser_mail void. In NEWUSER.C, this is between
where the user pressed 'Q' to continue after he filled in all of his
information, and before they have to re-enter their password. I liked it here
because sending the mail will take a some (not much) time, and it DOES say
'Please wait...' while the BBS assigns a user number. This was just the obvious
place.
ok=0;
newuser_mail(); /* ADD ME */
topscreen();
do {
nl();
nl();
npr("Your user number is: %d.\r\n",usernum);
npr("Your password is: %s.\r\n",thisuser.pw); nl();
Step 5:
───────
Since we added a new void to NEWUSER.C, load up FCNS.H and add the new
prototype to the newuser.c section.
void input_comptype(void);
void input_screensize(void);
void newuser_mail(void); /* ADD ME */
void input_pw(void);
void input_ansistat(void);
Step 6:
───────
Save FCNS.H (and NEWUSER.C if you didn't already), and load up MSGBASE.C.
Search for void load_workspace(blahblah) and make the following changes. Again,
this is making it so the newuser DOES NOT see the printed lines associated with
sending mail. Make the marked lines look like what is below. I indented my
lines, because I like to be neat. <grin>
else
use_workspace=0;
nl();
if (echo_off) { /* ADD */
pl("File loaded into workspace."); /* INDENT */
nl(); /* INDENT */
if (!use_workspace) /* INDENT */
pl("Editing will be allowed."); /* INDENT */
} /* ADD */
}
Step 7:
───────
Now, still in MSGBASE.C, find void inmsg(blahblah) and make the following
changes. Again, all we are doing is adding if statements to avoid printing
lines that we DON'T want printed with the newuser_mail. First, find the
section of code that deals with entering a title. You can just block copy
what I have here, or you can make the changes. Again, this came from my
modded source, so it may not be exactly what 4.21a should be.
if (echo_off) { /* ADD ME */
nl();
helpl=6;
title[0]=0;
if (okansi()) {
prt(2,"Title: ");
mpl(60);
inputl(title,60);
} else {
pl(" (----------------------------------------------------------)");
outstr("Title: ");
inputl(title,60);
}
} /* ADD ME */
Then directly under this section of code, add this if statement. This is
making a personalized title. A nice touch, if I don't say so myself.
if (!echo_off) {
sprintf(title,"WELCOME %s!",thisuser.name);
}
Step 8:
───────
Further down in void inmsg(blahblah) in MSGBASE.C, find this section of code
and make the indicated changes/additions.
save=exist(fnx);
if (save) {
if (echo_off) { /* ADD ME */
pl("Reading in file..."); /* INDENT */
} /* ADD ME */
}
use_workspace=0;
Step 9:
───────
Still further down, find this code, and make THESE changes.
case anony_real_name:
real_name=1;
*anony=0;
break;
}
if (echo_off) { /* ADD ME */
outstr("Saving..."); /* INDENT */
} /* ADD ME */
if (fsed) {
i5=open(fnx,O_RDONLY | O_BINARY);
l1=filelength(i5);
} else {
Step 10:
────────
And again.... further down in void inmsg, find this code, and make the
indicated changes.
farfree(b);
farfree(b1);
}
s2[0]=0;
if (echo_off) { /* ADD ME */
strcpy(s,"Mail sent to "); /* INDENT */
} /* ADD ME */
if (sy==0) {
read_user(un,&ur);
++ur.waiting;
write_user(un,&ur);
Step 11:
───────
And now.... at the very bottom of void inmsg, make this indicated change.
save_status();
if (!wfc)
topscreen();
if (echo_off) /* ADD ME */
pl(s); /* INDENT */
if (s2[0])
pl(s2);
}
I know I didn't need some of those brackets, but I may add some stuff later,
and they don't seem to effect anything.
Step 12:
────────
Ok, now just in case the newuser gets dumped off line, or they hangup on you in
the middle of getting sent E-Mail from the newuser_mail void, we will add the
following line to LILO.C so that the echo_off variable equals 1. 'echo_off'
must ALWAYS equal 1 except when send a newuser mail from this mod. If echo_off
equals 0, then your regular, registered user will not see the 'Saving...Mail
sent to Jest #1' lines that they normally do. This will force echo_off to be 1
for EVERY caller. In void getuser(void), near the top, add this one line.
ok=0;
checkit=1;
okmacro=0;
echo_off=1; /* ADD ME */
actsl=syscfg.newusersl;
if ((!net_only) && (incom)) {
sprintf(s,"%sWELCOME.ANS",syscfg.gfilesdir);
if (exist(s)) {
nl();
#ifdef OLD
Step 13:
────────
And again, just for safety, add this one line in XINIT.C. This will make
echo_off equal 1 whenever the BBS is loaded up. In void init(void) in XINIT.C
find this code and add the indicated line.
#ifdef EMS_XMS
if (_OvrInitEms(0,0,16)!=0)
_OvrInitExt(0L,0);
#endif
userfile=-1;
configfile=-1;
statusfile=-1;
dlf=-1;
curlsub=-1;
curldir=-1;
echo_off=1; /* ADD ME */
setvect(save_dos, getvect(INT_REAL_DOS));
oldx=0;
Step 14:
────────
That should do it. Save all files and compile/link. You will compile the whole
BBS, since we added a variable to VARS.H.
Step 15:
────────
You need to create a NEWFORM.MSG file. This is the file that is sent to the
newuser. I have installed an MCI mod into our BBS, so mine is kinda full of MCI
commands that place the newuser's name, and other info into the mail. It really
looks nice when a newuser logs on, and they get mail that looks as though the
sysop wrote it to them! I recommend a good MCI mod to go along with this mod.
Below is my NEWFORM.MSG. You can use it, or create your own. (I removed the
MCI codes from it, and changed it around for one sysop... The Evening Post has
two.)
─────────────────────────────────────────────────────────────────────────────
Welcome to The Evening Post!
You have successfully logged onto one of Whidbey Island's most exciting
bulletin boards. Thanks for calling!
As you can see, The Evening Post is setup to automatically send you
E-Mail. You should respond to this mail, by pressing 'A' at the
E-Mail prompt (Mail {?}).
With most prompts, pressing a '?' will get you help. You will be
presented with a menu of available commands for the prompt. It's
really quite simple. If you do have trouble, press and hold the
control key (Ctrl) while pressing the letter 'O' key. (CTRL-O).
This will give you context-sensitive help throughout the BBS, any-
where you may be.
If you want to change any features of your new account, just press 'D'
to go to D:efaults. Here, you can change just about anything
pertaining to your account.
You now have full access to all of the BBS's message subs, file areas,
and external games. I am always adding new stuff to the BBS, so
call often!
If you have any questions, please press 'F' and send feedback to me.
I will be sure to answer it. I like hearing from all my users!
If you think I can improve the BBS, please let me know how, and I will
try to implement your suggestions.
Enjoy your visit, and call back often, you're always welcome!
─────────────────────────────────────────────────────────────────────────────
Try to keep it short. Too long, and the user gets bored. If you use this mod,
PLEASE, PLEASE, PLEASE send me E-Mail. I'd like to know what you think even if
you hate it....
───────────────┬─────────────────────────────────────────────┬───────────────
│ WWIVnet-Compatible Network Listing │
│ Compiled 1/7/93 │
│ By Red Dwarf (1@6264) │
└─────────────────────────────────────────────┘
[Editor's nOTE: This column will be a new feature of WWIVnews starting with
this issue. If you are part of a WWIV-compatible network that is not listed
below, have your Network Coordinator contact 1@6264 about having your
network listed]
─────────────────────────────────────────────────────────────────────────────
Network Name Ident. WWIVnet Node IceNET Node WWIVLink Node
Hosting BBS Hosting BBS Phone Number
─────────────────────────────────────────────────────────────────────────────
CaffNet @3101
Star-Lit BBS 301-229-2957
─────────────────────────────────────────────────────────────────────────────
CHAOSnet @4954
The Elm Street BBS 419-422-9742
─────────────────────────────────────────────────────────────────────────────
EliteNET @2462
Alley Closed BBS 214-238-8121
─────────────────────────────────────────────────────────────────────────────
ExpressNET @6754
Data Express 617-247-3383
─────────────────────────────────────────────────────────────────────────────
NorthStarNET #& @6259 @6259 @16259
AeroTech 612-935-3505
─────────────────────────────────────────────────────────────────────────────
NukeNet @14063
─────────────────────────────────────────────────────────────────────────────
RATnet ^& @6255
Rat Land 612-647-9530
─────────────────────────────────────────────────────────────────────────────
SOLARnet #$&^ @3484 @3454 @13495
Rap City [GSA] 314-963-7960
─────────────────────────────────────────────────────────────────────────────
StarNet @3956
Diamond's BBS 319-277-0166
─────────────────────────────────────────────────────────────────────────────
TeenNet @4053 @14064
Central Station 410-315-9854
─────────────────────────────────────────────────────────────────────────────
TerraNET #^& @8861 @8857
Blue Thunder 818-848-4101
─────────────────────────────────────────────────────────────────────────────
TestNet @19960 @9994
Test Site BBS 919-760-4811
─────────────────────────────────────────────────────────────────────────────
TheLink L @4718
Dislexia BBS 407-851-9531
─────────────────────────────────────────────────────────────────────────────
WWIVweb # @5813 @5802
Sanctuary 508-892-8529
─────────────────────────────────────────────────────────────────────────────
*.Net @2459
Reynard's Keep 214-406-1264
─────────────────────────────────────────────────────────────────────────────
KEY:
! ─ Registered Wayne Bell's NETUP software
# ─ Uses other automatic update software
$ ─ Long Distance assistance available
* ─ Restictions Apply to this network
& ─ Application available in master file (NmmddyyA.ZIP)(Net Applicatons)
^ ─ High Speed Connections (9600+)
% ─ PcPursuit
L ─ Local Network (within area code)
Please inform me of any errors in your network's listing.
Red Dwarf:
1@6264 WWIVnet
1@6256 IceNET
The File Pile BBS:
612-351-0144 2400 Baud [ISB]
───────────────┬─────────────────────────────────────────────┬───────────────
│ Dateline: @#$*()#! │
│ Editor's Notes by Omega Man (1@5282) │
└─────────────────────────────────────────────┘
...Ok, ok, so it's been almost three months since the last issue of WWIVnews
was distributed across WWIVnews. Judging from the amount of mail I've gotten
regarding the status of the next issue, I suppose it's safe to say that a
LOT of you have been virtually going through withdrawals of some sort without
a WWIVnews fix. Most of you, naturally, want an explanation of some sort as
to what caused the delays, right?
...Well, without going into some really personal matters, I'll simply say that
WWIVnews was delayed for almost three months because yours truly got tied up
with matters that were job-related and somewhat unforseen. These delays were
further hampered by yet another episode of "OM vs. The Hard Drive from Hell",
and combined with a new job that took up 78% of my free time. Adding to this,
oddly enough, was the presence of a 5'11" stunning brunette who measured in at
36-25-38 who proceeded to occupy the remaining 22% of my spare time. The fact
that she's got a really cute little tyke of a son with a case of the "terrible
twos" didn't help - or hurt - matters either.
...Fine. So I violated rule #1 of the Computer Geek's Code of Honor. I let a
woman come between myself and my computer. So sue me, eh? I apologize for
the delays regarding work and the hard drive crash, but as far as that other
22% of wasted time goes I'd gladly waste it again given the chance to choose
my own ending. In fact, after I finish sending this to Wayne...heh, heh, heh!
...In any case, WWIVnews is back on track now. The next issue will definitely
be out February 25th as scheduled, and will probably be dedicated to all the
fallout that will surround the release of 4.22 - and probably 4.22a, depending
on how good the beta testers were this time around. The previously-scheduled
special issue on WWIV-compatible networking has been delayed for a couple of
issues to allow a couple of submissions to be rewritten to cover 4.22's
gatewaying features.
...If anyone would care to submit articles for WWIVnews regarding either of
these particular topics, or would like to contribute to WWIVnews in any way,
shape or form, feel free to contact me via E-Mail at WWIVnet 1@5282. The
WWIVnews Writer's Guide revision will be available shortly as well, and will
contain an updated suggested assignment listing. This was intended to be
included with the 4.22 basic package, but those pesky time constraints kept
the Guide from making Wayne's deadline.
...Finally, an aside nOTE to all the @1's of the various WWIV-based networks:
I'll be contacting each of you regarding a synopsis of what your respective
network is all about shortly. Please take the time to submit something about
your network, regardless of how private you wish your network to be. For
everyone to get a better global picture of what's happening to WWIV networking,
your cooperation will be extremely beneficial for the entire WWIV community of
sysops and users.
┌───────────────────────────────────────────────────────────────────────────┐
│ Closing Credits │
├───────────────────────────────────────────────────────────────────────────┤
│ WWIVnews is an independent newsletter NORMALLY published monthly as a │
│ service to the WWIV community of sysops and users. The opinions & reviews │
│ expressed herein are the expressed views of the respective writers, & do │
│ not necessarily reflect those of the WWIVnews staff. Reproduction in whole│
│ or in part is allowed provided credits are given. All rights reserved. │
├───────────────────────────────────────────────────────────────────────────┤
│ The source site for WWIVnews is the Klingon Empire BBS (512-459-1088), │
│ WWIVnet node @5282. Requests for information regarding articles and other │
│ editorial submissions, as well as back issue requests and the WWIVnews │
│ Writer's Guide, can be sent in e-mail to the WWIVnews editor, c/o 1@5282. │
├───────────────────────────────────────────────────────────────────────────┤
│ WWIV and WWIVnet, copyright 1986,1990 by Wayne Bell │
│ Any product or company mentioned or reviewed herein are copyrighted of │
│ their respective owners, creators, and other corporate pseudoentities. │
└───────────────────────────────────────────────────────────────────────────┘