Update for FLASH001.MOD for 4.22 and Dino's Conferencing Mod Josh Weide #267 @19911 Sunday, February 21, 1993 12:05 pm ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ Mod Name: FLASH01A.MOD Mod Author: Flashman ³ ³ Difficulty: Saddam could do it. Date: 2/20/93 ³ ³ WWIV Version: 4.22 - Must have Dino's Conferencing mod installed ³ ³ Files Affected: BBS.C, MISCCMD.C, FCNS.H ³ ³ Description: Makes a transfer section "wish list" for users to request ³ ³ the files they want. Separate list for each conference. ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ This is a revision to a mod I made not too long ago, which adds a file "wish list" to the transfer section in which the users can request files to be uploaded. I got the majority of the code from the bbs list void, but it underwent some major changes and additions to create the wish list. This version is WWIV 4.22 compatible in that instead of using 'W' to enter the wish list, a user will hit 'H'. It seems more logical to make it 'W', but since Wayne decided that 'W' was going to be the WWIV slash commands menu, I had to work with it. In the top banner I mentioned that this mod requires that you've installed Dino's conferencing mod installed. This is because I've made the mod so that each conference has a different wish list, so that if you have a general conference, a sysops conference, and a midi conference, people can request files relating to the conference type. I hope you enjoy this mod. It works without a hitch. Well, enough chit-chat, on with the mod. DISCLAIMER: If all goes well, I stand behind this mod 100 percent. If not, it's all your fault for installing it. STEP ONE: Back up your source code!!! STEP TWO: Load up MISCCMD.C and block read the following void in to the very end, or if you're upgrading from a previous version of the mod, just replace void wishlist() with this one. void wishlist(void) { int i,i1,i2,f,done,ok; char s[150],s1[150],s2[150],list[80],ch,ch1,*ss; char item[77]; long l,l1; done=0; do { nl(); npr("2%s Wish List: R:ead, A:dd, Q:uit : ",confs[cur_conf].name); ch=onek("QRA"); switch(ch) { case 'Q': done=1; break; case 'R': outchr(12); sprintf(list,"3-= 7%s File Wish List 3=-",confs[cur_conf].name); for (i1=0; i1<((thisuser.screenchars/2)-(15+strlen(confs[cur_conf].name)/2)); i1++) outchr(32); pl(list); sprintf(list,"WISH%d.MSG",cur_conf); printfile(list); break; case 'A': if ((actsl<=10)) { nl(); nl(); pl("You must be a validated user to add to the wish list."); nl(); break; } if (thisuser.restrict & restrict_automessage) { nl(); nl(); pl("You can not add to the wish list."); nl(); break; } nl(); pl("Please enter a description of what you want:"); outstr(":"); sprintf(item,0); mpl(77); inputl(item,77); if (strlen(item)==0) { nl(); break; } sprintf(s,"1%s\r\n",item); nl(); nl(); prt(2,"You want:"); nl(); pl(s); nl(); prt(5,"Is this correct? "); if (yn()) { strcpy(item,s); sprintf(s,"5- %s",item); sprintf(s1,"%sWISH%d.MSG",syscfg.gfilesdir,cur_conf); f=open(s1,O_RDWR | O_CREAT | O_BINARY, S_IREAD | S_IWRITE); if (filelength(f)) { lseek(f,-1L,SEEK_END); read(f,((void *)&ch1),1); if (ch1==26) lseek(f,-1L,SEEK_END); } write(f,(void *)s,strlen(s)); close(f); nl(); pl("Added to wish list."); } else { nl(); outstr("Request not added to list."); nl(); nl(); } } } while ((!done) && (!hangup)); } /* END OF BLOCK READ */ -------------------------------------------------------------------------------- STEP THREE: Load BBS.C. Search for void dlmainmenu() and search down for the following code: case 'G': helpl=30; temporary_stuff(); break; case 'H': /* Add this WISHLIST.MOD */ helpl=25; /* Add this WISHLIST.MOD */ wishlist(); /* Add this WISHLIST.MOD */ break; /* Add this WISHLIST.MOD */ -------------------------------------------------------------------------------- STEP FOUR: Next, run MAKE FCNS from the DOS command line, or if you don't use MAKE, load FCNS.H and search for the components of MISCCMD.C and add the code: void wishlist(void); to the end the misccmd.c group. STEP FIVE: Compile the BBS! All of the software modification is done. STEP SIX: Modify your MENUS.MSG and MENUSANS.MSG so that the file transfer menus indicate that the user can type 'H' to go to the wish list. That's all there is to it. I hope you find this mod useful.