home *** CD-ROM | disk | FTP | other *** search
/ The Arcade BBS / arcadebbs.zip / arcadebbs / bbstools / MODS / ALLMODS.ZIP / REX04.ZIP / REX04.MOD < prev   
Encoding:
Text File  |  1995-06-17  |  5.9 KB  |  167 lines

  1. ``1Rex`` IceNET #1 AT 5441
  2. Fri Jun 02 18:02:11 1995
  3. 6NOTE NOTE NOTE :  7The COLORS in this mod will be messed up when posted.  For0
  4. 7this reason, please log this mod to a capture file to regain the needed ^P^C0
  5. 7codes.  Thanks.  Now the mod...0
  6.  
  7. ┌────────────────────────────────────────────────────────────────────────────┐
  8. │ Mod Name: REX04.MOD               Date: 6/02/95                            │
  9. │ Difficulty:  ███▒▒▒▒▒▒▒▒          Mod Author : Rex Icenet @5441            │
  10. │ WWIV Version: v4.23/4.24                           Terranet @5407          │
  11. │ Files Affected: LILO.C                             ROTISH   @1             │
  12. │ Description: Enhance last caller display.  User note support included.     │
  13. │ Requirements : You MUST have a user note mod installed.  There are a bunch.│
  14. └────────────────────────────────────────────────────────────────────────────┘ 
  15.  
  16.  
  17. It'll look SORT OF like this:
  18.  
  19. C ┌──────────────────────────────────────────┐           
  20. C │      Last few callers & comments...      │        
  21. C └──────────────────────────────────────────┘                   
  22.  
  23. ?7hDC┌──────────────────────────────────────────────────────
  24. ────────────┐
  25.   │  Call #  Handle                    Comment                       
  26.   ├────────┬─────────────────────────┬───────────────────────────────┤
  27.   │ 2891   │ Cliff #103C│ No comment...C
  28.   │ 2892   │ Cheller #66C│C│
  29.   │ 2893   │ Romance #83C│C│
  30.   │ 2894   │ Shadow #7C│ I have nothing to say.C
  31.   │ 2895   │ Shadow #7C│ I have nothing to say.C
  32.   └────────┴─────────────────────────┴───────────────────────────────┘
  33.  
  34.  
  35.  
  36. Disclaimer : Not my fault.  Works great for me.
  37.  
  38.  
  39. Key :    + add this line
  40.          - comment out this line
  41.          & change this line
  42.          = existing line
  43.  
  44.  
  45. Step One : Back up your source code.
  46.  
  47. 7DON'T LET THE WORD WRAP GET YA!0
  48.  
  49. Step Two : Open up LILO.C and search for "void logon".
  50.  
  51. Step Three : Make the indicated changes/additions in the source.
  52.  
  53. =  if (ss!=NULL) {
  54. =    if (!cs())
  55. =      for (i=0; i<4; i++)
  56. =        copy_line(s1,ss,&pos,len);
  57. =    i=1;
  58. =    do {
  59. =      copy_line(s1,ss,&pos,len);
  60. =      if ((s1[0]) && live_user) {
  61. =        if (i) {
  62. =          nln(2);
  63. +    if (thisuser.sysstatus & sysstatus_ansi)       
  64. +    {                                              
  65. +    {                                              
  66. +    nl();                                           
  67. +    pl("C ┌──────────────────────────────────────────┐ "
  68. );               
  69. +    pl("C │      Last few callers & comments...      │ 
  70. ");              
  71. +    pl("C └──────────────────────────────────────────┘ ");        
  72.                  
  73. +    }                 
  74. +    }                 
  75. +    else {              
  76. =          pl(get_string(362)); }
  77. =          nl();
  78. +       pl("7┌──────────────────────────────────────────────────────────────────0
  79. ───────┐");
  80. -       pl(get_string(972));
  81. +       pl("7│4  Call #   Handle                    Comment                      0
  82.        7│");0
  83. +       pl("7├────────┬────────────────────────────┬────────────────────────────0
  84. ───────┤");
  85. -        nl();     
  86. =          ansic(7);
  87. -          i=(okansi())?205:'=';   
  88. -          pl(charstr(79,i));   
  89. =           i=0;
  90. =        }
  91. =        pl(s1);
  92. =      }
  93. =    } while (pos<len);
  94. +       pl("7└────────┴────────────────────────────┴────────────────────────────0
  95. ───────┘");  
  96. =  }
  97. =  if ((actsl!=255) || (incom)) {
  98. =    sl1(0,"");
  99. =    sl1(0,stripcolors(s));
  100. =    sl1(1,"");
  101. -    sprintf(s,"1%-6ld %-25.25s %-10.10s %-5.5s %-5.5s %-20.20s %2d\r\n",0
  102. +     sprintf(s,"7│  1%-6ld7│  9%-25.25s 7│ 3%-34s7│ \r\n",  0
  103. =      status.callernum1,
  104. =      nam(&thisuser,usernum),
  105. -      cur_lang_name,     
  106. -      times(), 
  107. -      date(),   
  108. -      curspeed, 
  109. -      thisuser.ontoday);       
  110. +      thisuser.note);   
  111. =    sprintf(s1,"%sUSER.LOG",syscfg.gfilesdir);
  112. =    f=sh_open(s1,O_RDWR | O_BINARY | O_CREAT, S_IREAD | S_IWRITE);
  113. =    sh_lseek(f,0L,SEEK_END);
  114.  
  115. Save LILO.C
  116.  
  117. Step Four : This gets a little more complicated.  Open up DEFAULTS.C and look
  118. for "inli(thisuser.note,ro,40,1);" or something similar to this.  What you
  119. need to do is edit the line(s) to allow the user note to be a maximum of only
  120. 30 characters.  The line shown above indicates that the input for the user
  121. note can be 40 characters.  Change the 40 to 30.  Since there are variations
  122. of user note mods, this may be different.  Figure it out.  You're a pretty
  123. smart sysop, right?
  124.  
  125. Step Five :  This is *ONLY* if you have the French Mod Division defaults
  126.              (FMD-28.MOD) installed.  Still in DEFAULTS.C, go to :
  127.  
  128.     case 23:
  129.       print_def(7);
  130.       goxy(36,16);
  131.       mpl(40);
  132.       inputl(thisuser.note,40);
  133.       goxy(36,16);
  134.       ansic(0);
  135.       pl(charstr(40, ' '));
  136.     break;
  137.   }
  138.  
  139. And change it like this :
  140.  
  141. =   case 23:
  142. =     print_def(7);
  143. =     goxy(36,16);
  144. &     mpl(30);
  145. &     inputc(thisuser.note,30);
  146. =     goxy(36,16);
  147. =     ansic(0);
  148. &     pl(charstr(30, ' '));
  149. =   break;
  150. = }
  151.  
  152. Step Six : Recompile and you are done.  You can easily modify the colors,
  153.            as you can probably see.  Also, thanks (to Jamaica Joe) for his
  154.            BEACH???.MOD, which I tried to use, but it didn't work.  Anyway,
  155.            the nice little ansi box that says "Last callers & comments" was
  156.            derived from his mod.  The rest of the code is mine.  Thanks.
  157.  
  158. "And that's all I have to say about that."
  159.  
  160. If you need any help, please feel free to email me at one of the addresses in
  161. the header, or call The Carnival BBS at (504)834-1738.
  162.  
  163. If you use this mod, please email me.  Thanks, and enjoy.
  164.