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 >
Text File  |  1990-05-07  |  7KB  |  165 lines

  1. Snorkel #1 @3459
  2. Thu May 03 21:11:07 1990
  3. 5Reference : 1Mod needed.0
  4. 5Written by: 2Stinger #1 @31060
  5.  
  6. Here is the Tag mod, written by Doug Fields, that will add a tag to the end of
  7. any network post left on your system.  When I got it, it was very buggy.  It
  8. would tag local subbies that came after NET subbies, and would tag for some
  9. users and not for others.  I finally found the code problem.  Would you believe
  10. that it was caused because Doug left out 610 letter in two different lines?!?
  11. For clarity sake, I have indicated those pieces that I added, by coloring them
  12. 2YELLOW0 (^P2), that now have this mod working 1100%0 in version 4.11.
  13.  
  14. It is also worth mentioning that if you have a net subbie that you DON'T wish 
  15. to tag, but you want a TAG-GEN.MSG, simply create a 40 byte0 file called 
  16. 3TAGnnnn.MSG0, where 3nnnn0 is the sub-type of the net subbie you do not wish to 
  17. tag.
  18.  
  19. BTW, my usual tag is at the end, but the tag mod did not add it as I posted 
  20. this message using the //LOAD command, and the Tag mod will not add to 
  21. messages that are posted with //LOAD.  
  22.  
  23. 1    °0
  24. 1  °0
  25. 1  °0
  26. 1°0 
  27. 4Snorkel 1@34590
  28.  
  29. 4===============================================================================0
  30.  
  31. 57/58: TAG MOD FILE VERSION, by DOUG FIELDS, 1@2300, 203-661-2967
  32. Name: Doug Fields (701) (Admiral Fields) #1 @2300
  33. Orgin: The Galactic Headquarters @ 203-324-8960
  34. Date: Fri Mar 03 22:02:11 1989
  35.  
  36.                               TAG MOD FILE
  37.                              by DOUG FIELDS
  38.                    SYSOP of THE GALACTIC HEADQUARTERS
  39.                                  1@2300
  40.                                  3/3/89
  41.                             203-324-8960 data
  42.                             203-661-2967 voice
  43.                           WRITTEN FOR WWIV 4.07
  44.  
  45.                               INTRODUCTION
  46.  
  47. Hello. I am writing this in the Turbo C editor, so don't mind the fact
  48. that the margins, etc., are pretty bad. Anyway, this is the first mod
  49. that I have written a mod sheet for in a long while... A few credits.
  50. I'd just like to say that this is a response to the common TAG MOD
  51. by a dude named, appropriately, The Other Wayne, aka The Bergermeister,
  52. of the Rappanock Vaporboard (yes it is very vaporous). Anyway, this will
  53. instead of putting a small two line message at the end of every net post,
  54. it will put a whole file at the end of the post. What's more, which file
  55. is appended is dependent upon the subtype. You will need to keep a number
  56. of files in your DATA directory, each bearing the name TAGxxxxx.MSG,
  57. where the xxxxx is the subtype of the linked sub. If the file does not
  58. exist, then it will try to print a file TAG-GEN.MSG for a general tag. If
  59. this in turn does not exist, then it does not try to add a tag. So, for
  60. example, I could put a
  61.  
  62. --==*==--
  63. ,  |||  ,             (This is supposed to be an Enterprise...)
  64. ---------
  65.  
  66. in a file TAG1701.MSG and a
  67.  
  68. WWIVNET ORIGIN> The GHQ, 203-324-8960
  69. HOSTING> THE WWIV 4.xx TECHNICAL HELP LINKED SUB
  70.  
  71. in a file TAG-GEN.MSG and when someone posts a message on Wayne's ST board,
  72. it will end in an enterprise, and if they post elsewhere, the other file
  73. will be appended. The files can be of unlimited length, but only the number
  74. of lines up to that user's maximum number of lines will be appended. It is
  75. very easy to implement.
  76.      I did this because I hate the tag mod so I wanted a mod that would
  77. write hundreds of lines to the end of a message, and something actually
  78. useful turned out because of it. I hope everyone likes it. If you do
  79. use it, please just drop me a line at 1@2300, or give me a ring.
  80.      These files can be edited with the usual FSED or //EDIT commands.
  81. This can be done remotely and/or locally. Just remember, please! I never
  82. liked the tag mod because it adds 160 bytes to the end of a message (at the
  83. most), which costs money to send out to my connection at CA (or for that
  84. matter, recieve). Please don't go overboard. If you want to do it on
  85. one sub (your favorite or something) go ahead, but don't make a TAG-GEN.MSG
  86. file with 20 lines! And we thank you for your support /* 1 */.
  87.     Another note: This will NOT add the tag to a //LOADed, //UPLOADed,
  88. or FSEDed file, but neither will the regular one (I think). I'm going
  89. to try to fix this deficiency.
  90.  
  91. /* 1 */ = direct quote from Ed Bartles (the TV one).
  92.  
  93.                                    FIRST
  94.  
  95. Add the following lines to inmsg() in msgbase.c:
  96.  
  97. ==  long ll,l1;                                         KEY
  98. ==  char *lin, *b;                               == Original Line
  99. ++  char s8[181];                                ++ New line
  100. ++  FILE *nettagfile;                            =+ modified line
  101. ==                                               -- Deleted line
  102. ==  if ((fsed!=0) && (!okfsed()))
  103. ==    fsed=0;
  104.  
  105.                                    SECOND
  106.  
  107. Add the following lines to the same function, lower down:
  108.  
  109. ==    if (curli==0)
  110. ==      save=0;
  111. ++    if ((subboards[cur2l0sub].type) && (aux!="EMAIL") && 2(syscfg.systemnumber)0)   /* 1 */
  112. ++      {
  113. ++      sprintf(s8, "%sTAG%u.MSG", syscfg.datadir,subboards[cur2l0sub].type);
  114. ++      if ((nettagfile = fopen(s8, "rt")) == NULL)
  115. ++        {
  116. ++        sprintf(s8, "%sTAG-GEN.MSG", syscfg.datadir);
  117. ++        nettagfile = fopen(s8, "rt");
  118. ++        }
  119. ++      if (nettagfile != NULL)
  120. ++        {
  121. ++        curli++;
  122. ++        while (!feof(nettagfile) && (curli < maxli))
  123. ++          {
  124. ++          fgets(s8, 180, nettagfile);
  125. ++          if (!feof(nettagfile)) strcpy(&(lin[(curli++)*LEN]), s8); /* 1 */
  126. ++          }
  127. ++        fclose(nettagfile);
  128. ++        }
  129. ++      }
  130. ==  } else {
  131. ==    if (fsed==1) {
  132. ==     save=external_edit("INPUT.MSG",syscfg.tempdir,(int) 
  133. (thisuser.defed)-1,maxli);
  134.  
  135. I must admit that the lines marked /* 1 */ were copied directly out of
  136. Wayne's mod.
  137.  
  138.                                   THIRD
  139.  
  140. Now, all you have to do is save the file and recompile the BBS.
  141.  
  142.                                   NOTES
  143.  
  144. If you have any problems, contact me at 1@2300, on my board, or by voice.
  145. Voice is your best bet for getting the best in tech help. I did this in
  146. about 15 minutes, so it might be a little buggy...
  147.  
  148. I host the WWIVNet/WWIV 4.xx Technical Help Linked Sub, type 2300, if
  149. anyone would like to join.
  150.  
  151. If anyone needs help on (almost) any aspect of WWIV, feel free to give
  152. me a ring, before 11 PM EST please.
  153.  
  154. I'm not asking for any donations, etc., but they are always welcome.
  155.  
  156. Doug Fields
  157. 100 Midwood Road
  158. Greenwich, CT 06830-3837
  159. (203) 661-2967 voic
  160.  
  161. 4===============================================================================0
  162.  
  163.  
  164.   WWIVNet Origin: The M&M Factory   Node 3459   St. Louis, MO   (314)842-4983
  165.            >>      Host of The Scuba Forum     Sub-Type 3459      <<