Welcome, Guest. Please login or register.
March 17, 2010, 10:05:54 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
110308 Posts in 15930 Topics by 9286 Members
Latest Member: lorbas
* Home Help Search Login Register
+  WebsiteBaker Community Forum
|-+  English
| |-+  Modules (Moderators: Argos, BerndJM)
| | |-+  New Module: Lightbox
Pages: [1] 2 3 ... 5 Go Down Print
Author Topic: New Module: Lightbox  (Read 29698 times)
cthamer

Offline Offline

Posts: 20


« on: November 13, 2007, 12:05:38 AM »

Module Lightbox - for WB 2.6.x

Purpose:  This modules adds support for the Lightbox image gallery Javascript to Website Baker.

Installation: Download the ZIP and install it in the Websitebaker Administration (Add-ons -> Modules -> Install Module).

It is intended to be easy to use. To use it create a new page of the type "Lightbox". All the settings are on the Modify Page and should be self explanatory. Thumbnails will be created the first time the page is viewed.

Compatibility: I've tested it on IE 7 on Windows, in FF 2.0.0.9 on Windows .

License: GNU General Public License.  The Javascript files are Licensed under the Creative Commons Attribution 2.5 License - http://creativecommons.org/licenses/by/2.5/.

http://forum.websitebaker.org/index.php?action=dlattach;topic=7822.0;attach=1417

August 21, 2008 - I have also attached a user modified version of this module with Dutch and German language files. I have not tested this version. Let me know if there are any problems.
« Last Edit: August 21, 2008, 07:50:37 PM by cthamer » Logged
gillweb

Offline Offline

Posts: 78



« Reply #1 on: November 14, 2007, 02:02:02 AM »

does this Mod allow you to add a Lightbox image to any page or just a page if it's own?
Logged
cthamer

Offline Offline

Posts: 20


« Reply #2 on: November 14, 2007, 03:07:46 AM »

Currently it just allows you to create a lightbox page. You can't add a lightbox section to an existing page.

« Last Edit: August 01, 2009, 07:20:56 AM by cthamer » Logged
cthamer

Offline Offline

Posts: 20


« Reply #3 on: November 14, 2007, 03:48:51 AM »

The module link in the original posting has been updated to reflect a couple of bug fixes such as comments left on in the output and an incorrect path setting for the GD class.
Logged
Adem

Offline Offline

Posts: 6


« Reply #4 on: November 14, 2007, 09:56:30 AM »

I was looking for a lightbox module and this does the trick. cheers.

I do have one problem though...

In IE the prev/next/close buttons show up but in Firefox they don't show up.

Any clues?
Logged
freeSbee

Offline Offline

Posts: 525


WWW
« Reply #5 on: November 14, 2007, 11:31:58 AM »

Hi Christian

Great! I love your module!

Suggestion: The default values of "number of columns" and "number of rows" are 0. If somebody forgets to modify them the module isn't working and he gets a php warning...
Warning: Division by zero in /home/www/web111/html/wb/modules/lightbox/view.php on line 139
To avoid this you could set the default values to 1 or check if the values of $img_rows or $img_columns > 0

Christoph
Logged
Adem

Offline Offline

Posts: 6


« Reply #6 on: November 14, 2007, 12:49:17 PM »

the prev/next/close graphics are now working after I changed the paths in the css.
Logged
cthamer

Offline Offline

Posts: 20


« Reply #7 on: November 14, 2007, 05:51:44 PM »

Hi Christian

Great! I love your module!

Suggestion: The default values of "number of columns" and "number of rows" are 0. If somebody forgets to modify them the module isn't working and he gets a php warning...
Warning: Division by zero in /home/www/web111/html/wb/modules/lightbox/view.php on line 139
To avoid this you could set the default values to 1 or check if the values of $img_rows or $img_columns > 0

Christoph

Thanks for the tip, I will change it to default to 4 col 3 row which seems like a reasonable start. In addition I set the default thumbnail width to 100. The download has been updated in my original post.
« Last Edit: November 14, 2007, 06:34:10 PM by cthamer » Logged
wwwMARKLEYcouk

Offline Offline

Posts: 287



WWW
« Reply #8 on: November 15, 2007, 10:13:29 AM »

thanks Smiley another nice gallery to play with
Logged

http://www.markley.co.uk
webhosting packages available
tomhung

Offline Offline

Posts: 352



« Reply #9 on: November 16, 2007, 03:18:28 PM »

be aware that this module conflicts with another lightbox module.  the problem is they both use the same directory name, and table names.

http://forum.websitebaker.org/index.php/topic,4036.0.html

Please make a change to this one so we can run them both.

G
Logged
cthamer

Offline Offline

Posts: 20


« Reply #10 on: November 17, 2007, 10:23:19 PM »

be aware that this module conflicts with another lightbox module.  the problem is they both use the same directory name, and table names.

http://forum.websitebaker.org/index.php/topic,4036.0.html

Please make a change to this one so we can run them both.

G

Ok, I have updated the code so that it won't conflict with the other module. See the original post for the file. Let me know if you have any problems as I don't have that other module installed.
Logged
frankyboy

Offline Offline

Posts: 106



WWW
« Reply #11 on: November 18, 2007, 08:56:10 AM »

great module, but:
I would like to lobby for a backend solution to deactivate the slide-show of the pics.
thx,
frank
Logged

burki

Offline Offline

Posts: 136


bake...bake...


« Reply #12 on: November 22, 2007, 06:58:26 PM »

uuuuh, Wink i was working on that mod by my self... thanks a lot, you safed a lot of workig hours for me  cheesy its a great mod and its running quite well, do Smiley thanks!

chris
Logged

CHEERS
lifeguard

Offline Offline

Posts: 1


« Reply #13 on: November 23, 2007, 08:05:40 PM »

great module!

But where can i change the language of this module?
Logged
cthamer

Offline Offline

Posts: 20


« Reply #14 on: November 23, 2007, 08:15:40 PM »

I did not add any support for extra languages as I just didn't have the time.
Logged
gmiernicki

Offline Offline

Posts: 10


« Reply #15 on: November 28, 2007, 02:27:34 PM »

I hope I'm not going blind, but I don't see a link to download this anywhere, just a link to the Creative Commons License!  huh
Logged
cthamer

Offline Offline

Posts: 20


« Reply #16 on: November 28, 2007, 06:05:37 PM »

I hope I'm not going blind, but I don't see a link to download this anywhere, just a link to the Creative Commons License!  huh

You may have to be logged in to see the link in the original post. I added it to the main text as well but you will still have to log in to download it.
Logged
gmiernicki

Offline Offline

Posts: 10


« Reply #17 on: November 28, 2007, 07:47:39 PM »

I hope I'm not going blind, but I don't see a link to download this anywhere, just a link to the Creative Commons License!  huh

You may have to be logged in to see the link in the original post. I added it to the main text as well but you will still have to log in to download it.

Yep, that did it. I registered just to post and didn't think to look for that.

Best Regards!
Logged
gmiernicki

Offline Offline

Posts: 10


« Reply #18 on: December 07, 2007, 09:15:12 PM »

running into some problems with the usage of this  afro module. when i use the code the way it is, clicking on images does not open a lightbox, it just navigates to the image in the browser.

when i replace the 3 <script> lines in the code with direct links to the scriptaculous/prototype/lightbox libraries on your demo site, it will work.

stumped, and its 5pm on my workday, which could be the reason im relucatant to try anyt further debugging...

any ideas? huh
Logged
gmiernicki

Offline Offline

Posts: 10


« Reply #19 on: December 11, 2007, 02:07:46 PM »

DOUBLE POST!   shocked

Im taking this module and gonna mash it up with another for a new gallery, more news next week Smiley
« Last Edit: December 12, 2007, 11:11:37 PM by gmiernicki » Logged
paljasken

Offline Offline

Posts: 14


« Reply #20 on: December 19, 2007, 12:55:22 PM »

The javascript seems to wrok fine with me, but I can't see the prev and next buttons, and also the close button is a red cross. Where do I change this?
http://www.jonatan.be/pages/fotos/kippen.php
Logged
Luckyluke

Offline Offline

Posts: 552


Let's Rock


« Reply #21 on: December 19, 2007, 08:35:21 PM »

The javascript seems to wrok fine with me, but I can't see the prev and next buttons, and also the close button is a red cross. Where do I change this?
http://www.jonatan.be/pages/fotos/kippen.php
@Paljasken: staat het bestand "closelabel.gif" in de map ../modules/lightbox/images/closelabel.gif ?
Je moet daar eens gaan zien. Misschien heb je het hernoemt of zelfs gewist.

Nog eventjes bij vermelden: op http://help.websitebaker.org/pages/nl/welkom.php zie je de Nederlandstalige documentatie. Met dank aan Eki !!!

Groetjes uit Brugge,
Luc
« Last Edit: December 19, 2007, 08:43:36 PM by Luckyluke » Logged
sparkdigital

Offline Offline

Posts: 252


Once a baker, always a baker!


WWW
« Reply #22 on: March 05, 2008, 09:01:32 PM »

Love this module, thanks for all the hard work. I've used it as a section on another page and this is no problem:

http://www.romanticretreats.co.uk/pages/find-a-cottage/isle-of-wight/east-wing-at-stockbridge-manor.php

However, the lightbox doesn't seem to work in all versions of IE7 - any ideas?

Thank you,

Konrad
Logged
paljasken

Offline Offline

Posts: 14


« Reply #23 on: March 05, 2008, 09:23:44 PM »

The javascript seems to wrok fine with me, but I can't see the prev and next buttons, and also the close button is a red cross. Where do I change this?
http://www.jonatan.be/pages/fotos/kippen.php

I haven't figured it out yet, but i know for sure it's a template issue. With other templates on the same site, the problems not there.
Logged
Ruud
Development Team
******
Offline Offline

Posts: 1271


[[droplets]]


WWW
« Reply #24 on: March 05, 2008, 11:12:46 PM »

The javascript seems to wrok fine with me, but I can't see the prev and next buttons, and also the close button is a red cross. Where do I change this?
http://www.jonatan.be/pages/fotos/kippen.php

I haven't figured it out yet, but i know for sure it's a template issue. With other templates on the same site, the problems not there.

Your kippen.php page has a small piece of CSS code in it. There it creates the links to the images.
They link to
Quote
They shoud link to
Quote

Groeten,

Ruud
Logged

Pages: [1] 2 3 ... 5 Go Up Print 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!