Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

lytebox and php integration
https://www.tinywebgallery.com/forum/viewtopic.php?f=1&t=2909
Page 1 of 1

Author:  jmthewhite69 [ 27. Feb 2011, 19:49 ]
Post subject:  lytebox and php integration

Hi ! My gallery is in an Iframe and i tried to link directly to a picture details page.
ex:
http://fk13.ca/new/images/categories/in ... twg_show=x

So i integrated the iframe in "artistes.php" and use a php script to target my gallery into the iframe from external link like a dropdown menu in a seperate html file. It worked perfectly until i tried the "lytebox" feature. as soon as i click the picture no lightbox windows and my flash menu disapear.

ex:
http://fk13.ca/new/html/artistes.php?ta ... twg_show=x

p.s. second problem.. i've disabled thumbnail page but when i link directly to a picture's page, it's still there...

You may have a better way to link directly into an iframe without php??

my php code:
<!--iframe start-->
<?php
if (!isset($_GET['target'])) {$target = "http://fk13.ca/new/images/categories/index.php"; }
else {$target = $_GET['target'];}
?>
<iframe src="<?php print $target; ?>" name="target" frameborder="0" height="1000" width="1000"> </iframe>
</center>
<!--iframe end-->

and the link:
<a href="http://fk13.ca/new/html/artistes.php?target=http://fk13.ca/new/images/categories/index.php?twg_album=Groupes+de+Musique&twg_show=x">Link</a>
Really need help on this one!

Author:  TinyWebGallery [ 27. Feb 2011, 20:03 ]
Post subject:  Re: lytebox and php integration

for the lytebox you have to integrate the css of lytebox into you main page.
See the howto about lightbox.

- Michael

Author:  jmthewhite69 [ 27. Feb 2011, 20:36 ]
Post subject:  Re: lytebox and php integration

it's embarrassing when the answer is simply in the how-to section!! lol
it worked! Thanks

very quick response by the way!!!

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/