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

How to use the lightbox feature
https://www.tinywebgallery.com/forum/viewtopic.php?f=1&t=340
Page 1 of 1

Author:  Olox [ 29. May 2006, 08:35 ]
Post subject:  How to use the lightbox feature

Hello,
I want to use the lightbox feature on the Image page. I am registered, read the how-to 33 and added "$activate_lightbox_image=true;" in "my_config.php".
But nothing happens. There isn´t "lighbox/css/lightbox.css", too.
Do I have to download this programm somewhere else? How do I make it work?

Author:  TinyWebGallery [ 29. May 2006, 09:31 ]
Post subject: 

you need 1.4.2 for this - I have included this from this version on.
lighbox/css/lightbox.css should be in the download of this version.
I just rechecked the download. It's in there ;).

And no you cannot use the original lighbox script because I fixed some bugs and made some enhancements to make it nicely work with TWG.

The entry in the config seems good to me ;).

In the download is the config of demo1 where I activated it too.
You can find it at examples/my_config.php_demo1.txt

/Michael

Author:  Olox [ 29. May 2006, 12:28 ]
Post subject: 

ah...! Yes, that´s it!
I´ve downloaded TWG on the 16th may and have not expected that there is a newer version already... :wink:
Now I have "lighbox/css/lightbox.css"
Thanx for the quick reply!!!

Author:  Olox [ 30. May 2006, 08:18 ]
Post subject: 

hi, it´s me again...
I have updated the twg and the lightbox works, but there are still some things I want to ask:
1. Is there a way to activate the "forward/ backward" funktion of the lightbox in the imageview? In the thumbnail view it works, but not in the imageview...
2. It is always shown the first caption, even if you´re watching the 10th picture. I have set the "use-filename-as-caption" funktion tu true.
3. Is it possible when using the tgw in an i-frame to let the lightbox the whole screen fade to black wehen clicking on a picture, not just the i-frame? I have tried the include()php, witch does fade the whole screen, but therefore I have a problem with my navigation. The "index.php" looks fine, but when klicking on an album to choose it, this distroyes my navigation that is written in JavaScript: the background is still there but the text in the div´s not. When clicking the "back" button on the browser everything is fine...

Author:  TinyWebGallery [ 30. May 2006, 08:49 ]
Post subject: 

Hi,

1. it's not possible in the image view because the lighbox script can only show images that are already shown - and I haven't sucessfully attached the lightbox script to the moving thumbs strip.

2. true - I don't change the alt text in dhtml - I have to change that in the next build. I'll let you know when this is fixed.

3.
no it's not - an iframe is like it's own page. using php include is the only way. with the navigation I think maybe css is interfering. have you made global settings in the css or really defined them for each element?

/Michael

Author:  TinyWebGallery [ 30. May 2006, 09:06 ]
Post subject: 

redownload TWG 1.4.2 and replace the
inc/image.inc.php and
inc/cmotiongallery.inc.php

and the captions are changed in the lightbox too.

I checked about the lightbox right/left in the image view. It is not possible because the lighbox uses the existing href of a link. The thumbs don't have a nice link but only a javascript function. I think I would have to change the lighbox sript at many point to get this to work ....

/Michael

Author:  Olox [ 30. May 2006, 09:07 ]
Post subject: 

Ohhh...

I don´t know (...what you mean...)...
I am not a progammer, I am a -"copy + paste" and then editing the script in the "try and error" way- guy...
The script for the navigation is from dynamicdrive... I think you kwon them :wink:

my original page: http://www.olox.de
(bis jetzt nur JavaScript mit 2 Frames- aber ich arbeite daran...)

well, I will try it with include()

Author:  TinyWebGallery [ 30. May 2006, 09:24 ]
Post subject: 

Hi,

you could try something else.

TWG includes a header.htm and a footer.htm

if you put a table in header.htm like

<table cellpadding='0' cellspacing='0' height="100%" width="100%"><tr><td>the javascript for the left navigation</td><td><table cellpadding='0' cellspacing='0' height="100%" width="100%">

and in footer.htm like

</table></td></tr></table>

you can include your javascript navigation. but I don't know how good the navigation is because it would have to keep track of his onw state (that you see still the selection of the menu!).

With this solution you can e.g. make twg only to have only 90% of width or height ;).


/Michael

Author:  Olox [ 30. May 2006, 09:35 ]
Post subject: 

hey

good idea!
I will try! Results tomorrow...! :lol:

Author:  Olox [ 30. May 2006, 23:44 ]
Post subject: 

hello!

I´ve tried and tried...
The javascript of the navigation have to be seperated form the twg... So I have done it the other way round! I´ve made a new php side where I included the index.php of twg- and the navigation in an I-frame...
However is the iframe in opera in the forground, but in ie it works (it says "Fehler auf der Seite" on the index.php page, but everything works fine...!)

#removed_broken_link

...it is still a working tile!!!

Author:  TinyWebGallery [ 31. May 2006, 00:05 ]
Post subject: 

The idae with the iframe for the navigation is good - But I still would put this in header.htm and footer.htm.

I have checked your site with Firefox and it does not look optimal yet.

/Michael

Author:  Olox [ 7. Jun 2006, 09:13 ]
Post subject: 

Hi!
Everything works fine (in ie) so far, but there is one little thing: sometimes when clicking on the small image to get the big one in the lightbox, there isn´t the "close"- picture shown in the right corner...
Closing the window works all the time, but the "close" image is only shown sometimes . And why sometimes? I don´t like things that works "sometimes"...

#removed_broken_link

Author:  Guest [ 7. Jun 2006, 10:08 ]
Post subject: 

I tried and I always get the close button.
Thats hard to track down.

if FF you can click on the image to close it - but ie handles this differently...
I think you know that the description in ff is shown behind the images!

/Michael

Author:  TinyWebGallery [ 7. Jun 2006, 11:51 ]
Post subject: 

I have added the support to close the image in ie by clicking on the image too. And esc closes it.

x did close the image before already - I will release this sometimes next week :) - it will be 1.4.2.1.

/Michael

Author:  Olox [ 8. Jun 2006, 11:11 ]
Post subject: 

Thanx for that!
And maybe I will modify the code for ff next week...

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