I am using an edited version of the default them with colorbox enabled in albums.
When a thumbnail is clicked on colorbox kicks in, but it doesn't load the image (in Chrome is shows text-script). When I hit refresh and try again the images shows up properly, but the next one won't.
I'm using this script to call colorbox in header.php:
Probably the image cache for the image you are loading has not been generated. So the link will not "appear" to be a photo for colorbox and it must be told it is. You need to add photo:true to the colorbox parameters.
As well (I am presuming you are using Zenphoto v1.4.1.6 or later, you did not say) the way you are loading colorbox might be a problem. Colorbox should be enabld as a plugin and its options should be set to enable it on the album script. The way you are doing it may well load it twice which could be the source of your problem.
I'm using Zenphoto v1.4.1.6.
I have colorbox enabled on my album page from with ZenPhoto, so I've taken the scripts out of the header.php.
Is this the correct place to put photo:true within the album.php page, as it still doesn't work:
$(".colorbox").colorbox({inline:true, photo:true, href:"#imagemetadata"});
Any advise most appreciated!
I was seeing the same issue with my theme based on zenpage but realised I was putting the photo:true in the wrong part of the colorbox code. It needs to be in the a.thickbox section like this:
`
//
`
This will now correctly display a full image when it has not been cached.