home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
SYSOP
/
MODS1.ZIP
/
SPV-024.MOD
< prev
next >
Wrap
Text File
|
1993-12-11
|
5KB
|
112 lines
Papa Bear #1 @5079
7Wednesday1, 7December 81, 71993 2 96:232 pm
0R: net33: @4056 (via @4061) [04:45 12/11/93]
0R: net33: @4050 (via @4064) [04:24 12/11/93]
0R: net33: @4064 (via @1040) [04:10 12/11/93]
0R: net33: @1040 (via @2050) [14:38 12/10/93]
0R: net34: @2050 [11:29 12/10/93]
0R: net34: @2050 (via @1040) [02:18 12/10/93]
0R: net33: @1040 (via @1114) [02:47 12/10/93]
0R: net33: @5079 [21:33 12/08/93]
4Msg. Status:3▄ 15Please reply!
3 ▀▀▀▀▀▀▀▀▀▀▀▀
┌────────────────────────────────────────────────────────────────────────────┐
│ Mod Name: SPV-024.MOD Mod Authors: Pâpâ ßêâr (1@5079 WWIV/IceNET) │
│ Difficulty: ▓░░░░░░░░░ [00/00/00] (1@5050 SEX/JAMDnet) │
│ WWIV Version: 4.23 (1@15061 WWIVlink) │
│ Files Affected: XFER.C (1@18 CARDNet) │
│ Description: Informs SysOp via SSM and SysOpLog if a user requests a file │
│that is N/A [offline]. │
╞═────────────────────────────────────═╤═───────────────────────────────────═╡
│ StarPort Valhalla [510]522-3583 ASV 14.4kbps Home of the SPV mod series! │
╘═────────────────────────────────────═╧═───────────────────────────────────═╛
Word of Warning: You installed it, you're responsible! Make back-ups BEFORE
attempting to install this modification! Read all text before beginning.
-----------------------------------------------------------------------------
LEGEND:
== Original Code [use this to search on]
++ Add this Line [mods ALWAYS add stuff, don't they?]
... Skipping some code here [keeps the mod shorter]
-----------------------------------------------------------------------------
LONG DESCRIPTION: Well, I have a lot of files off the hard drive, but still
in WWIV's database of files. These are the files that are marked "N/A".
So, with this mod, when a user tries to d/l, or tag, a "N/A" file, it will
ask him if he wants to send a request to you. If he says yes, you are
notified via SSM and and entry in the SysOpLog. Then you can put it online
for him if you wish.
-----------------------------------------------------------------------------
STEP 1: Add these two functions to the top of XFER.C:
void inform_sysop(char *file_name)
{
char s[81];
backline();
sprintf(s,"¡!¡ FILE REQ: %s - %s", thisuser.name, file_name); // NOTE 1
ssm(1,0,s);
sysoplog(s);
npr("%s has been notified. Press any key!",syscfg.sysopname);
getkey();
backline();
}
void backline(void)
{
int i;
ansic(0);
outchr(32);
for(i=wherex(); i>0; i--)
backspace();
}
NOTE 1: I use flashing colors and CTRL-G [bell] so that when I log on, it is
very obvious when a user requests a file.
NOTE: The backline function will erase a line. Really handy!
You may want to add these to functions to FCNS.H. Its your choice.
-----------------------------------------------------------------------------
STEP 2: Modify the function - int printfileinfo(uploadsrec *u, int dn) :
== sprintf(s,"%s%s",directories[dn].path,u->filename);
== if (!exist(s)) {
++ nl();
++ pl("-> This file is currently offline. <-");
++ nl();
++ npr("Send OFFLINE FILE request to the SysOp? ");
++ if (yn()) {
++ backline();
++ inform_sysop(u->filename);
++ }
== return(-1);
== }
-----------------------------------------------------------------------------
STEP 3: Modify the function - void tag_it(void) :
== outstr(stripfn(filelist[i].u.filename));
== pl(get_string(1333));
++ nl();
++ pl("-> This file is currently offline. <-");
++ nl();
++ npr("Send OFFLINE FILE request to the SysOp? ");
++ if (yn()) {
++ backline();
++ inform_sysop(filelist[i].u.filename);
++ }
== bad=1;
== } else {
== fs=filelength(fp);
-----------------------------------------------------------------------------
STEP 4: Recompile!
-----------------------------------------------------------------------------
AS always, E-Mail me if you use this... Besides, I have a few more ideas
floating around for 4.23!
1-7=3*6>2Pâpâ ßêâr6<3*7=1-0
83StarPort Valhalla ASV 510-522-3583════════════════────────────────────────────
---
1Psychoceramics: The study of crackpots.