MyBB Community Forums

Full Version: Lightbox Image Gallery Plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
This is my first plugin, so I want to submit it for some peer review before submitting it to the download mods.

### PURPOSE ###
Adds a page to your forum for showing a Lightbox Image Gallery

This mod uses the Lightbox Javascript library developed here:
http://www.huddletogether.com/projects/lightbox2/

Small demo here:
http://communalgraffiti.com/misc.php?action=lightbox

Download here:
http://OwnYourPhone.com/tools
Well i tried this but it doesn't show up to activate the pluggin
OK, I just tested it again and for some strange reason, the plugin I put in the zip is named lightbox_page.php, while the one I am using now is called lightbox.php. There appear to be no file differences besides the name of the plugin file but it looks like lightbox_page.php doesn't show up while lightbox.php does.

Try downloading the new one (I changed the link on the download page to v1.1)
OR
Just change the name of the plugin to lightbox.php instead of lightbox_page.php

Let me know if that doesn't work (it still doesn't make sense to me why this is happening).
Ok it works but doesn't check here and you will see what i mean.

http://www.tussaudtimes.co.uk/misc.php?action=lightbox
ah, I see. That would be because it's still a simple script and I didn't bother to make it a good one Smile
It's waiting for all the images to load before it runs the lightbox parsing code. So it only works after the page is finished loading.

it also seems that you are missing the images that came with the script (images/next.gif and so on)

I'll be adding on a thumbnail generator for the script in the next couple of days so that it will run much faster (and it should look a lot better too).
Right i see it seems to be working much better now.

Is there any way i can change the name so it says Gallery instead of Tussaud Times - More than just theme parks Lightbox Gallery

How far do you intend to make this mod, do you intend to make it a full image gallery.
Hey, sorry for the delay, to answer your first question:

in the plugin file "lightbox.php", locate the following line:

<td class="thead"><strong>{\$mybb->settings['bbname']} Lightbox Gallery</strong></td>

just remove the bbname part.

As for adding on to this script, I'm actually thinking of moving over to another gallery app. TripTracker has a pretty awesome one:
http://blog.triptracker.net/2006/09/08/r...slideshow/

or I might use Plogger:
http://www.plogger.org/demo/index.php

I'm going to start poking around them, I think I'm going to end development (even at this early stage) for now on the lightbox page. If anyone wants to continue it, it's totally open.
actually, nevermind. I'm going to continue developing it. It looks like there's a pretty big need for it. Although if anyone wants to help, you are welcome to. Currently, I'm adding the thumbnail generation and cleaning up some code. I'll make another release later today.
OK, here it is:

I updated the lightbox plugin to automatically generate thumbnails in [imagefolder]/thumbs/
If the thumbs dir is not present, it will create it.

If you modify the size of your thumbnail images, you might want to delete the thumbs folder and run the page again to recreate them. The script will only recreate the thumbs if the files don't already exist.

Demo here:
http://min3.net/forum/misc.php?action=lightbox

I also added a new plugin with the TripTracker Lightbox Gallery

Demo here:
http://communalgraffiti.com/misc.php?action=ttbox

Download either one here:
http://OwnYourPhone.com/tools
I get an error message when tring to view the triptracker demo - Content Encoding Error (content_encoding_error)

Do you plan on adding any of these features into the light box mod -

Ablility for members to upload images
Categories  
Comments
Rating Images
Ability to up load .swf files
Watermark images
Pages: 1 2 3