home *** CD-ROM | disk | FTP | other *** search
- Nicolas Leblanc #2 @20302
- Sat Jun 03 00:39:10 1995
- 0R 34 06/05 03:54 WWIVNET 4051->8421
- 0R 34 06/04 23:20 WWIVNet 4001->4051
- 0R 34 06/05 04:05 WWIVnet 4000->4001
- 0R 34 06/04 17:53 WWIVnet ->4000
- 0R 34 06/04 03:24 WWIVnet 4001->4000
- 0R 34 06/04 05:40 WWIVnet 20001->4001
- 0R 34 06/03 00:47 WWIVnet 20302->20001
- 0R 34 06/03 00:42 WWIVnet ->20302
-
- ┌┬─── ── ─ ─ ── ───────────────────────────────────────────────────┬─ ∙∙
- ││ Alternative Worlds Presents │
- └┼─────────────────────────────────────────────────────────────────────┐
- ││ Mod Name » FMD-08a.MOD │∙
- ││ Difficulty » █▒▒▒▒▒▒▒▒▒▒ (1/10) │:
- ││ WWIV Version » 4.24 ││
- ││ Date Affected » 06/01/95 ││
- :│ Files Affected » MMENU.C / SYSOPF.C ││
- ∙│ Description » Graphical Activity Log For WWIV ││
- └─────────────────────────────────────────────────────────────────────┼┐
- │ A French Mod Division Release - (C) 1995 FMD Software ││
- ∙∙ ─┴─────────────────────────────────────────────────── ── ─ ─ ── ───└┘
-
-
- ┌┬══════════════════┐
- ││ Long Description ││
- └══════════════════┴┘
-
- This modification will great a nice graphic design of your activity log
- (zlog) that can be used everywhere on your system. This graphic is now
- ANSI and Ascii compatible. Here is a snapshot of what this will look like:
-
- D┌────────╥───────────────────────────────────────────────────────┐
- │ Date ║ Activity: 1 ▒C= 1.8% activity.C│
- ├────────╫─┬─┬─┬─┼─┬─┬─┬─┼─┬─┬─┬─┼─┬─┬─┬─┼─┬─┬─┬─┼─┬─┬─┬─┼─┬─┬─┬─┤
- │11/28/94║ │
- │11/21/94║ │
- │11/13/94║▒▒▒ │
- │11/12/94║▒▒▒▒▒▒▒ │
- │11/11/94║▒▒▒▒▒ │
- │11/10/94║▒▒▒▒▒▒▒▒▒ │
- │11/09/94║▒▒▒▒▒▒ │
- │11/08/94║▒▒▒▒▒▒▒ │
- │11/07/94║▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │
- │11/06/94║▒▒▒▒▒▒▒▒▒▒▒▒▒ │
- │11/05/94║▒▒▒ │
- │11/04/94║▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │
- │11/03/94║ │
- │11/01/94║ │
- │10/31/94║ │
- └────────╨───────────────────────────────────────────────────────┘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]────────────────────────────────────────────────────────────────────
-
- Load SYSOPF.C and put the following function at the end of the file.
-
- void build_graph(void)
- {
- char s[81];
- int abort=0, f, i=0, percent;
- zlogrec z;
- float block;
-
- outchr(12);
- sysoplog("@View Graphical Zlog");
- sprintf(s,"%sZLOG.DAT",syscfg.datadir);
- f = sh_open1(s, O_RDWR | O_BINARY);
- if (f < 0)
- return;
- block = 100.0 / 55.0;
- sh_read(f, (void *)&z, sizeof(zlogrec));
- if (okansi()) {
- npr("7┌────────╥%s┐\r\n", charstr(55, '─'));
- npr("7│ 9 Date 7 ║ 9Activity: 1 4▒9 = %1.1f%% activity.%s7│\r\n",
- block, charstr(24, ' '));
- npr("7├────────╫─┬─┬─┬─┼─┬─┬─┬─┼─┬─┬─┬─┼─┬─┬─┬─┼─┬─┬─┬─┼─┬─┬─┬─┼─┬─┬─┬─┤\r\n");
- while ((i<15) && (abort!=32))
- {
- npr("7│9%8s7║",z.date);
- percent = 10 * z.active / 144;
- percent = (int)((float)percent / block);
- npr("4%-55.55s7│", charstr(percent-1, '▒'));
- i++;
- sh_lseek(f, ((long)i) * sizeof(zlogrec), SEEK_SET);
- sh_read(f, (void *)&z, sizeof(zlogrec));
- abort = inkey();
- nl();
- }
- npr("7└────────╨%s┘\r\n", charstr(55, '─'));
- } else {
- npr("+--------+%s+\r\n", charstr(55, '-'));
- npr("| Date | Activity: 1 * = %1.1f%% activity.%s|\r\n",
- block, charstr(24, ' '));
- npr("|--------|-+-+-+-|-+-+-+-|-+-+-+-|-+-+-+-|-+-+-+-|-+-+-+-|-+-+-+-|\r\n");
- while ((i<15) && (abort!=32))
- {
- npr("|%8s|",z.date);
- percent = 10 * z.active / 144;
- percent = (int)((float)percent / block);
- npr("%-55.55s|", charstr(percent-1, '*'));
- i++;
- sh_lseek(f, ((long)i) * sizeof(zlogrec), SEEK_SET);
- sh_read(f, (void *)&z, sizeof(zlogrec));
- abort = inkey();
- nl();
- }
- npr("+--------+%s+\r\n", charstr(55, '-'));
- }
- sh_close(f);
- pausescr();
- }
-
-
- Close SYSOPF.C
-
- ───[Step 2]────────────────────────────────────────────────────────────────────
-
- Load MMENU.C and do the following change to mainmenu:
-
- = if (strcmp(s,"ZLOG")==0) {
- = zlog();
- + prt(5, "See the graphical zlog? ");
- + if (yn())
- + build_graph();
- = }
- + if ((strcmp(s,"GRAPH")==0)) {
- + build_graph();
- + }
-
- Save BBS.C
-
- ───[Step 3]────────────────────────────────────────────────────────────────────
-
- Now MAKE FCNS and compile the BBS and it's done. Optimize for your needs.
-
- You can use this modification wherever you want, some people like to have it
- in their logon, then you simply have to put a "build_graph();" just after
- read_automessage(); in LILO.C, etc etc.. very easy to use for your own needs.
-
- French Proverb: C'est dans les moments difficiles qu'on trouve les vrais amis.
-
- 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]──────────────────────────────────────────────────────────────────────