home *** CD-ROM | disk | FTP | other *** search
- ``1Rex`` IceNET #1 AT 5441
- Fri Jun 02 18:02:11 1995
- 6NOTE NOTE NOTE : 7The COLORS in this mod will be messed up when posted. For0
- 7this reason, please log this mod to a capture file to regain the needed ^P^C0
- 7codes. Thanks. Now the mod...0
-
- ┌────────────────────────────────────────────────────────────────────────────┐
- │ Mod Name: REX04.MOD Date: 6/02/95 │
- │ Difficulty: ███▒▒▒▒▒▒▒▒ Mod Author : Rex Icenet @5441 │
- │ WWIV Version: v4.23/4.24 Terranet @5407 │
- │ Files Affected: LILO.C ROTISH @1 │
- │ Description: Enhance last caller display. User note support included. │
- │ Requirements : You MUST have a user note mod installed. There are a bunch.│
- └────────────────────────────────────────────────────────────────────────────┘
-
-
- It'll look SORT OF like this:
-
- C ┌──────────────────────────────────────────┐
- C │ Last few callers & comments... │
- C └──────────────────────────────────────────┘
-
- ?7hDC┌──────────────────────────────────────────────────────
- ────────────┐
- │ Call # Handle Comment
- │
- ├────────┬─────────────────────────┬───────────────────────────────┤
- │ 2891 │ Cliff #103C│ No comment...C│
- │ 2892 │ Cheller #66C│C│
- │ 2893 │ Romance #83C│C│
- │ 2894 │ Shadow #7C│ I have nothing to say.C
- │
- │ 2895 │ Shadow #7C│ I have nothing to say.C
- │
- └────────┴─────────────────────────┴───────────────────────────────┘
-
-
-
- Disclaimer : Not my fault. Works great for me.
-
-
- Key : + add this line
- - comment out this line
- & change this line
- = existing line
-
-
- Step One : Back up your source code.
-
- 7DON'T LET THE WORD WRAP GET YA!0
-
- Step Two : Open up LILO.C and search for "void logon".
-
- Step Three : Make the indicated changes/additions in the source.
-
- = if (ss!=NULL) {
- = if (!cs())
- = for (i=0; i<4; i++)
- = copy_line(s1,ss,&pos,len);
- = i=1;
- = do {
- = copy_line(s1,ss,&pos,len);
- = if ((s1[0]) && live_user) {
- = if (i) {
- = nln(2);
- + if (thisuser.sysstatus & sysstatus_ansi)
- + {
- + {
- + nl();
- + pl("C ┌──────────────────────────────────────────┐ "
- );
- + pl("C │ Last few callers & comments... │
- ");
- + pl("C └──────────────────────────────────────────┘ ");
-
- + }
- + }
- + else {
- = pl(get_string(362)); }
- = nl();
- + pl("7┌──────────────────────────────────────────────────────────────────0
- ───────┐");
- - pl(get_string(972));
- + pl("7│4 Call # Handle Comment 0
- 7│");0
- + pl("7├────────┬────────────────────────────┬────────────────────────────0
- ───────┤");
- - nl();
- = ansic(7);
- - i=(okansi())?205:'=';
- - pl(charstr(79,i));
- = i=0;
- = }
- = pl(s1);
- = }
- = } while (pos<len);
- + pl("7└────────┴────────────────────────────┴────────────────────────────0
- ───────┘");
- = }
- = if ((actsl!=255) || (incom)) {
- = sl1(0,"");
- = sl1(0,stripcolors(s));
- = sl1(1,"");
- - sprintf(s,"1%-6ld %-25.25s %-10.10s %-5.5s %-5.5s %-20.20s %2d\r\n",0
- + sprintf(s,"7│ 1%-6ld7│ 9%-25.25s 7│ 3%-34s7│ \r\n", 0
- = status.callernum1,
- = nam(&thisuser,usernum),
- - cur_lang_name,
- - times(),
- - date(),
- - curspeed,
- - thisuser.ontoday);
- + thisuser.note);
- = sprintf(s1,"%sUSER.LOG",syscfg.gfilesdir);
- = f=sh_open(s1,O_RDWR | O_BINARY | O_CREAT, S_IREAD | S_IWRITE);
- = sh_lseek(f,0L,SEEK_END);
-
- Save LILO.C
-
- Step Four : This gets a little more complicated. Open up DEFAULTS.C and look
- for "inli(thisuser.note,ro,40,1);" or something similar to this. What you
- need to do is edit the line(s) to allow the user note to be a maximum of only
- 30 characters. The line shown above indicates that the input for the user
- note can be 40 characters. Change the 40 to 30. Since there are variations
- of user note mods, this may be different. Figure it out. You're a pretty
- smart sysop, right?
-
- Step Five : This is *ONLY* if you have the French Mod Division defaults
- (FMD-28.MOD) installed. Still in DEFAULTS.C, go to :
-
- case 23:
- print_def(7);
- goxy(36,16);
- mpl(40);
- inputl(thisuser.note,40);
- goxy(36,16);
- ansic(0);
- pl(charstr(40, ' '));
- break;
- }
-
- And change it like this :
-
- = case 23:
- = print_def(7);
- = goxy(36,16);
- & mpl(30);
- & inputc(thisuser.note,30);
- = goxy(36,16);
- = ansic(0);
- & pl(charstr(30, ' '));
- = break;
- = }
-
- Step Six : Recompile and you are done. You can easily modify the colors,
- as you can probably see. Also, thanks (to Jamaica Joe) for his
- BEACH???.MOD, which I tried to use, but it didn't work. Anyway,
- the nice little ansi box that says "Last callers & comments" was
- derived from his mod. The rest of the code is mine. Thanks.
-
- "And that's all I have to say about that."
-
- If you need any help, please feel free to email me at one of the addresses in
- the header, or call The Carnival BBS at (504)834-1738.
-
- If you use this mod, please email me. Thanks, and enjoy.
-