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 |
#12
|
|||
|
|||
Quote:
<a rel="lightbox" .... instead of <a rel="lightbpx" .... |
#13
|
|||
|
|||
Hey man, You have it like <a rel="lightbpx" , pls change it to <a rel="lightbox" this happend while I was typing it. Sorry about it.
I cant edit the above post to correct it, If any mod can it will help many others who will implement this. Thanks. |
#14
|
||||
|
||||
Thanks for this hack
it work for me if i put this: <a rel="lightbox" .... .... and no <a rel="lightbpx" .... Click install ^^ |
#15
|
||||
|
||||
|
#16
|
||||
|
||||
Quote:
|
#17
|
|||
|
|||
Yes, same problem here. I guess it is not an easy thing to fix :surprised:
|
#18
|
|||
|
|||
We looked at this lightbox script awhile ago but the filesize payload on those .js files is way too heavy. Take a look at them and decide if you want members to pay that download hit when viewing your site. I wouldn't use it on high traffic site or for sites where users are not on broadband
|
#19
|
|||
|
|||
Quote:
Try removing the hack, and see if it still has the same problem. Can you give me access to your admincp, I will try and fix it? mvigod, You can easilly creat a Conditional statement which will enable this hack only for a certain group of members. If you want help in this pm me. |
#20
|
|||
|
|||
Quote:
thanks for the help, but I've tried your mod (installed it from scratch twice) as well as other similar mods. The result has always been the same. I've also seen in the threads of these other hacks, people having the exact same problems. Quote:
There are obviously problems with the way lightbox integrates with vb, since lightbox wasn't written for vb originally. So when I said "I guess it is not easy to fix" I didn't mean that as in fixing your hack. I was just saying that it is probabily not easy to modify the lightbox code so that it doesn't break certain vb features. Quote:
Support on the lightbox authors site, about various issues, is not helpful in this case. Anyway, thanks for the hack and support. I didn't mean to be unappreciative towards your work. |
#21
|
||||
|
||||
No fix bug ?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|