View Full Version : Trying to figure out if this is possible.. (Thumbnail related)
10-25-2008, 07:11 AM
Hi! I just installed pixelpost on my website for future use as an art gallery rather than a photo one, as it's nice and simple but does pretty much everything I need it to do, and looks quite nice even in default form. One issue, however..
I noticed that in the actual image pages, and by extension the index page, it uses the full-sized image. Is there any way I can make it use a large thumbnail instead, or scale it somehow and link to the fullsize? Some of the stuff I do is rather large and I'm afraid of someone with a smaller screen trying to load the pixelpost and having something huge load below. I see there are <IMAGE_WIDTH> and <IMAGE_HEIGHT> settings in image_template.php but with the images being different sizes it would look odd. Any suggestions? I tried looking through the addons but all the thumbnail stuff I saw seemed to be related to the browse page or adding extra thumbnails and such.
10-25-2008, 08:31 AM
Have a look into your image_template.html and find where the image is defined in the source code. It should be a line similar to that:
<img src="images/<IMAGE_NAME>" alt="<IMAGE_TITLE>" width="<IMAGE_WIDTH>" height="<IMAGE_HEIGHT>" />
Change this to the thumbnail:
<img src="thumbnails/<IMAGE_NAME>" alt="<IMAGE_TITLE>" width="<THUMBNAIL_WIDTH>" height="<THUMBNAIL_HEIGHT>" />
Change the link of the main image which leads to the previous image to this:
If you still need the small thumbnails too (for archive page for example), there is an addon to create additional thumbnails in different (medium) size. You should be able to use this medium sized thumbnail for the image page in the same way as I described above
10-25-2008, 03:10 PM
Alright, thank you for the help!
*looks for that thumbnail addon now*
Edit: I found the "midsize cached images" addon but it doesn't seem to quite work properly. I decided to try switching it into the browse category through the functions_browse.php file because the cropped image looks better for the actual view page, but then it doesn't want to generate the thumbnail for the browse page. Looks like I may need to just use a smaller thumbnail for the view and browse page but I'll check again to see if there are any addons I missed.. That's what I get for trying to make something do things it shouldn't I guess. :p
10-25-2008, 07:23 PM
To be honest, I can't find the Addon I was thinking of. Maybe it was removed because it doesn't work with the current version of PP.
But maybe this is the right thing for you:
10-25-2008, 08:38 PM
i think a better solution is the "Auto Resize Addon " in combination with "Pixelpost Lightbox Fullsize link " . i do it so at my site.
10-25-2008, 08:46 PM
austriaka - I did take a peek at that, actually, but I'd rather avoid anything that takes up the full screen. Thanks though.
snafu - I was never able to figure out how those resize things worked. With one of them, it didn't seem to do anything, and with another I found it didn't show up in the admin panel like it said it would (I think it was the one you suggested that seemed to go nonexistent). The latter addon doesn't seem to be in the addons section of the site. I do like what you have on your site though if it can be applied to varied image sizes.
10-25-2008, 09:02 PM
if it can be applied to varied image sizes.
no, there is only one original and one reduced-scale image possible, several different sizes of the same image are not possible
(sorry, my english is not good, thanks god for google)
10-25-2008, 09:10 PM
Sorry, I didn't mean several different sizes of the same image, what I mean is for it to scale each image down rather than fit them in a specific ratio, so that each image has a smaller thumbnail, but isn't distorted to one specific thumbnail size. (for example, if I had a picture that was 200 x 400 and another that was 1000 x 500, it wouldn't make thumbnails for them that were 300 x 300 or something).
If there isn't an addon or change I can make to do this, though, I have another idea at least.
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.