home *** CD-ROM | disk | FTP | other *** search
-
- ┌┬─── ── ─ ─ ── ───────────────────────────────────────────────────┬─ ∙∙
- ││ Alternative Worlds Presents │
- └┼─────────────────────────────────────────────────────────────────────┐
- ││ Mod Name » FMD-11a.MOD │∙
- ││ Difficulty » █▒▒▒▒▒▒▒▒▒▒ (1/10) │:
- ││ WWIV Version » 4.24 ││
- ││ Date Affected » 06/01/95 ││
- :│ Files Affected » MISCCMD.C / MMENU.C / COM.C ││
- ∙│ Description » Numerical User Listing With More Informations ││
- └─────────────────────────────────────────────────────────────────────┼┐
- │ A French Mod Division Release - (C) 1995 FMD Software ││
- ∙∙ ─┴─────────────────────────────────────────────────── ── ─ ─ ── ───└┘
-
- ┌┬══════════════════┐
- ││ Long Description ││
- └══════════════════┴┘
-
- This is currently something like Vision-X user listing, the modification
- will display a list of ALL your users (not only the one who has acces to the
- current sub) and put them in numerical order than the alphabetic order. This
- is useful if like us, you keep your Co-SysOp and friends to low user numbers
- and to see who's new on the system if you don't purge too often your users.
-
- Here is a snap shot of what it will look like on your system:
-
- ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
- Alias/User Handle Main Level User Note Area Code
- ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
- Spotnick........................SysOp....Alternative SysOp..............[514]
- Consensus Omnium................100.....................................[514]
- Dark Shadow.....................SysOp....Alternative Designer...........[514]
- French Mod Division.............50.......Alternative Worlds Modificatio.[514]
- Krusty..........................SysOp....Techno-Plus - C.E.O. / Sysop...[514]
- Lady............................100......Qui m'aime me suive! Mais pas .[514]
- Kipper..........................30......................................[509]
- The Lord Of Darkness............50......................................[514]0
- 0
-
- Revision A:
-
- - Updated for WWIV v4.24
-
- ┌┬═══════┐
- ││ Tests ││
- └═══════┴┘
-
- This modification has been tested on a virgin WWIV v4.24 source using
- Borland C++ v4.5
-
- ──────────────────────────────────────────────────────────────────────────────
- Legend
- ╔═══╤══════════════════┐
- │ + │ Add This Line │
- │ - │ Delete This Line │
- │ * │ Modify This Line │
- │ = │ Existing Line │
- └═══╧══════════════════╝
- ───[Step 1]────────────────────────────────────────────────────────────────────
-
- Open MISCCMD.C and add the following function right after void list_users:
-
-
- void fmd_users_list(void)
- {
- userrec u;
- int i, i2, abort=0, c1, c2, c3;
- char s[81], s1[80], s2[80], s3[80], s4[80], s5[6], s6[10];
-
- /* Converting Colors */
- c1=thisuser.colors[8];
- c2=thisuser.colors[9];
- c3=thisuser.colors[0];
- thisuser.colors[8]=1;
- thisuser.colors[9]=8;
- thisuser.colors[0]=15;
-
- outchr(12);
-
- litebar2(" Alias/User Handle Main Level User Note"
- " Area Code ");
-
- i2=number_userrecs();
-
- for (i=1; (i<=i2) && (!abort) && (!hangup); i++)
- {
- read_user(i, &u);
- if (!(u.inact & inact_deleted))
- {
- switch(u.sl)
- {
- /* Level definition - add your own very easily! */
- case 255: strcpy(s4,"3SysOp"); break;
- case 50: strcpy(s4,"0Elite"); break;
- case 30: strcpy(s4,"0Normal"); break;
- case 10: strcpy(s4,"0Slave"); break;
- default: itoa(u.sl,s4,10); break;
- }
- sprintf(s1,"7%s8%s", s4, charstr(9-strlen(stripcolors(s4)),'.'));
- sprintf(s2,"%.30s8%s", u.name, charstr(32-strlen(u.name),'.'));
- properize(s2);
- sprintf(s4,"%.30s", u.note);
- sprintf(s5,"%.3s", u.phone);
- sprintf(s6,"%.3s", syscfg.systemphone);
- sprintf(s3,"9%s8%s%c[%.3s]", s4, charstr(31-strlen(s4),'.'),
- (strcmp(s5,s6))?50:48, u.phone);
- sprintf(s,"7%s%s%s", s2, s1, s3);
- pla(s, &abort);
- }
- }
- npr("\r\n7%d 8users on this system.\r\n\r\n", status.users);
- thisuser.colors[8]=c1;
- thisuser.colors[9]=c2;
- thisuser.colors[0]=c3;
- }
-
- ───[Step 2]────────────────────────────────────────────────────────────────────
-
- Load COM.C and add the following function at the end of the file:
-
- void litebar2(char *fmt, ...)
- {
- va_list ap;
- char s[512], s2[250];
-
- va_start(ap, fmt);
- vsprintf(s, fmt, ap);
- va_end(ap);
-
- if (okansi()) {
- npr("\x1B[0;1;36m%s\r\n",charstr(strlen(s),'▄'));
- sprintf(s2,"%s",stripcolors(s));
- pl(s2);
- npr("\x1B[0;1;30m%s\r\n",charstr(strlen(s),'▀'));
- } else
- pl(s);
- ansic(0);
- }
-
- ───[Step 3]────────────────────────────────────────────────────────────────────
-
- Open MMENU.C and do the following modification:
-
- = }
- = break;
- = case 'U':
- + fmd_users_list();
- + break;
- = case '~':
- = list_users(0);
- = break;
- = case 'V':
- = write_inst(INST_LOC_VOTE,0,INST_FLAGS_ONLINE);
-
- 'U' will be the new listing, '~' will be the old WWIV user listing.
-
- ───[Step 4]────────────────────────────────────────────────────────────────────
-
- Compile back the BBS and you're done. If you add the function in COM.C,
- you will need to do a MAKE FCNS, else, it will work right away.
-
- French Proverb: L'imitation est la plus sincère des flatteries.
-
- For comments, bug report and suggestion, e-mail at the following address:
-
- Nicolas LeBlanc 2@20302.WWIVnet (aka Spotnick)
- -> spotnick@gamemaster.qc.ca
- Martin Bourdages 242@20306 / 3@20302.WWIVnet (aka Dark Shadow)
- -> martin.bourdages@radio.magicnet.com
-
- => French Mod Division Support Sub <=
- SubType: FMD
- Host: @20302 (WWIVnet)
- Scan sublist for other networks
-
- Read PRODUCTS.FMD for the full list of our support systems.
-
- ───[EOF]──────────────────────────────────────────────────────────────────────
-