Member
Member
ammesiah   2015-03-14, 11:32
#1
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
Administrator
Administrator
acrylian   2015-03-14, 11:54
#2
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/
Member
Member
ammesiah   2015-03-14, 12:18
#3
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 ?
Administrator
Administrator
acrylian   2015-03-14, 13:28
#4
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.
Member
Member
ammesiah   2015-03-14, 14:44
#5
Disabling hotlinking seems to fix the issue, full image is now displayed as expected.
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.