hi,
i have an issue with colorbox and zenphoto 1.4
i've been trying to find an explanation for some time now but to no avail.
the thing is, when i am logged in as administrator, everything works fine. the images display properly in the box. now when i am not logged in, the images refuse to load. all i get is the never ending spinning wheel in the box.
no metter what i do, it is only working when i'm logged in. i have absolutely no clue on what and where to look for. if anyone had the problem and found the solution, i'll be glad to hear it.
frank
Comments
I can't reproduce it with 1.4 and the Zenpage theme at all.
i've tried many things and here is what i found so far. looking at the image page,
colorbox works fine with zenpage because it uses the unprotected image url (`getUnprotectedImageURL` in the $tburl variable).
the thing is, it used to be ok to use the full image url (`getFullImageURL`) as long as we made sure to add the `photo: true` option in the colorbox initialization. but obviously this now only works when we are logged in.
i'd rather use the full url and not the unprotected as this clearly appears in the code source of the webpage. and if someone type directly the full address in his browser navigation bar, it goes nowhere (blank page) whereas with the unprotected url he gets access to the unprotected image (no watermarking for instance).
you can reproduce this behavior with the zenpage theme by replacing `getUnprotectedImageURL` by `getFullImageURL` on line 68 of the image.php file and by adding `photo: true` in the box init script in the same file (line 19). log in as admin, everything is fine. log out and you get the never ending spinning wheel in the box. maybe there has been a change in the full-image.php script that does the difference between being logged or not.
maybe there is a way around with htaccess to avoid people having access to the unwatermarked pictures but i don't know.
frank
one more thing on colorbox though not very crucial or important but it would be nice to be able to select a CSS file of our choice. just like for the watermarks, there are the "official" ones but we can design our own and put them in the appropriate directory. could we imagine the same for the colorbox CSS ?
anyway this i can do for myself but i was thinking for a future release.
You will be able to place a colorbox/colorbox.css file in one of two places to acomplish this. In your theme folder or in the user plugin folder. Your choice, but the theme folder takes precedence.