PDA

View Full Version : Add-On Releases - Lightbox/thickbox for attachment on CMPS module


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]&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:
https://vborg.vbsupport.ru/showthread.php?t=123235
Please keep the folders intact.

And that's it and thanks for reading this.

yoyoyoyo
10-15-2007, 05:50 PM
cool idea - thanks for sharing. Would you happen to have a screenshot of such a setup? I can imagine how it might look, but would like to see an example as well.

rapidphim
10-15-2007, 06:41 PM
What set up that you'd like to see the screenshot?

yoyoyoyo
10-15-2007, 08:02 PM
I would like to see a screenshot of an example cmps module

rapidphim
10-15-2007, 08:12 PM
Set up of how it laid out on my site? sorry, I'm not quite understand the detail of your question.

yoyoyoyo
10-15-2007, 09:04 PM
nevermind