home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
WWIVMODS
/
PRE412.ZIP
/
TAGPOST.MOD
< prev
next >
Wrap
Text File
|
1990-05-07
|
7KB
|
165 lines
Snorkel #1 @3459
Thu May 03 21:11:07 1990
5Reference : 1Mod needed.0
5Written by: 2Stinger #1 @31060
Here is the Tag mod, written by Doug Fields, that will add a tag to the end of
any network post left on your system. When I got it, it was very buggy. It
would tag local subbies that came after NET subbies, and would tag for some
users and not for others. I finally found the code problem. Would you believe
that it was caused because Doug left out 610 letter in two different lines?!?
For clarity sake, I have indicated those pieces that I added, by coloring them
2YELLOW0 (^P2), that now have this mod working 1100%0 in version 4.11.
It is also worth mentioning that if you have a net subbie that you DON'T wish
to tag, but you want a TAG-GEN.MSG, simply create a 40 byte0 file called
3TAGnnnn.MSG0, where 3nnnn0 is the sub-type of the net subbie you do not wish to
tag.
BTW, my usual tag is at the end, but the tag mod did not add it as I posted
this message using the //LOAD command, and the Tag mod will not add to
messages that are posted with //LOAD.
1 °0
1 °0
1 °0
1°0
4Snorkel 1@34590
4===============================================================================0
57/58: TAG MOD FILE VERSION, by DOUG FIELDS, 1@2300, 203-661-2967
Name: Doug Fields (701) (Admiral Fields) #1 @2300
Orgin: The Galactic Headquarters @ 203-324-8960
Date: Fri Mar 03 22:02:11 1989
TAG MOD FILE
by DOUG FIELDS
SYSOP of THE GALACTIC HEADQUARTERS
1@2300
3/3/89
203-324-8960 data
203-661-2967 voice
WRITTEN FOR WWIV 4.07
INTRODUCTION
Hello. I am writing this in the Turbo C editor, so don't mind the fact
that the margins, etc., are pretty bad. Anyway, this is the first mod
that I have written a mod sheet for in a long while... A few credits.
I'd just like to say that this is a response to the common TAG MOD
by a dude named, appropriately, The Other Wayne, aka The Bergermeister,
of the Rappanock Vaporboard (yes it is very vaporous). Anyway, this will
instead of putting a small two line message at the end of every net post,
it will put a whole file at the end of the post. What's more, which file
is appended is dependent upon the subtype. You will need to keep a number
of files in your DATA directory, each bearing the name TAGxxxxx.MSG,
where the xxxxx is the subtype of the linked sub. If the file does not
exist, then it will try to print a file TAG-GEN.MSG for a general tag. If
this in turn does not exist, then it does not try to add a tag. So, for
example, I could put a
--==*==--
, ||| , (This is supposed to be an Enterprise...)
---------
in a file TAG1701.MSG and a
WWIVNET ORIGIN> The GHQ, 203-324-8960
HOSTING> THE WWIV 4.xx TECHNICAL HELP LINKED SUB
in a file TAG-GEN.MSG and when someone posts a message on Wayne's ST board,
it will end in an enterprise, and if they post elsewhere, the other file
will be appended. The files can be of unlimited length, but only the number
of lines up to that user's maximum number of lines will be appended. It is
very easy to implement.
I did this because I hate the tag mod so I wanted a mod that would
write hundreds of lines to the end of a message, and something actually
useful turned out because of it. I hope everyone likes it. If you do
use it, please just drop me a line at 1@2300, or give me a ring.
These files can be edited with the usual FSED or //EDIT commands.
This can be done remotely and/or locally. Just remember, please! I never
liked the tag mod because it adds 160 bytes to the end of a message (at the
most), which costs money to send out to my connection at CA (or for that
matter, recieve). Please don't go overboard. If you want to do it on
one sub (your favorite or something) go ahead, but don't make a TAG-GEN.MSG
file with 20 lines! And we thank you for your support /* 1 */.
Another note: This will NOT add the tag to a //LOADed, //UPLOADed,
or FSEDed file, but neither will the regular one (I think). I'm going
to try to fix this deficiency.
/* 1 */ = direct quote from Ed Bartles (the TV one).
FIRST
Add the following lines to inmsg() in msgbase.c:
== long ll,l1; KEY
== char *lin, *b; == Original Line
++ char s8[181]; ++ New line
++ FILE *nettagfile; =+ modified line
== -- Deleted line
== if ((fsed!=0) && (!okfsed()))
== fsed=0;
SECOND
Add the following lines to the same function, lower down:
== if (curli==0)
== save=0;
++ if ((subboards[cur2l0sub].type) && (aux!="EMAIL") && 2(syscfg.systemnumber)0) /* 1 */
++ {
++ sprintf(s8, "%sTAG%u.MSG", syscfg.datadir,subboards[cur2l0sub].type);
++ if ((nettagfile = fopen(s8, "rt")) == NULL)
++ {
++ sprintf(s8, "%sTAG-GEN.MSG", syscfg.datadir);
++ nettagfile = fopen(s8, "rt");
++ }
++ if (nettagfile != NULL)
++ {
++ curli++;
++ while (!feof(nettagfile) && (curli < maxli))
++ {
++ fgets(s8, 180, nettagfile);
++ if (!feof(nettagfile)) strcpy(&(lin[(curli++)*LEN]), s8); /* 1 */
++ }
++ fclose(nettagfile);
++ }
++ }
== } else {
== if (fsed==1) {
== save=external_edit("INPUT.MSG",syscfg.tempdir,(int)
(thisuser.defed)-1,maxli);
I must admit that the lines marked /* 1 */ were copied directly out of
Wayne's mod.
THIRD
Now, all you have to do is save the file and recompile the BBS.
NOTES
If you have any problems, contact me at 1@2300, on my board, or by voice.
Voice is your best bet for getting the best in tech help. I did this in
about 15 minutes, so it might be a little buggy...
I host the WWIVNet/WWIV 4.xx Technical Help Linked Sub, type 2300, if
anyone would like to join.
If anyone needs help on (almost) any aspect of WWIV, feel free to give
me a ring, before 11 PM EST please.
I'm not asking for any donations, etc., but they are always welcome.
Doug Fields
100 Midwood Road
Greenwich, CT 06830-3837
(203) 661-2967 voic
4===============================================================================0
WWIVNet Origin:
The M&M Factory
Node 3459
St. Louis, MO
(314)842-4983
>>
Host of
The Scuba Forum
Sub-Type 3459
<<