home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 12 / CD_ASCQ_12_0294.iso / vrac / 5mods_3.zip / MSGMENU.MOD < prev   
Text File  |  1994-01-24  |  9KB  |  314 lines

  1. ┌────────────────────────────────────────────────────────────────────────────┐
  2. │ Mod Name:        MSGMENU.MOD            Mod Author:    MidiMan #1@850      │
  3. │ Difficulty:      ███┼┼┼┼                Date:          12-07-1993          │
  4. │ WWIV Version:    4.23                                                      │
  5. │ Description:     Seperates all your email/message commands in its own menu │ 
  6. │                  this is good for ripmod (less icons per menu)             │
  7. └────────────────────────────────────────────────────────────────────────────┘
  8.             ++ ADD   -- DELETE  =+ MODIFY  == EXISTING LINE
  9.  
  10. Load MULTINST.C    
  11. Look for void make_inst_str()
  12.     
  13. ==    case INST_LOC_WFC:
  14. ==      sprintf(s1,"%-25.25s",get_string(1402));
  15. ==      break;
  16. ++    case INST_LOC_MSGMENU:
  17. ++      sprintf(s1,"Message Base");
  18. ++      break;
  19. ==    default:
  20. ==      sprintf(s1,"%-25.25s",get_string(1403));
  21. ==      break;
  22.  
  23. Save & then Load vardec.h and look for and change:
  24.  
  25. ==  #define INST_LOC_NETLIST      45
  26. ++  #define INST_LOC_MSGMENU      46
  27. ==  #define INST_LOC_WFC       65535
  28.  
  29.  
  30. Save & then Load BBS.C and look for and change the following:
  31.  
  32. == main_menu_label:
  33. ==      setiia(90);
  34. ==      set_net_num(0);
  35. ==      while (!hangup) {
  36. ==        switch(curdloads) {
  37. ++          case 3:
  38. ++          write_inst(INST_LOC_MSGMENU,usub[cursub].subnum,INST_FLAGS_ONLINE);
  39. ++          msgmenu();
  40. ++            break;
  41. ==          case 2:
  42. ==            write_inst(INST_LOC_CHAINS,0,INST_FLAGS_ONLINE);
  43. ==            do_chains();
  44. ==          break;
  45.  
  46.  
  47. Blcok copy the following at the bottom of misccmd.c
  48.  
  49.  
  50. void msgmenu(void)
  51. {
  52.   char *s, s1[81], s2[81], ch;
  53.   int i, useconf, ac;
  54.   long l;
  55.  
  56.   s2[0]=0;
  57.   if (usub[cursub].subnum==-1) {
  58.     cursub=0;
  59.     if (usub[cursub].subnum==-1) {
  60.       strcpy(s2,get_string(16));
  61.     }
  62.   }
  63.  
  64.   write_inst(INST_LOC_MSGMENU,usub[cursub].subnum,INST_FLAGS_ONLINE);
  65.  
  66.   tleft(1);
  67.   if ((sysstatus_expert & thisuser.sysstatus)==0) {
  68.       /*   if (!mm) {            uncomment if using ripmod */ 
  69.          printmenu(20);
  70.       /*   lines_listed=0;       uncomment if using ripmod */ 
  71.       /*   } else                uncomment if using ripmod */ 
  72.       /*   mm=0;                 uncomment if using ripmod */ 
  73.       }
  74.  
  75.   nl();
  76.   nl();
  77.   tleft(1);
  78.  
  79.   useconf=((subconfnum>1) && okconf(&thisuser));
  80.  
  81. #ifdef OPT_EXTRA_COLOR
  82.   /* if (!rip)          uncomment if using ripmod */ 
  83.   npr("T - %s\r\n",ctim(nsl()));
  84.   sprintf(s1,"[Conf %c] [%s]",subconfs[uconfsub[curconfsub].confnum].designator
  85. ,
  86.     stripcolors(subconfs[uconfsub[curconfsub].confnum].name));
  87.   if (s2[0]==0)
  88.     sprintf(s2,"[%s%s] [%s] : ",
  89.       useconf?get_string(1398):"",
  90.       usub[cursub].keys,
  91.       stripcolors(subboards[usub[cursub].subnum].name));
  92. #else
  93.   /* if (!rip)          uncomment if using ripmod */ 
  94.   npr("T - %s\r\n",ctim(nsl()));
  95.   sprintf(s1,"[Conf %c] [%s]",subconfs[uconfsub[curconfsub].confnum].designator
  96. ,
  97.     stripcolors(subconfs[uconfsub[curconfsub].confnum].name));
  98.   if (s2[0]==0)
  99.     sprintf(s2,"[%s%s] [%s] :",
  100.       useconf?get_string(1398):"",
  101.       usub[cursub].keys,
  102.       stripcolors(subboards[usub[cursub].subnum].name));
  103. #endif
  104.  
  105.   if (useconf) {
  106.     ansic(2);
  107.     pl(s1);
  108.   }
  109.   prt(2,s2);
  110.   helpl=1;
  111.   s=mmkey(0);
  112.   helpl=0;
  113.   if (s[0])
  114.     for (i=0; (i<num_subs) && (usub[i].subnum!=-1); i++)
  115.       if (strcmp(usub[i].keys,s)==0)
  116.         cursub=i;
  117.   if (strcmp(s,"WHO")==0) {
  118.     multi_instance();
  119.   }
  120.   
  121.   /* single-key commands here */
  122.   if ((s[1]==0) && (s[0]!=0)) {
  123.     switch(s[0]) {
  124.       case '}':
  125.         if (okconf(&thisuser)) {
  126.           if ((curconfsub<subconfnum-1) && (uconfsub[curconfsub+1].confnum>=0))
  127.             ++curconfsub;
  128.           else
  129.             curconfsub=0;
  130.           setuconf(CONF_SUBS, curconfsub, -1);
  131.         }
  132.         /* mm=1;   uncommment if using ripmod */
  133.         break;
  134.       case '>':
  135.       case '+':
  136.       case ']':
  137.         if ((cursub<num_subs-1) && (usub[cursub+1].subnum>=0))
  138.           ++cursub;
  139.         else
  140.           cursub=0;
  141.         /* mm=1;     uncomment if using ripmod */
  142.         break;
  143.      case '{':
  144.         if (okconf(&thisuser)) {
  145.           if (curconfsub>0)
  146.             --curconfsub;
  147.           else {
  148.             while ((uconfsub[curconfsub+1].confnum>=0) && (curconfsub<subconfnu
  149. m-1))
  150.               ++curconfsub;
  151.           }
  152.           setuconf(CONF_SUBS, curconfsub, -1);
  153.         }
  154.         /* mm=1;   uncommment if using ripmod */
  155.         break;
  156.       case '<':
  157.       case '-':
  158.       case '[':
  159.         if (cursub>0)
  160.           --cursub;
  161.         else {
  162.           while ((usub[cursub+1].subnum>=0) && (cursub<num_subs-1))
  163.             ++cursub;
  164.         }
  165.         /* mm=1;   uncommment if using ripmod */
  166.         break;
  167.       case '#':
  168.         nl();
  169.         pl(get_string(939));
  170.         nl();
  171.       case '*': 
  172.         /* ripwindow();      uncomment if using ripmod */   
  173.         sublist();
  174.         break;
  175.       case '~': 
  176.        /* ripbig();          uncomment if using ripmod */ 
  177.        list_users(1);
  178.        break;
  179.       case 'C':
  180.         helpl=3;
  181.         reqchat();
  182.         break;
  183.       case 'E':
  184.         /* ripbig();         uncomment if using ripmod */ 
  185.         send_email();
  186.         break;
  187.       case 'F':
  188.         write_inst(INST_LOC_FEEDBACK,0,INST_FLAGS_ONLINE);
  189.         feedback(0);
  190.         break;
  191.       case 'H':
  192.         hop_sub();
  193.         break;
  194.       case 'J':
  195.         /* ripbig();          uncomment if using ripmod */ 
  196.         if (okconf(&thisuser))
  197.           jump_conf(CONF_SUBS);
  198.         break;
  199.       case 'K':
  200.         /* ripbig();          uncomment if using ripmod */ 
  201.         helpl=8;
  202.         write_inst(INST_LOC_KILLEMAIL,0,INST_FLAGS_ONLINE);
  203.         kill_old_email();
  204.         break;
  205.       case 'M':
  206.         /* ripbig();          uncomment if using ripmod */ 
  207.         readmail();
  208.         break;
  209.       case 'N':
  210.         write_inst(INST_LOC_SUBS,65535,INST_FLAGS_ONLINE);
  211.         express=0;
  212.         expressabort=0;
  213.         nscan(0);
  214.         break;
  215.       case 'O':
  216.         /* ripoff();            uncomment if using ripmod */ 
  217.         /* if (!rip) {          uncomment if using ripmod */ 
  218.         nl();
  219.         nl();
  220.         prt(5,get_string(28));
  221.         helpl=12;
  222.         if (yn()) {
  223.           write_inst(INST_LOC_LOGOFF,0,INST_FLAGS_ONLINE);
  224.           outchr(12);
  225.           outstr(get_string(29));
  226.           pl(ctim(timer()-timeon));
  227.           existprint(get_string(1036));
  228.           hangup=1;
  229.         }
  230.  /* }                           uncomment if using ripmod */ 
  231.         break;
  232.       case 'P':
  233.         /* ripbig();            uncomment if using ripmod */ 
  234.         irt[0]=0;
  235.         irt_name[0]=0;
  236.         grab_quotes(NULL, NULL);
  237.         if (usub[0].subnum!=-1)
  238.           post();
  239.         break;
  240.       case 'Z':
  241.         /* ripbig();            uncomment if using ripmod */ 
  242.         write_inst(INST_LOC_SUBS,usub[cursub].subnum,INST_FLAGS_ONLINE);
  243.         i=0;
  244.         express=0;
  245.         expressabort=0;
  246.         qscan(cursub,&i);
  247.         break;
  248.       case 'R':
  249.         /* ripphaser();               uncomment if using ripmod */ 
  250.         /* ripwindow();               uncomment if using ripmod */ 
  251.         write_inst(INST_LOC_SUBS,usub[cursub].subnum,INST_FLAGS_ONLINE);
  252.         helpl=15;
  253.         remove_post();
  254.         break;
  255.       case 'S':
  256.         /* ripbig();                  uncomment if using ripmod */ 
  257.         write_inst(INST_LOC_SUBS,usub[cursub].subnum,INST_FLAGS_ONLINE);
  258.         express=0;
  259.         expressabort=0;
  260.         scan2();
  261.         break;
  262.       case 'T':
  263.         if (syscfg.sysconfig & sysconfig_no_xfer) {
  264.           nl();
  265.           pl(get_string(30));
  266.           nl();
  267.           break;
  268.         
  269.         }
  270.         if ((udir[0].subnum==-1) && (okconf(&thisuser))) {
  271.           for (curconfdir=0;
  272.                (curconfdir<dirconfnum) &&
  273.                (uconfdir[curconfdir].confnum!=-1);
  274.                curconfdir++) {
  275.             setuconf(CONF_DIRS, curconfdir, -1);
  276.             if (udir[0].subnum!=-1)
  277.               break;
  278.           }
  279.         }
  280.         if (udir[0].subnum!=-1) {
  281.           write_inst(INST_LOC_XFER,udir[curdir].subnum,INST_FLAGS_ONLINE);
  282.           curdloads=1;
  283.           existprint(get_string(1037));
  284.         } else {
  285.           nl();
  286.           pl(get_string(31));
  287.           nl();
  288.         }
  289.         break;
  290.        case 'Q':
  291.        curdloads=0;
  292.        break;
  293.        case '?':
  294.        printmenu(20);
  295.        break;
  296.        }
  297.   }
  298.   helpl=0;
  299. }
  300.  
  301. =*=*=*=*=*=*=*=*=*=*=*= END BLOCK COPY
  302.  
  303. go into bbs.c and delete all the message/mail commands from your void
  304. main menu.
  305.  
  306. next, make a menu and label it MENU20.ANS MENU20.MSG MENU29.RIP
  307.  
  308. compile and run!
  309.  
  310. #1@850 Midiman
  311.  
  312.  
  313.  
  314.