home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / SYSOP / MODS1.ZIP / APOG008B.MOD < prev    next >
Text File  |  1995-06-11  |  4KB  |  135 lines

  1. Charlie La Guardia #1 @9053
  2. Mon Jun 05 22:28:03 1995
  3. ╓───────────────────────────────────────────────────────────────╖
  4. ║  MODname: APOG008B.MOD         Author: Charlie La Guardia     ║
  5. ║  Difficulty:▓▓▓▓░░░░░░                    1 @1    AstralNET   ║
  6. ║  Version: v4.24                           1 @3    LOCnet      ║
  7. ║  Description:                             1 @6    HOINet      ║
  8. ║  Puts the name of the network for the     1 @2302 Cyberia     ║
  9. ║  current sub at the main menu and message 1 @4100 IceNET      ║
  10. ║  read prompts.  Upgrade for v4.24.        1 @4100 TerraNET    ║
  11. ║                                           1 @4100 SierraLink  ║
  12. ║                                           1 @9053 WWIVnet     ║
  13. ╙───────────────────────────────────────────────────────────────╜
  14.  
  15. Key:
  16.  
  17. /*==*/    Existing Line
  18. /*++*/    Add This Line
  19. /*--*/    Comment Out This Line
  20. /*%%*/    Change This Line
  21.  
  22. Step (1) - Alrighty, first, back up your source.  If as a result of installing
  23. this mod, your computer goes crazy and kills 3008 baby centipedes in
  24. southeastern Phillipino, it's NOT my fault.
  25.  
  26. Step (2) - Open up BBSOVL1.C and install this function at the end of the file.
  27.  
  28. void netname(void)
  29. {
  30.   char *ss, s3[81];
  31.  
  32.   if (E_C) {
  33.     if (net_sysnum || (net_num_max>1)) {
  34.       if (xsubs[usub[cursub].subnum].num_nets) {
  35.         if (xsubs[usub[cursub].subnum].num_nets>1)
  36.           ss=get_string(1022);
  37.         else
  38. ss=stripcolors(net_networks[xsubs[usub[cursub].subnum].nets[0].net_num].name);
  39.       if (subboards[usub[cursub].subnum].anony & anony_val_net)
  40.         sprintf(s3,"7[1%s7]\r\n",ss);0
  41.       else
  42.         sprintf(s3,"7<1%s7>\r\n",ss);0
  43.     } else
  44.         sprintf(s3,"7[1Local7]\r\n");0
  45.   } else {
  46.       sprintf(s3,"7[1Local7]\r\n");0
  47.     }
  48. } else {
  49.     if (net_sysnum || (net_num_max>1)) {
  50.       if (xsubs[usub[cursub].subnum].num_nets) {
  51.         if (xsubs[usub[cursub].subnum].num_nets>1)
  52.           ss=get_string(1022);
  53.         else
  54. ss=stripcolors(net_networks[xsubs[usub[cursub].subnum].nets[0].net_num].name);
  55.       if (subboards[usub[cursub].subnum].anony & anony_val_net)
  56.         sprintf(s3,"[%s]\r\n",ss);
  57.       else
  58.         sprintf(s3,"<%s>\r\n",ss);
  59.     } else
  60.         sprintf(s3,"[Local]\r\n");
  61.   } else {
  62.       sprintf(s3,"[Local]\r\n");
  63.     }
  64.   }
  65.   prt(2,s3);
  66. }
  67.  
  68. Step (3) - Save BBSOVL1.C and open up MMENU.C.  Add this to mainmenu().
  69.  
  70. /*==*/    if (s2[0]==0)
  71. /*==*/      sprintf(s2,"[%s%s] [%s] :",
  72. /*==*/    useconf?get_string(1398):"",
  73. /*==*/    usub[cursub].keys,
  74. /*==*/    stripcolors(subboards[usub[cursub].subnum].name));
  75. /*==*/  }
  76. /*++*/  netname();  
  77. /*==*/  if (useconf) {
  78. /*==*/    ansic(2);
  79. /*==*/    pl(s1);
  80. /*==*/  }
  81. /*==*/#ifdef RIPDRIVE
  82.  
  83. Step (4) - Save MMENU.C and open up MSGBASE1.C.  Delete, add, and change the
  84. following lines as marked.
  85.  
  86. /*==*/ void scan(int msgnum, int optype, int *nextsub)
  87. /*==*/ {
  88. /*%%*/   char s[161],s1[81],s4[81],*b,*ss1;
  89. /*==*/
  90. /*==*/   char *fstr, ch, s2[81];
  91. /*==*/   int fnd, sdir=1, lmt;
  92.  
  93.  
  94. /*==*/    if (express) {
  95. /*==*/      s[0]=0;
  96. /*==*/      nln(2);
  97. /*==*/    } else {
  98. /*==*/      if (E_C) {
  99. /*--*/        sprintf(s1,"7[1%s7] [1%s7]",usub[cursub].keys,0
  100. /*--*/          subboards[usub[cursub].subnum].name);
  101. /*++*/        sprintf(s1,"7[1%s7]",usub[cursub].keys);0
  102. /*++*/        sprintf(s4,"7[1%s7]",subboards[usub[cursub].subnum].name);0
  103. /*==*/      } else {
  104. /*--*/        sprintf(s1,"[%s] [%s]",usub[cursub].keys,
  105. /*--*/          subboards[usub[cursub].subnum].name);
  106. /*++*/        sprintf(s1,"[%s]",usub[cursub].keys);
  107. /*++*/        sprintf(s4,"[%s]",subboards[usub[cursub].subnum].name);
  108. /*==*/      }
  109. /*%%*/      ansic(2); netname(); pl(s1);
  110. /*==*/      prt(2,s);
  111. /*==*/      helpl=16;
  112. /*==*/      input(s,5);
  113. /*==*/      resynch(cursub, &msgnum, NULL);
  114.  
  115. Step (5) - Save MSGBASE1.C and add void netname(void); to FCNS.H.
  116.  
  117. Step (6) - Recomplile and enjoy.
  118.  
  119.      If you use this mod, please send mail to one of the following addresses:
  120.  
  121.                             1 @1     AstralNET
  122.                             1 @3     LOCnet
  123.                             1 @6     HOINet
  124.                             1 @2302  Cyberia
  125.                             1 @4100  IceNET
  126.                             1 @4100  TerraNET
  127.                             1 @4100  SierraLink
  128.                             1 @9053  WWIVnet
  129.   
  130.                                 Thanks!
  131.  
  132.  
  133. 7President 2CHARLIE!0
  134. 7La Guardia0
  135.