Member
Member
Jahan77   2008-12-29, 22:03
#1

Hello Everybody,

I was wondering if any of you could figure this out.

I am using thickbox, to get a pop up window (similar to lightbox), for a zenphoto gallery I've set up.

However, after I put in the code I thought was right, and click on the thumbnail, instead of the full image popping up, a window pops up containing gibberish characters.

It seems that when the link is clicked, the browser treats the image as though it were a page, and renders it thusly.

Here is the code I used in album.php:

Member
Member
Jahan77   2008-12-29, 22:06
#2

I thought I'd mention that I already tried using this:

Member
Member
Jahan77   2008-12-29, 23:18
#3

I thought I'd mention that I tested this by taking out the php, and putting a url to an existing image.

This worked - an image was displayed correctly in the thickbox window.

But this was just to test it.

It can't be a solution, since the same large image will be shown, regardless of which thumbnail I click on.

...the whole point of having a zenphoto gallery, is for it to be dynamic.

Administrator
Administrator
acrylian   2008-12-30, 11:02
#4

You need to either disable the full image protection or use the getUnprotectedFullimageURL() function (please see the functions guide for the correct spelling). The thickbox needs direct access to the full image.

Member
Member
Jahan77   2008-12-30, 17:43
#5

Thanks alot, that worked!!

One minor problem: I noticed that in firefox, when the thickbox window is activated by clicking on the thumbnail, the background doesn't darken the way it is supposed to - but the thing works normally in Safari.

Any idea why?

-Jahan

Administrator
Administrator
acrylian   2008-12-30, 17:54
#6

Don't know either there is something missing or it's a firefox thing.

Member
Member
Jahan77   2008-12-30, 18:14
#7

Oh, forgot to mention that I'm on a Mac - the problem doesn't appear on a PC, when using Firefox, only when using Firefox on a Mac.

Administrator
Administrator
acrylian   2008-12-30, 18:18
#8

Yeah, I am on Mac, too and noticed that. No idea though.

Member
Member
Jahan77   2008-12-30, 21:05
#9

Ah, I found it.

There's a file apparently missing from the Thickbox files.

It's macFFBgHack.png - I googled it, and downloaded it, and now it works.

The code for it was already there, for the hack, but this file was missing.

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