Back to vBulletin 3.6 Template Modifications

Lightbox/thickbox for attachment on CMPS module
Mod Version: 1.00, by rapidphim

This modification is in the archives.
vB Version: 3.6.8 Rating: (0 vote - 0 average) Installs: 1
Released: 15 Oct 2007 Last Update: Never Downloads: 2
Not Supported Uses Plugins Template Edits Code Changes Additional Files  

This is my first add-on ever for vBulletin. Not sure if anyone ever posted this but here is the purpose of this add-on.

In order to have this add-on, you first need:

1/ http://www.vbadvanced.com/
2/ http://www.vbadvanced.com/forum/index.php?t=24193 by Glorify.
3/ Adding Lightbox to Attachment thumbs by imranbaig.

http://www.vshares.net/

Ok, here is how it works

1/ Go to your admincp, select your style, All style options, headinclude and put the below code at the end
Code:
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
2/ In the same style, go to Edit Template, vBadvanced CMPS Tempates, adv_portal_newsbits_attach_thumb, add on the red highlight item into your current code
<a rel="lightbox" href="$vboptions[bburl]/attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;d=$attachment[dateline]"<if condition="$show['newwindow']"> target="_blank"</if>><img src="$vboptions[bburl]/attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;stc=1&amp;thumb=1&amp;d=$attachment[thumbnail_dateline]" class="thumbnail" border="0" alt="<phrase 1="$attachment[filename]" 2="$attachment[counter]" 3="$attachment[filesize]" 4="$attachment[attachmentid]">$vbphrase[image_larger_version_x_y_z]</phrase>" /></a> &nbsp;
3/ Download, unzip and upload the files from this link:
Adding Lightbox to Attachment thumbs
Please keep the folders intact.

And that's it and thanks for reading this.

Download

No files for download.

Screenshots

Click image for larger version
Name:	screenshot1.jpg
Views:	187
Size:	125.2 KB
ID:	71105   Click image for larger version
Name:	screenshot2.jpg
Views:	159
Size:	27.6 KB
ID:	71106  

Similar Mods

Lightbox/ThickBox works with Inline Editing vBulletin 3.6 Template Modifications
vBPicGallery + Lightbox/Thickbox vBulletin 3.6 Template Modifications
vBa CMPS: Attachment Stats Module vBulletin 3.5 Add-ons
vBa CMPS: Attachment Stats Module vBulletin 3.0 Full Releases

vblts.ru supports vBulletin®, 2022-2024