I started by adding this mod to a bare 2.0.17 test board. The board is installed on w2k3, IIS6, sql2k, php4. I use EasyMOD. I only have SubSilver template.
I had one, well documented error where unset($delete_type); no longer has a closing brace right after it. I put the [ AFTER, ADD ] code right after the unset function call. Mine works. Someone else put the [ AFTER, ADD ] code after the brace in its new location (on 2.0.17 I guess) and his worked too. Go figure.
I copy all the files and directories in attach_mod/root to my phpbb root directory. Point my browser to http://website/install/mod_table_inst.php
to get the sql tables set up. Run EasyMod on attach_mod's install.txt (which had the one change for the unset function call), then go in admin and configure the attachment settings.
I also add the following configuration settings to php.ini
max_execution_time = 300 ; Maximum execution time of each script, in seconds
max_input_time = 600 ; Maximum amount of time each script may spend parsing request data
memory_limit = 32M ; Maximum amount of memory a script may consume (8MB)
post_max_size = 32M
upload_max_filesize = 32M
Although max_input_time=600 is probably too much time on faster networks and no where near enough on dialup, I've left it at that until I can test the actual upload throughput. Having the max_execution_time half of max_input_time seems silly and I will change mine when I understand better what they should actually be. The other three are critically important as the default is 2m. When was the last time you saw anything on windows less than 2m?
Having AttachMod on my board has made the difference for my users where without it the board would be mostly usless. With AttachMod my users are very happy to be able to share files.
Oh, another thing, even though my board is closed to public, I run McAfee virus scanner on my server. I tested attachmod by uploading the eicar virus scanner test suite. I get an error from attachmod that the file can't be found after uploading. Of course this is true because McAfee caught it and moved it to quarantine. I wish attachmod had a different error message for this case. I know I'll have to write my own interface so if someone actually does upload a virus infected file, attachmod should at least warn them why the upload actually failed. I'll work on that another day.