home *** CD-ROM | disk | FTP | other *** search
- (I know.... You have been wondering just what to ask Santa for this year...
- ...well, wonder no longer! Here is the latest update of the greatest upload
- modification ever written for WWIV.....)
-
- Live, from Asylum.... It's the
-
- ╔═════════════════════════════╗
- ║ Try to Upload, Version 1.1a ║
- ╔══╝ December 8th 1994 ╚══╗
- ║ aka The Blind Upload Modification ║
- ╚═══════════════════════════════════╝
-
- Have you ever had someone upload a file, only to have them spell the filename
- wrong, and watch as WWIV deletes the upload? Wayne addresses this in the
- source code, but hasn't written anything to do anything about it yet.
-
- 6ASYLUM to the RESCUE!0
-
- This modification allows users to upload files without going through the
- usual process of pressing U, putting in description etc... Best thing is it
- salvages those filenames the uploader might have spelled wrong.
-
-
-
-
- UPDATING?
-
- IF (and ONLY if) you already have this modification installed, then do this:
-
- 1) Replace your old TRYTOUL.C with the new stuff.
- 2) Update FCNS.H by typing MAKE FCNS or use the prototypes provided below.
- 3) Make sure __423__ is defined if you use WWIV 4.23 at top of TRYTOUL.C
- 3) You are Done!!!!
-
-
- What is new?
- Will print a screen 'TRY2UL.MSG | TRY2UL.ANS' if it exists in your gfiles/
- language dir.
- Fixed the 1.1 (11/13) which didn't take the user into the describe screen.
- Try to upload will no longer kill files that it thinks should not be
- uploaded. It will move them into a directory called TRY2UL off of your
- dload dir, as defined in INIT.EXE
-
-
-
- STEP A) COMMON
-
- A few functions are used from common, therefore, you need it installed.
- Current version is 2.2. Get it. Use it. Know it. Be the Mod, Danny.
- Be the mod.
-
-
- Step B) Put trytoul.c in your source directory.
-
-
- Step C) In TRYTOUL.C, make sure the correct #define __423__ or #define
- __424__ is uncommented. You will get errors (more than likely)
- if you try compiling in the wrong version.
-
-
- Step 1) XFER.C - Remove function upload (XFEROVL2.C in 4.24)
- Take it out. It is replaced in trytoul.c. OrWif you want, you can read in
- the new one. (Just take the old one out Danny. Just do it.)
-
-
- Step 2) BATCH.C - Remove function try_to_ul
- (Mega) Ditto on step 1... These are the only 2 functions completely replaced
- in trytoul.c
-
-
- STEP 3) BATCH.C - In function batchdl
- You know how when you press 'B' with no files in your batch queue, it kicks
- you out? Well, this obviously won't work for what we want to do.
-
- Comment out the lines that I have commented out.
-
-
- void batchdl(int mode)
- {
- int i,done,had,otag;
- char s[81],ch;
-
- done=0;
- // Commented out to allow for uploads without being in batch
- // if (numbatch==0) {
- // nl();
- // pl(get_string(871));
- // nl();
- // return;
- // }
- otag=tagging;
-
- .... Same function, down some
-
- done=1;
- pl(get_string(875));
- }
- done=1;
- break;
-
-
- case 'U':
- // Commented out to allow for uploads without being in batch
- // if (numbatchdl==numbatch)
- // {
- // nl();
- // pl(get_string(876));
- // nl();
- // break;
- // }
- nl();
- prt(5,get_string(877));
- had=yn();
- nl();
-
-
-
-
- STEP 4) XFER.C - function get_file_idz (XFEROVL2.C for 424)
-
- This step is optional, if you have OPT_IDZ_AS_DESCRIPTION defined, it will
- put the first line at the start of the string, instead of 3 chars over,
-
- ie:
-
- old way = ' Read in description'
- new way = 'Read in description'
-
- (I told Wayne about this....for some reason, he seems to think the way he
- does it in the code is the way it has to be done. I'll be danged if I can
- figure out why though.....)
-
- } else {
- sh_read(f,b,(int)MAX_LINES*256);
- b[(int)MAX_LINES*256]=0;
- }
- sh_close(f);
- #ifdef OPT_IDZ_AS_DESCRIPTION
- ss=strtok(b,"\n");
- // fix idz, change 56 to 59 below
- /************* The line below is the one, in case it is hard to see **********/
- sprintf(u->description,"%.59s",ss); /* **** MODIFY THIS LINE *****/
- ss=strtok(NULL,""); /* ^^^^^ modified part, spaces
- removed, changed 56 to 59 */
- #else
- ss=b;
- #endif
- for (i=strlen(ss)-1; i>0; i--) {
- if ((ss[i]==26) || (ss[i]==12))
- ss[i]=32;
- }
-
-
-
-
- Step 5) MAKEFILE
- Add the new file (TRYTOUL.C) to your makefile, or if you just put those two
- functions in xfer.c and/or batch.c ignore this step.
-
- I do this seperate file becuase it is a whole lot easier to update, just
- replace the .c file....
-
- This is for Borland C++. I don't have Turbo C. If you do, you will have to
- do this yourself, or use the other method.
-
- = xfertmp.obj xinit.obj subxtr.obj multinst.obj conf.obj\
- = readmail.obj instmsg.obj bbsovl1.obj bbsovl2.obj common.obj\
- + trytoul.obj
-
-
- And...
-
- = $(OBJ)\xinit.obj $(OBJ)\subxtr.obj $(OBJ)\multinst.obj\
- = $(OBJ)\conf.obj $(OBJ)\readmail.obj $(OBJ)\instmsg.obj\
- = $(OBJ)\bbsovl1.obj $(OBJ)\bbsovl2.obj $(OBJ)\common.obj\
- + $(OBJ)\trytoul.obj
-
-
- And...
-
- = bbsovl1.obj : bbsovl1.c
- = $(TCC_OVL)
- = bbsovl2.obj : bbsovl2.c
- = $(TCC_OVL)
- = common.obj : common.c
- = $(TCC_OVL)
- + trytoul.obj : trytoul.c
- + $(TCC_OVL)
-
-
-
- Step 6) FCNS.H
- Type 'MAKE FCNS' or add the following two prototypes to FCNS.H:
-
-
- /* File: trytoul.c */
-
- int try_to_ul_wh(char *fn);
- void t2u_error(char *fn, char *msg);
-
-
-
-
- Recompile. Please let us know if you have any problems with this modification.
-
- ASYLUM- Learn it Danny. Learn it. Learn Asylum. Be, be it Danny...BE ASYLUM!
-
-
- ASYLUM! Say it like SEGA!
-
-
- 4⌠0
- 4⌡am0
-