View Full Version : View attachments as thumbnails
imported_boutwell
04-08-2003, 03:28 PM
This was referred to in this (http://www.vbulletintemplates.com/mods/showthread.php?threadid=2275&highlight=thumbnail) post but I haven't found how to do it just yet. I know it still loads the full image, but I am just worried about keeping the tables nice and clean :)
Anyone know where I would make this change?
imported_boutwell
04-08-2003, 04:05 PM
Ok I found the correct template but I now have a problem I have never ran into before. How do I set it to have a maximum pixel dimension but not alter the aspect ratio of the image? Right now it is stretching everything to fit the dimensions I set, but that make portrait-oriented images look pretty bad :)
Here is my modified template:
<!--<p>--><smallfont>$post[username] has attached this image:<br>
<a target="_blank" href="attachment.php?s=$session[sessionhash]&postid=$post[postid]"><img src="attachment.php?s=$session[sessionhash]&postid=$post[postid]" border="0" alt="Click for Full Version" vspace="8" hspace="4" width="550" height="413"></a>
</smallfont><!--</p>-->
Is this even possible via templates? Would I have to use PHP to do this?
Any pointers would be greatly appreciated :)
B
filburt1
04-08-2003, 04:19 PM
It cannot be cleanly done from templates (aspect ratio would be lost).
Tony G
04-09-2003, 05:22 AM
Yeah, I thought it most likely included hacking of some sort looking at the title.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.