![]() |
I think it still adds another query per attachment Zzed.. but its cool for now, more than what I had before :)
|
I think that given the fact that not every post has an attachment, the query in showthread.php will have to make an unnecessary hit to the database for every post.
FireFly's idea to use the LENGTH() function was quite ingenious because what comes back from the query within the hack is an integer and not a block of data. |
Quote:
|
question, so if what you have set as an attachment limit on file size in your admin cp, this over rides that, and shows a link to the attached file? Say for example I have a larger file size limit set in the admin cp than what is allowed in this hack.
|
I have it set to 100k in the CP ; in the hack it is set to 50k ; so files under 50k shows up as pic, over 50k and under 100k as a link
Firefly, Help :o |
i've been thinking about installing a version of this, but instead of checking the lenght every time, I was going to add a new row to the attachment table and storing the size there when the file is attached. dimensions are checked then anyway. then just check the stored value in the db when the page is loaded. would there be any down side to doing it this way?
|
Yes, I would be VERY intersted on making the size configurable. This is almost excatly what I have been looking for. Is there any way to maybe have it show the size of the attachment in the message itself right next to the word "Attachment"? Like in kb size? :)
Quote:
|
this hacks adds an extra query per attachment :o
|
A great idea :) Something I would like to see (and I am not complaining I swear) is to have this work for picture size in pixels. I hate seeing the horozontal scroll, but I also like to be able to view attachments. :) Just a suggestion for the future :)
|
Sounds like an excellent hack, but I would also like to see a "pixel" add-on for it. :)
|
All times are GMT. The time now is 09:45 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|