Member
Member
pinksparklegirl   09-01-2012, 20:48
#1

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:

Member
Member
sbillard   09-01-2012, 21:42
#2

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.

Member
Member
pinksparklegirl   10-01-2012, 00:31
#3

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!

Administrator
Administrator
acrylian   10-01-2012, 10:33
#4

Please take a look at the standard themes to see how colorbox is setup.

Member
Member
Cas   15-02-2012, 04:23
#5

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.

Administrator
Administrator
acrylian   15-02-2012, 11:02
#6

Yes, the "thick box" was the script, which is now abandoned, we used before Colorbox so for backward compatibility we kept the class name.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.