Full image in colorbox

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.

Comments

  • acrylian Administrator, Developer
    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).
  • frankm Member
    well thanks i'll try that see if i can get it to work.
  • frankm Member
    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.
  • acrylian Administrator, Developer
    Interessting, thanks for trying. I will take a look and maybe that should become standard.
Sign In or Register to comment.