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 |
#52
|
|||
|
|||
thanks imranbaig saab
Hope this can be sorted soon and we can use. |
#53
|
|||
|
|||
workin` now thankx
|
#54
|
|||
|
|||
Hey guys, before I install this, does it work with quick editting? I thought I'd ask before I went tinkering.
Thanks, Steve |
#55
|
|||
|
|||
Great hack, I can confirm it works in Firefox and Safari
|
#56
|
|||
|
|||
Same, where exactly do we upload the CSS, Images and JS folders to?
|
#57
|
|||
|
|||
Quote:
e.g. /www/forum or if your forum sits on your www/ (or public_html) then put them in there. On a seperate entity, this really is a sweet hack... IF it would work properly. I have the greyed out loading thing... that works fine. No problems editing attachments... BUT when I do click on the image, it doesn't appear in the box, it goes through the loading thing, looks very nice... then new page with the image, aligned to the left. This ONLY happens in Firefox... it works fine in IE. What have I done wrong, because I just cannot figure it out? |
#58
|
|||
|
|||
Quote:
Quote:
|
#59
|
|||
|
|||
the only issue I'm having with this after applying it is that, if I do a quick edit of a post, it won't save. Unless I'm in advanced mode.
Other than that, using the conditionals above, fixed all problems I had before when I tried this hack. |
#60
|
|||
|
|||
it's the prototype.js, btw.
it's conflicting with vbulletin's own JS-framework. tried doing the same a few days ago (didn't know there were already hacks) and ran into the same problem. |
#61
|
|||
|
|||
anyone found fix for this? and thanks
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|