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
I forgot to update the demo URL here:

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

I am planning to sift through sub directories to come up with a list of categories. I would like it to have uploading, rating and comments, but I don't think I have time to do it myself.
As for .swf files and watermarking, I'm not against it, but I won't be developing those features myself.
Any updates on this?
Sorry, been extremely busy. Just painted my house and working on my business.
I won't be working on this for a while. Leaving for Thailand from middle of June to middle of July. I don't think I'm going to have time before then--and when I get back, I'm going to be even more busy than now.

If anyone wants to do any development on this, you are more than welcome.
I'll start working on this. not sure if I will expand on your code, or just start over, but I'll volunteer to get this going.
Great stuff this will be such a popular plugin
Ok, I ended up getting sick of my other work and wanting to add more to the gallery on my graffiti site, so I made a better version of the Trip Tracker Lightblox gallery:

http://ownyourphone.com/downloads/lightb...y_v2.1.zip
Demo for non-admin view here: http://communalgraffiti.com/misc.php?action=ttbox

So, if you are planning to modify the script that I already made and haven't started yet, you might want to grab that new version. It has some big additions and some tiny fixes for thumbnail sizing too.

Now, it generates a drop down list of multiple galleries based on the main gallery directory, as follows:

All folders within the main directory that are named *.img will be indexed as seperate galleries. The config for the mod should have an option to turn this on and specify the extension of folders to index, but I was lazy.

gallery folder:
./img/gallery/

galleries:
./img/gallery/Graffiti.img/
./img/gallery/Family.img/
./img/gallery/House.img/


not indexed:
./img/gallery/temp/

Also, I added admin functions, so the site admin (userid 1) will see delete buttons and a dropdown for moving the files to different gallery folders. (the dropdowns don't say what they do and there isn't any kind of confirm popup for deleting files, which would make a better user experience--actually a switch to enable/disable a delete warning would even be better).
Just one bug i have found, If i click on Help in my nav bar i get this error - wrong input (help should be ttbox)

Good work so far. Would it be possible to add a feature for members to upload images.
oops, my bad. I forgot I was experimenting with the two versions:

you can fix that by removing this line:

echo 'wrong input ('.$mybb->input['action'].' should be ttbox)';

I just fixed it and uploaded the new one in the 2.1 release (I'm too lazy to version it up):
http://ownyourphone.com/tools

You don't need to deactivate-activate the plugin, just upload the new ttbox.php file.
Thanks for the update works perfectly.

You have started a great mod here and it would be a shame not to progress it further. It would be good to see the option for members to add photos to the gallery. Also leave comments on the photos. ANother great feature would be categories.

I hope you keep up the good work and develope this further. Thanks for your help so far.
cool, that's why I love open source code. Maybe KingButter will add some great features. I've got 11 days until I go to Thailand for a month so I've got to get back to my regular work.
If I get around to image uploads before I go, I'll post it and maybe KingButter and I can merge our code (if he's working on it).

Thanks
Pages: 1 2 3