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 while (next_album()): ?>
-
<?php endwhile; ?>
<?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(); ?>
Browse Albums | <?php printAlbumTitle(true);?> | <?php echo getNumImages();?> images
<?php while (next_image()): ?>
<?php endwhile; ?>
<?php while (next_album()): ?>
-
<?php endwhile; ?>
<?php printAlbumDesc(true); ?>
<?php printPageListWithNav("« Previous", "Next »"); ?>
<?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
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.
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.
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.