Issue with colorbox_js - ammesiah - 2015-03-14
Hi
I have some issue using colorbox_js plugin with zenphoto.
The image displaying in gallery works just fine, as switch between image as weel.
But when I want to display a single image, I always get an error message:
This image failed to load.
I don't find any error message on apache or zenphoto log.
When I use Chrome devtools, the console shows some log (but I'm not sure it's related to the issue):
Resource interpreted as Image but transferred with MIME type text/html: "https://photos.martin.lc:8080/index.php?album=test&image=108.JPG".
Resource interpreted as Image but transferred with MIME type text/html: "https://photos.martin.lc:8080/index.php?album=test&image=105.PNG". Resource interpreted as Image but transferred with MIME type text/html: "https://photos.martin.lc:8080/index.php?album=test&image=03589202.jpg". Resource interpreted as Image but transferred with MIME type text/html: "https://photos.martin.lc:8080/index.php?album=test&image=03589202.jpg". Resource interpreted as Image but transferred with MIME type text/html: "https://photos.martin.lc:8080/index.php?album=test&image=108.JPG". Resource interpreted as Image but transferred with MIME type text/html: "https://photos.martin.lc:8080/index.php?album=test&image=035.PNG".
Zenphoto gallery available here
https://photos.martin.lc:8080/index.php?album=test
Issue with colorbox_js - acrylian - 2015-03-14
You have to use the iFrame content type on your colorbox js define as "https://photos.martin.lc:8080/index.php?album=test&image=108.JPG". is an image page and not an image. Or you have to change the link to link to the image itself. (Note this is a third party theme)
http://www.jacklmoore.com/colorbox/
Issue with colorbox_js - ammesiah - 2015-03-14
Thanks for your answer.
Isn't there a way for zenphoto to display https://photos.martin.lc:8080/index.php?album=test&image=108.JPG as a direct link to the image ? and not the index.php file displaying the image embedded ?
Issue with colorbox_js - acrylian - 2015-03-14
It's not the index.php file that will be used but image.php in this case. There is a way of course but you probably will need to modify the theme (I am not familiar with it). See the Zenpage theme's image.php as an example.
Issue with colorbox_js - ammesiah - 2015-03-14
Disabling hotlinking seems to fix the issue, full image is now displayed as expected.
|