The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Adding Lightbox to Attachment thumbs Details »» | |||||||||||||||||||||||||
Adding Lightbox to Attachment thumbs
Overview Lightbox JS is a simple, unobtrusive script used to overlay images on the current page. It's a snap to setup and works on all modern browsers. -This hack allows you to add the famous lightbox to attachment thumbnails. - This makes users see attached images easilly, without having to open another page. - It can be completly customised, to fit into your skin design, from css. Installation - Very easy. Download and upload the contents of upload folder into your forum root. Template Edits. Step1: Open headinclude, and insert this inside <heade></head> 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" /> Step2: Now Open postbit_attachmentthumbnail Find: Code:
<a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&d=$attachment[dateline]"<if condition="$show['newwindow']"> target="_blank"</if>><img class="thumbnail" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&stc=1&thumb=1&d=$attachment[thumbnail_dateline]" 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> <if condition="$show['br']"><br /><br /></if> Code:
<a rel="lightbox" href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&d=$attachment[dateline]"<if condition="$show['newwindow']"> target="_blank"</if>><img class="thumbnail" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&stc=1&thumb=1&d=$attachment[thumbnail_dateline]" 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> <if condition="$show['br']"><br /><br /></if> Demo: http://forums.winkeyfinder.com/showthread.php?p=1502 Note: It doesn't work if I click an image link before the page has finished loading. The script is activated only after the page has finished loading. Thank you! All the Credit goes to huddletogether.com, for devloping such a beautifull script. Show Your Support
|
Comments |
#72
|
|||
|
|||
This worked for me!! Thanks
|
#73
|
|||
|
|||
I am using vbulletin 3.6.8 and i dont find <heade></head> in headinclude
any solution? |
#74
|
||||
|
||||
is there any way to make the images open up at say 600px x 600px
and have an enlarge button i installed it and some members images are massive and blow full size i need to control this uninstalled till i get some info nice work by the way |
#75
|
|||
|
|||
Same here ...
|
#76
|
|||
|
|||
you dont need to put it between <head></head> just place anywhere in the headerinclude, here is what my code looks like..
Code:
<if condition="THIS_SCRIPT == 'showthread'"> <script type="text/javascript" src="clientscript/prototype.js"></script> <script type="text/javascript" src="clientscript/scriptaculous.js?load=effects"></script> <script type="text/javascript" src="clientscript/lightbox.js"></script> <link rel="stylesheet" href="clientscript/vbulletin_css/lightbox.css" type="text/css" media="screen" /></if> |
#77
|
|||
|
|||
The Demo link for this says I have to post at least 'two' messages to be able to see the any attachments?
Uh... pass! |
#78
|
|||
|
|||
Apparently this also makes it so IE users can't post. At least that's what it does on vB3.6.8. PL2.
I'm looking into fixing it, but for now I must uninstall it from my main site. |
#79
|
|||
|
|||
MQuote doesn't work with this Mod !!!!
|
#80
|
|||
|
|||
|
#81
|
|||
|
|||
Hi I'm not sure this is the right place to post but I've got a problem...
I'm running now the 3.7 on my forum and this version should have this wonderful hack integrated. It seems to be so since I found and activated this option in ACP. But even if it's turning on it doesn't work and if I click a thumbnails in attachment it still load in a different page. What could be the problem, please let me know something.... bye |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|