View Full Version : If attachment is over set size, thumbnail is shown
c-pr0mpt
02-12-2002, 06:31 AM
Hi I want to set my attachments so that if the image being added is over a certain size in pixels it will show a downsized version (a size I determine), and make it a link to the full version size to open in a new window.
For instance, if a picture being added is over 600x600, I want it to make a thumbnail of it at 400x400. But if I click the 400x400 image in the post a new window opens to the full size image.
Any help? Thanks all.
c-pr0mpt
02-12-2002, 10:57 PM
No one has any ideas? I guess, I am willing to pay to get this created.
SaintDog
02-13-2002, 05:42 AM
I think that would be a useful hack as well, although I never really though about it myself, it is a good idea :). I would like to see something like this as well, I hate it when members post images that stretch the forum out by posting large pictures (although the CODE tag does this also, since it is pre-formatted), non-theless, I would like to see this hack if possible.
(good to see you are opening your forums, I have been wanting to know what you site has been about for the past month now, it is getting on my nerves :) - I could never sign up though because the mailing list was down.)
c-pr0mpt
02-13-2002, 05:50 AM
yeah, the mailing list was messed up in a server move and I never knew!! Sucked.
Yeah the forums open tomorrow. But without this hack the gallery area I created is gonna be a mess when people post wallpapers and such. :(
SaintDog
02-13-2002, 05:59 AM
I see what you mean, I hate it as much as you do. I would personally love to see this hack be made.
kaizen
02-13-2002, 07:49 AM
C-prompt
I think I can do this.
Please add me to your icq.
84639736
SaintDog
02-13-2002, 01:42 PM
Kaizen, if you plan on doing it, will it be a pay hack or will you be releasing it to the public? Just thought I would ask :)
c-pr0mpt
02-13-2002, 01:50 PM
He wasn't able to do it.
kaizen
02-13-2002, 01:55 PM
What !
Check your icq logs man.
You have a different functions.php file for whatever reason - I asked you to send me it so i could work on the hack in that file.
I'm sry I had to keep going out but that was unavoidable.
c-pr0mpt
02-13-2002, 02:06 PM
You didn't seem to even understand what exactly I wanted. And the license states we cannot send our files to other people.
kaizen
02-13-2002, 02:12 PM
Originally posted by c-pr0mpt
You didn't seem to even understand what exactly I wanted. And the license states we cannot send our files to other people.
I knew what you wanted. Regarding the licence: I had forgotten about that.
Case closed. I don't have time for this.
SaintDog
02-13-2002, 02:14 PM
Maybe someone else will pick it up :)
c-pr0mpt
02-13-2002, 02:15 PM
Im not putting you down...chill. I'm just saying that you really didn't understand what I wanted to do. (Not saying its your fault either, could be my lack of a good explanation beforehand). Your initial help didn't even have anything to do with the vB attachments set up. It was a small set of php code not relevent to anything existing in vB.
kaizen
02-13-2002, 02:19 PM
Good luck finding someone else to do it. I know you need this.
c-pr0mpt
02-13-2002, 02:37 PM
One more attempt at explaining what it is I would like/hope to do.
vB comes with an option in the admin area to restrict the sizein dimensions of attachments. What I would like to do is use this restriction but change its function. Rather than disallowing if a person has a image bigger than the dimensions, I want it to allow it but run a different attachment image template, then the normal one.
So the only hack/modification needed is to change the current setup from blocking the dimensions I set in the admin cp, to just displaying it in a different template than an attachment lower than the size would be shown in.
God, it sounds confusing even to me. LOL
TWTCommish
02-13-2002, 02:40 PM
So, basically, this would require some kind of image editing module or something?
c-pr0mpt
02-13-2002, 02:47 PM
No. All I want it to do is instead of denying an attachment that is above the dimensions I choose in the admin area, I want it to display it like normal, except use a seperate attachmentimage template than the normal one. And this one would have a set width/height tag so it resizes the image in the thread.
TWTCommish
02-13-2002, 02:54 PM
I don't think that would be too difficult. Would you like me to email/PM you about it? You do realize that people would STILL be allowed to upload giant files, though, right? And the files would still take as long to download...they'd just be shown as smaller/fuzzier/whatever.
c-pr0mpt
02-13-2002, 03:06 PM
Yeah. See the reason is that the certain forums are "Galleries" for people to show off work. People will be posting wallpapers and as much as it is fine, it distorts the page horribly.
So, I do know about the size, and loss of clarity when resized, but its ok because it will be clickable to see it full size. I would love for you to pm me about it. =) Or even email.
SaintDog
02-13-2002, 06:30 PM
I would try, but my PHP/SQL skills are at the bottom of the barrel.
Anyway, off-topic, but I like your forums, they are really nice c-pr0mpt
Maybe someone will do this soon. Since TWT stood up, maybe he will be able to do it :D
Dark_Wizard
02-13-2002, 08:10 PM
Why don't you incorporate this script (http://www.menalto.com/projects/gallery/modules.php?op=modload&name=News&file=index) into your site as it automatically creates the thumbnails for you by means of the PHP's built-in GD image functions. Just a thought!
c-pr0mpt
02-14-2002, 05:56 AM
Thanks for the suggestion Dark Wizard. I may look into that as a possibility.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.