home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
SYSOP
/
MODS1.ZIP
/
APOLLO27.423
< prev
next >
Wrap
Text File
|
1993-12-27
|
3KB
|
88 lines
┌──────────────────────────────────────────────────────Filo─Header─(c)────┐
│ Mod Name: Apollo27.423 Mod Authors: Apollo 1@92938 WWIVNet & BRNet │
│ Difficulty: █▒▒▒▒▒▒▒▒▒ 1@2939 TARDIS,TERRA,ICE & Mas Nets │
│ WWIV Version: v4.23 Date: 12/09/93 │
│ Files Affected: XFER.C │
│ When a user goes to download a file, it puts the Description, uploaded │
│ by, date uploaded, ect...In a box, making it look a whole lot nicer. │
└─────────────────────────────────────────────────────────────────────────┘
Special Thanks to the writer of THEMAN01.MOD.
Theman01 was written for 4.20e, I upgraded it for 4.22, added a few
niceties, and condensed the display a bit.
I've now updated it for 4.23.
LEGEND:
= old code, Search for this
+ new code
- Remove or comment out this line
> Modified From Virgin Code
#include <witty disclaimer>
BACKUP your Source
Load up: XFER.C
Find: int printfileinfo(uploadsrec *u, int dn)
= char s[81];
+ char s1[81]; /* Apollo27.423 */
= double d;
= int i,abort;
=
= if (modem_speed)
= d=((double) (((u->numbytes)+127)/128)) *
= (1620.0) /
= ((double) (modem_speed));
= else
= d=0.0;
- outstr(get_string(746)); pl(stripfn(u->filename));
- outstr(get_string(747)); pl(u->description);
- outstr(get_string(748)); npr("%dk\r\n", ((u->numbytes)+1023)/1024);
- outstr(get_string(749)); pl(ctim(d));
- outstr(get_string(750)); pl(u->date);
- outstr(get_string(751)); pl(u->upby);
- outstr(get_string(752)); pln(u->numdloads);
+ sprintf(s, /* Watch for line wrap! */
+ "%d╒═══════════════════════════════════════════════════════════════════════╕",
+ FRAME);
+ outstr(s); nl();
+ sprintf(s,"%d│5%s1%-58s%d│",FRAME,get_string(746),
+ stripfn(u->filename),FRAME);
+ outstr(s); nl();
+ sprintf(s,"%d│5%s1%-58s%d│",FRAME,get_string(747),
+ u->description,FRAME);
+ outstr(s); nl();
+ sprintf(s1,"%dk",((u->numbytes)+1023)/1024);
+ sprintf(s,"%d│5%s1%-6s ",FRAME,get_string(748),s1);
+ outstr(s);
+ sprintf(s,"5%s1%-8s ",get_string(749),ctim(d));
+ outstr(s);
+ sprintf(s,"5%s1%-4d %d│",get_string(752),
+ u->numdloads,FRAME);
+ outstr(s); nl();
+ sprintf(s,"%d│5%s:1%-8s 5%s1%-31s %d│",FRAME,
+ get_string(750),u->date,get_string(751),u->upby,FRAME);
+ outstr(s); nl();
+ sprintf(s, /* Watch for line wrap! */
+ "%d╘═══════════════════════════════════════════════════════════════════════╛0",
+ FRAME);
+ outstr(s);
= nl();
= abort=0;
= if (u->mask & mask_extended) {
= pl(get_string(753));
= print_extended(u->filename,&abort,255,0);
= }
NOTE: Beware of line wrap on all lines that start with +, if there is no + or
= at the begining of the line, then linewrap has attacked, unwrap the line
before compiling.
done.
Save, Recompile and run.
As you can see, It's as easy as most of my mod's!
---- /┤PΘ££Θ (8{[} <-- Bald Vampire W/Glasses & Facial Hair (me)