I would like to remove the caption from underneath the picture as well.
My other problems are:
1. The picture gets cut of and doesn't resize to the frame size.
2. The "From:" text does not apear.
Can anyone help?
I am using the latest version of gallery and I try to incorporate the IFRAME in my exsisting greymatter blog on another server.
I think it uses the includes to put the sidebar on all the pages and that where I have the IRFAME witht he random block.
Any help would be appreciated.
Thanks,
www.jambra.com
Posts: 38
Hi Agatka,
Your random photo is not resizing because you have not included the javascript code that gets called to do the resize.
I suggest you visit again my help page for this (http://www.barcahall.com/gallery-block-random.html) and especially follow the step: "2. Copy the companion JavaScript file into the docroot on your server, and reference it in your HTML page".
You might as well also get the latest version of my hacked variant of block-random.php file from that page while you're at it.
That should do it for you.
-Jeff
Posts: 140
HI,
I did put it before the </head> tag, however, I am using the blog script and this is also in like one of the frames or an include ... don't know exactly how it works.
Also, I thought I downloaded the laterst version, since I downloaded it just two days ago.
Thanks,
Posts: 38
Hi Agatka,
In looking further at the source for your page, I see a few problems.
1. The javascript file referenced in your script statement does not exist. (You have two occurrences of this statement, btw, with a duplicate one just above the random block itself.)
2. After you straighten that out, however, the resize will be prevented by javascript cross-domain security restrictions because your gallery and the page displaying the random block do not share a common portion in their domain names. The "fix" for this? If your gallery were on a server referenced as, say, "gallery.jambra.com" then you would set document.domain to "jambra.com" in your page and pass in "jambra.com" as the "domain" parameter to block-random.php.
Oh! I see that you and I had this same discussion last year in this thread: http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=2762
-Jeff
Posts: 140
Thanks Jeff,
Yes, I see it now. I completely forgot about it . I guess there is no way to go around this cross-domain security, or is there? How can I include the block-random.html sitting on my gallery domain on the other domain. I don't want to use the SSI. Is there any other way anybody knows of?
Jeff, what about removing the caption and showing just the "From:" text?
Thanks a lot.
Posts: 140
Hay again,
I have tried to put the block-random on the same domain and still have the same results. Neither the picture nor the iframe resize.
I don't know anymore. I put the java statement before the </head> tag and I reference my domain agatka.net on which I have the gallery (gallery.agatka.net).
htttp://gallery.agatka.net/albums1.php
Thanks,
Agata