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 |
#42
|
||||
|
||||
Unfortunately, this hacks causes a malfunction in Quick Edit and Multiquote.
I'm sorry but I have to uninstall it. |
#43
|
|||
|
|||
any chance of getting update for this hack, to fix known bugs?
|
#44
|
||||
|
||||
Quote:
|
#45
|
||||
|
||||
Where are they? Zero just says to install in root forum??? Anyway an you please be a tad clearer as to where these files actually go? I will wait to install sounds like a lot of bugs in her, however great /hack,and ideal If Ican get her to work
Peace MarkAnthony |
#46
|
|||
|
|||
I am trying to work with lightbox for another reason and it led me here as I am strugling with the "quick edit" error too...
I know that the problem seems to be with the <body$onload> See: http://www.huddletogether.com/projects/lightbox2/ It says: Quote:
Open "editpost" Find <body$onload> Replace with: <body onload="MM_preloadImages(‘/images/menu_on.gif’)…;initLightbox()"> BUT THAT DID NOT WORK!!! I also removed the whole <body+extra stuff... and replaced it with a normal <body>. What I discovered is that with that gone the post opens and you can edit but when you click save the window does not return to a viewthread view... (remains with the editor) I will recode that edit page if I need to or I will recode my forums so everybody on my site has to use the advanced editor if this is the only fix! I also tried to edit the "showthread" and the "showthread showpost" templates and that didn't help either... |
#47
|
|||
|
|||
Quote:
|
#48
|
||||
|
||||
Here is what you guys have to do to get rid of those errors that you have been getting, put an if condition around the script,
Code:
<if condition="THIS_SCRIPT == 'showthread'"> <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" /></if> |
#49
|
|||
|
|||
Installed and worked perfect..
The one thing i want is..if there are 5 pictures and i click on first one which show in new lightbox window..now if i want to see 2nd picture i have to close lightbox window and click on 2nd or any other picture...any way to add previous and next option in lightbox window so we can see next picture then closing lightbox and click on other picture?? |
#50
|
|||
|
|||
First BUG.
When you do Quick EDIT of post you can't save post when you click on SAVE but you can save post in Go To Advance option of EDIT POST. I'm having this trouble since i install this mod but after uninstall it was fine and again i install then same thing again. |
#51
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|