rapidphim
10-14-2007, 10:00 PM
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/ vBadvance CMPS (http://www.vbadvanced.com/)
2/ 3.6.x - Attachments with alternating left/right images (http://www.vbadvanced.com/forum/showthread.php?t=24193) by Glorify.
3/ Adding Lightbox to Attachment thumbs (https://vborg.vbsupport.ru/showthread.php?t=123235) by imranbaig.
DEMO (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
<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]&d=$attachment[dateline]"<if condition="$show['newwindow']"> target="_blank"</if>><img src="$vboptions[bburl]/attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&stc=1&thumb=1&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>
3/ Download, unzip and upload the files from this link:
https://vborg.vbsupport.ru/showthread.php?t=123235
Please keep the folders intact.
And that's it and thanks for reading this.
In order to have this add-on, you first need:
1/ vBadvance CMPS (http://www.vbadvanced.com/)
2/ 3.6.x - Attachments with alternating left/right images (http://www.vbadvanced.com/forum/showthread.php?t=24193) by Glorify.
3/ Adding Lightbox to Attachment thumbs (https://vborg.vbsupport.ru/showthread.php?t=123235) by imranbaig.
DEMO (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
<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]&d=$attachment[dateline]"<if condition="$show['newwindow']"> target="_blank"</if>><img src="$vboptions[bburl]/attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&stc=1&thumb=1&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>
3/ Download, unzip and upload the files from this link:
https://vborg.vbsupport.ru/showthread.php?t=123235
Please keep the folders intact.
And that's it and thanks for reading this.