Member
Member
frankm   2010-05-11, 08:30
#1

i have set up my gallery so that when one clicks on a medium size thumb, the full image opens in colorbox.
for some reason it only works if i give the unprotected image url as an href with the "getUnprotectedImageURL( )" function.

if i use the "getFullImageURL()" function or the "htmlspecialchars(getFullImageURL())" function, the image opens in colorbox but not as an image. instead i have the file as if i was editing it with an editor. for me there is some kind of content-type header missing or more certainly i am doing something completly stupid !

thanks for your help.
frank.

Administrator
Administrator
acrylian   2010-05-11, 09:14
#2

It does not work with the protectedimageurl for obvious reason. If colorbox or anything else wants access to the full image it of course needs to be protected.

If you want to open the protected image which is loaded in a page you have to configure colorbox to use the iFrame mode. (I have not tried that actually).

Member
Member
frankm   2010-05-11, 09:43
#3

well thanks i'll try that see if i can get it to work.

Member
Member
frankm   2010-05-11, 23:36
#4

for those who are interested to display an full image inside colorbox. if you want to use the protected image url that you get with the "getFullImageURL()" function you need to use the key object/parameter "photo" with the value "true" when you call colorbox.

Administrator
Administrator
acrylian   2010-05-12, 09:02
#5

Interessting, thanks for trying. I will take a look and maybe that should become standard.

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