Advertisement:

Navigation

SMF Mod Site

Mod Name:
jQLightbox
Created By:
slinouille
Type:
New Feature
First Created:
January 24, 2009, 01:55:05 AM
Last Modified:
December 11, 2010, 06:31:17 AM
Latest Version:
0.6
Compatible With:
2.0 RC4
Total Downloads:
7345

Download this mod

jQLightbox.0.3.zip (62kB) [1532]
jQLightbox.0.5.zip (119kB) [479]
jQLightbox.0.5.1.zip (119kB) [2124]
jQLightbox.0.6.zip (107kB) [2383]
Manual Install Instructions for SMF


Below are some preview images of what the mod looks like when being used

Description:


jQLightbox v0.6
By Slinouille

Introduction
The mod adds a real lightbox feature to all images in your forum.
jQLightbox mod uses:
- jQuery javascript library : http://jquery.com/ - v1.4.2
- jQuery prettyPhoto pluggin from http://www.no-margin-for-errors.com/projects/prettyPhoto/. - 3.0

Features
o Activation in admin control panel
o Nice lightbox effect
o Multiple images are displayed as a gallery
o Automatic image resize to fit the user's screen
o No conflict with other javascript libraries you could use
o Admin can parameter autoresize, padding on each side of picture, opacity, animation speed and a theme.

Installation
Simply install the package to install this modification on the SMF Default Core theme.
Manual edits will be required for other themes.

Note: If you want to use also AttachmentInMessage mod, please install "jQLightbox pluggin for AIM" mod after

This mod is compatible with SMF 2.0 RC4 Public and above only.

Installation with AttachmentsInMessage modification
If you want to use jQLightbox modification with AttachmentsInMessage mod, I recommand to first install AttachmentsInMessage and after jQLightbox.
After what, follow next instructions:
o Open Sources/Display.php
o Find line
$inlinedtext = '<a href="' . $attachment['href'] . ';image" id="link_' . $attachment['id'] . '" onclick="'. $attachment['thumbnail']['javascript']. '"><img src="'. $attachment['thumbnail']['href']. '" alt="" id="thumb_'. $attachment['id']. '" border="1" class="outsb" class="inlined_img" /></a>';
o Replace by
$inlinedtext = '<a href="' . $attachment['href'] . ';image" id="link_' . $attachment['id'] . '" rel="lightbox[gallery]"><img src="'. $attachment['thumbnail']['href']. '" alt="" id="thumb_'. $attachment['id']. '" border="1" class="outsb" class="inlined_img" /></a>';

Support
Please use the modification thread for support with this modification.

Translations are welcome :-)

Changelog
0.6.0 - 11th December 2010
o Compliance check with SMF 2.0 RC4.
o New theme "Facebook like"

0.5.0 - 22th March 2009
o Compatibility with other javascripts library tested (needed if using other SMF mods such as nneonneo's AJAX ShoutBox)

0.4.0 - 16th February 2009
o Correction of resizing functionality
o Some minor code optimization

0.3.0 - 16th February 2009
o 3 themes are available for lightbox
o Correcting undefined index errors in "Errors log"

0.2.0 - 29th January 2009
o Add some possible customizations of lightbox through admin panel

0.1.0 - 24th January 2009
o Initial release