home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / SYSOP / MODS1.ZIP / SPV-024.MOD < prev    next >
Text File  |  1993-12-11  |  5KB  |  112 lines

  1. Papa Bear #1 @5079
  2. 7Wednesday1, 7December 81, 71993 2 96:232 pm
  3. 0R: net33: @4056 (via @4061) [04:45 12/11/93]
  4. 0R: net33: @4050 (via @4064) [04:24 12/11/93]
  5. 0R: net33: @4064 (via @1040) [04:10 12/11/93]
  6. 0R: net33: @1040 (via @2050) [14:38 12/10/93]
  7. 0R: net34: @2050 [11:29 12/10/93]
  8. 0R: net34: @2050 (via @1040) [02:18 12/10/93]
  9. 0R: net33: @1040 (via @1114) [02:47 12/10/93]
  10. 0R: net33: @5079 [21:33 12/08/93]
  11. 4Msg. Status:3▄ 15Please reply!
  12. 3 ▀▀▀▀▀▀▀▀▀▀▀▀
  13.  
  14. ┌────────────────────────────────────────────────────────────────────────────┐
  15. │ Mod Name: SPV-024.MOD      Mod Authors: Pâpâ ßêâr (1@5079 WWIV/IceNET)     │
  16. │ Difficulty: ▓░░░░░░░░░     [00/00/00]             (1@5050 SEX/JAMDnet)     │
  17. │ WWIV Version: 4.23                                 (1@15061 WWIVlink)      │
  18. │ Files Affected: XFER.C                               (1@18 CARDNet)        │
  19. │ Description: Informs SysOp via SSM and SysOpLog if a user requests a file  │
  20. │that is N/A [offline].                                                      │
  21. ╞═────────────────────────────────────═╤═───────────────────────────────────═╡
  22. │ StarPort Valhalla [510]522-3583 ASV 14.4kbps  Home of the SPV mod series!  │
  23. ╘═────────────────────────────────────═╧═───────────────────────────────────═╛
  24.  Word of Warning:  You installed it, you're responsible! Make back-ups BEFORE
  25.  attempting to install this modification!  Read all text before beginning.
  26. -----------------------------------------------------------------------------
  27.  LEGEND:
  28.  ==  Original Code [use this to search on]
  29.  ++  Add this Line [mods ALWAYS add stuff, don't they?]
  30.  ... Skipping some code here [keeps the mod shorter]
  31. -----------------------------------------------------------------------------
  32.  LONG DESCRIPTION: Well, I have a lot of files off the hard drive, but still
  33. in WWIV's database of files.  These are the files that are marked "N/A".
  34.  So, with this mod, when a user tries to d/l, or tag, a "N/A" file, it will
  35. ask him if he wants to send a request to you.  If he says yes, you are
  36. notified via SSM and and entry in the SysOpLog.  Then you can put it online
  37. for him if you wish.
  38. -----------------------------------------------------------------------------
  39.  STEP 1: Add these two functions to the top of XFER.C:
  40.  
  41. void inform_sysop(char *file_name)
  42. {
  43.   char s[81];
  44.  
  45.   backline();
  46.   sprintf(s,"¡!¡ FILE REQ: %s - %s", thisuser.name, file_name);  // NOTE 1
  47.   ssm(1,0,s);
  48.   sysoplog(s);
  49.   npr("%s has been notified.  Press any key!",syscfg.sysopname);
  50.   getkey();
  51.   backline();
  52. }
  53.  
  54. void backline(void)
  55. {
  56.  int i;
  57.  
  58.  ansic(0);
  59.  outchr(32);
  60.   for(i=wherex(); i>0; i--)
  61.      backspace();
  62. }
  63.  
  64. NOTE 1: I use flashing colors and CTRL-G [bell] so that when I log on, it is
  65.         very obvious when a user requests a file.
  66.  
  67. NOTE:  The backline function will erase a line.  Really handy!
  68.  
  69.        You may want to add these to functions to FCNS.H.  Its your choice.
  70. -----------------------------------------------------------------------------
  71. STEP 2: Modify the function - int printfileinfo(uploadsrec *u, int dn) :
  72.  
  73. ==  sprintf(s,"%s%s",directories[dn].path,u->filename);
  74. ==  if (!exist(s)) {
  75. ++    nl();
  76. ++    pl("-> This file is currently offline. <-");
  77. ++    nl();
  78. ++    npr("Send OFFLINE FILE request to the SysOp? ");
  79. ++    if (yn()) {
  80. ++      backline();
  81. ++      inform_sysop(u->filename);
  82. ++    }
  83. ==    return(-1);
  84. ==  }
  85. -----------------------------------------------------------------------------
  86. STEP 3: Modify the function - void tag_it(void) :
  87.  
  88. ==            outstr(stripfn(filelist[i].u.filename));
  89. ==            pl(get_string(1333));
  90. ++            nl();
  91. ++            pl("-> This file is currently offline. <-");
  92. ++            nl();
  93. ++            npr("Send OFFLINE FILE request to the SysOp? ");
  94. ++            if (yn()) {
  95. ++              backline();
  96. ++              inform_sysop(filelist[i].u.filename);
  97. ++            }
  98. ==            bad=1;
  99. ==          } else {
  100. ==            fs=filelength(fp);
  101. -----------------------------------------------------------------------------
  102. STEP 4: Recompile!
  103. -----------------------------------------------------------------------------
  104.   AS always, E-Mail me if you use this...  Besides, I have a few more ideas
  105. floating around for 4.23!
  106.  
  107. 1-7=3*6>2Pâpâ ßêâr6<3*7=1-0
  108.  
  109. 83StarPort Valhalla ASV 510-522-3583════════════════────────────────────────────
  110. ---
  111. 1Psychoceramics: The study of crackpots.
  112.