Back to vBulletin 3.6 Template Modifications

vBPicGallery + Lightbox/Thickbox
Mod Version: 1.00, by |oR|Greg

This modification is in the archives.
vB Version: 3.6.0 Rating: (2 votes - 5.00 average) Installs: 14
Released: 18 Sep 2006 Last Update: 03 Nov 2006 Downloads: 72
Not Supported Template Edits  

If you're using http://www.cpurigs.com/forums/index.php?t=2056 and you're using Redlines Lightbox/Thickbox, here's how to make them work together if you wish to include a lightbox for viewing your images in your galleries.

Template edits 3:

In vbpicgallery_imagebits replace all the code with the following:

Code:
<a rel="gallery-thumbs" class="thickbox" style="cursor:pointer; cursor-hand" href="$vboptions[bburl]/vbpgimage.php?$session[sessionurl]do=full&amp;p=$image[vbpicgalleryid]">
<img src="$vboptions[bburl]/vbpgimage.php?do=thumb&amp;p=$image[vbpicgalleryid]" alt="$image[name]" border="0" />
</a>
In vbpicgallery_viewgallery after $navbar add:

Code:
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/thickbox.js"></script>
In headinclude find:

Code:
<if condition="THIS_SCRIPT=='showthread' OR THIS_SCRIPT=='showpost'">
Replace it with:

Code:
<if condition="THIS_SCRIPT=='showthread' OR THIS_SCRIPT=='showpost' OR THIS_SCRIPT=='vbpicgallery'">
That should do it, you should get results like these attached images.

UPDATE:

I have included a .js file to replace the file in http://www.yoursite/forums/js

thickbox.js in the zip file comments out the Prev Next buttons in the thickbox because of some TB_Count errors they generate on newer versions of vBPicGallery.

Unzip the file and copy it up to your http://www.yoursite/forums/js directory, overwriting the one there.

Download

This modification is archived, downloads are still allowed.

File Type: %1$s thickbox.zip (2.6 KB, 98 downloads)

Screenshots

Click image for larger version
Name:	AMAClightbox.JPG
Views:	926
Size:	167.1 KB
ID:	53604   Click image for larger version
Name:	AMAClightbox2.JPG
Views:	509
Size:	164.2 KB
ID:	53605  

Similar Mods

Lightbox/ThickBox works with Inline Editing vBulletin 3.6 Template Modifications
Add-On Releases Lightbox/thickbox for attachment on CMPS module vBulletin 3.6 Template Modifications

vblts.ru supports vBulletin®, 2022-2024