Installation is extremely easy. First open the attach.php file and check the configuration. It's designed to work with the private attachments hack and the attachment viewer. After checking the config, upload the file to your forums directory, create a new template called attachment with the contents of the attachment.txt file and a new template called attachmentbit with the contents of the attachmentbit.txt file. That's it.
Feedback is always appreciated. You can get assistance, if needed, either through an e-mail or through my forums.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Originally posted by corsacrazy wood there be a way to order the attactments by a value set in the attach.php file ie, order by filesize, number of times downloaded, or extension. ? ?
i would still like there to be an option to order the attactments by date or number of downloads etc , :cry: wood this b possible ? cheers
I guess nothing ever got done as far as fixing the load issue. I just installed it, and it loaded a few times....30+ seconds processing time for each pageload. Now my server is down.
This is a great idea, and I think this functionality should be part of vB. It would be great to also have the ability to see if the thread still exists, and let you delete selected attachments. Viewing size would be great too.
I tried this one as well, I had to shut down mysql because it was killing it. Perhaps it's selecting too many attachments? I have an attachment database of 400 MB so maybe that's what caused it, because when installing it locally it worked.
Well im sure you had good intentions but i had to remowe this hack from my shared server and as ive been told all the people running this hack had to remove it.
I highly dont recommend installing this hack due to the server kill it creates. This is two emails i just recieved from my host http://www.f5hosting.com:
Quote:
David,
You are running a hack file in your public_html folder called attach.php. That is horribly written code, complete garbage. It's got three JOIN's in it!! It's a total server killer. It could choke a dedicated server, much less a shared server. Please remove it. We can't allow it. It locks up mySQL for more than a minute at a time and drives the server load up by a factor of 5 or more. I had to get several sites to remove it, as did many other hosts, when it first came out. Thank you.
Michael
And after i removed the file this is the second email i recieved:
Quote:
Thanks, David. It's not your fault. We all have to be careful what hacks we put on our vB's. Some of them are great, but a lot of them are really bad. This one may be the all time champion server killer, the piece of crap. Some kid wrote it, and didn't know what he was doing.
Michael
lol , not to be mean, i dont know nothing about writing hacks, but Michael totally burned you !!!!
I would link thread to the post which has the attachment, using showthread.php?s=$session[sessionhash]&postid=$att[postid]#post$att[postid]" , and open them in new window:
02-26-03 at 07:45 AM kuska said this in Post #45 Well im sure you had good intentions but i had to remowe this hack from my shared server and as ive been told all the people running this hack had to remove it.
I highly dont recommend installing this hack due to the server kill it creates. This is two emails i just recieved from my host http://www.f5hosting.com:
And after i removed the file this is the second email i recieved:
lol , not to be mean, i dont know nothing about writing hacks, but Michael totally burned you !!!!
Well, at least he's right about my age, but you don't measure the speed of a query by the number of joins. I mean, wow! It's got three joins in it, it must be bad. Oh well, i shouldn't complain. It was my fault.
Here's the fix:
Run the following query:
ALTER TABLE `post` ADD INDEX ( `attachmentid` )
and replace attach.php with the attached file. Be sure to TEST IT.