Custom Thumbnails on Index Page

I have had this issue previously, but just cannot seem to resolve it using the methods mentioned before. I would like to have thumbnails on my index page that are 300x150. However, they are currently taking the value from Admin>Options>Theme>Thumb Size which is set at 75 pixels right now. From my understanding, this value did not matter when using the code listed below for my index.php

`
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">



<?php printGalleryTitle(); ?>
/favicon.ico" type="image/x-icon">
/favicon.ico" type="image/x-icon">
/zen.css" type="text/css" />
/scripts/bluranchors.js">
/swfobject.js">

function WriteEmail(d, n) {
document.write("");
}

<?php zenJavascript();
$pagetitle="the GoLdBricK.net Gallery";
$pagedesc="View the online photography portfolio for the GoLdBricK.net";?>







" title="Return to the Main Index">








<?php include("include/footer.php"); ?>




`
I have even tried to paste the <!-- Album List --> section from the album.php below into the Album List section of the index.php, but that did not work either. The code listed above is the same code used when the site was displaying the thumbnails properly. At the time I was using ZP 1.2.6.

`
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">



<?php printGalleryTitle(); ?> | <?=getAlbumTitle();?>
/favicon.ico" type="image/x-icon">
/favicon.ico" type="image/x-icon">
/zen.css" type="text/css" />
/css/slimbox2.css" type="text/css" media="screen" />
/scripts/bluranchors.js">
/js/jquery.js">
/js/slimbox2.js">


<?php zenJavascript(); ?>


















<?php include("include/footer.php"); ?>




`
If someone could please assist me in how to get these index thumbs to display at 300x150 that would be great. As you can see from visiting the site, the subalbums display correctly, but I cannot get the front page (index.php) to do the same.

http://www.thegoldbrick.net/gallery/

Additionally, what happened to the custom thumbnail cropping feature that was present in 1.2.6?

Thanks in advance for any assistance. I gather it is not a difficult fix, just one that I don't know how to do. Apologies if this is repeating previous posts. One of which is my own from Nov. '09.

http://www.zenphoto.org/support/topic.php?id=6485

Comments

  • acrylian Administrator, Developer
    For such custom thumbs there is a set of `CustomSizeImage` functions. Please see the documentation. You will have to add them to your theme with the appropiate values. Probably you can just copy that from your album page.

    The custom crop feature is still there and can be accessed on each image on the backend. It is however based on the default size values added on the backend. I if you use CustomSize functions it will not be applicable as these override the default values.
  • Perhaps I need to take my steps more slowly. I pasted the Album List section in the index.php, but did not get the 300x150 result. Then I read your post, tried again and it worked. Well, thanks for that.

    Now, to follow up on the custom crop, perhaps the reason I did not have the CustomSizeImage function in the index.php in the first place was because I preferred to to just use the custom values and crop it to a 2:1 ratio for the same result. However, I am not seeing where I can put in these values to get a 300x150 image on the index page. Can you guide me to that section?

    So far, I have only seen the thumbnail value which is a single number as it is a square image. This is not what I need for the index page.
  • acrylian Administrator, Developer
    We have thumbs for images (imagethumbs) and thumbs for albums (albumthumbs) within their own loops. I suggest to read the theming tutorial for the basics.

    Sorry, if you wish to use non-square thumbs you have to use the custom size image functions direclty on you theme. There is no such option on the backend.
  • I will give the theming tutorial another read to refresh myself. Been a little while since I have played around with the Zenphoto functions and CSS. However, I do want to have non-square thumbs, so I will keep the CustomSizeImage function. Now have the site basically where I want it. Should I require some further assistance, then I'll come back. Thanks so much for the help.
Sign In or Register to comment.