Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Adding Lightbox to Attachment thumbs Details »
Adding Lightbox to Attachment thumbs
Mod Version: 1.00, by imranbaig (Member) imranbaig is offline
Developer Last Online: Aug 2013 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.0 Rating: (2 votes - 5.00 average) Installs: 75
Released: 06 Aug 2006 Last Update: Never Downloads: 393
Not Supported  

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>


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

click Save.

Step2: Now Open postbit_attachmentthumbnail

Find:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace With:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Thats it Enjoy The hack.

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.

Download Now

Only licensed members can download files, Click Here for more information.

Addons

Screenshots

Click image for larger version

Name:	lightbox-integration.jpg
Views:	3148
Size:	98.7 KB
ID:	51714  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
vBulletin Attachment Lightbox Ntfu2 vBulletin 3.5 Template Modifications 199 20 Aug 2008 18:21
Add-On Releases Lightbox/thickbox for attachment on CMPS module rapidphim vBulletin 3.6 Template Modifications 5 15 Oct 2007 22:04

  #16  
Old 07 Aug 2006, 22:39
effectica effectica is offline
 
Join Date: Jan 2006
Originally Posted by Allan
There are a problem

Under FF, Attachment thumbs, it's ok, but with IE, Attachment thumbs don't show

and looking this:

Yes, same problem here. I guess it is not an easy thing to fix :surprised:
Reply With Quote
  #17  
Old 08 Aug 2006, 02:59
mvigod mvigod is offline
 
Join Date: Dec 2001
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
__________________

Reply With Quote
  #18  
Old 08 Aug 2006, 12:47
imranbaig imranbaig is offline
 
Join Date: Sep 2005
Real name: Imran
Originally Posted by effectica
Yes, same problem here. I guess it is not an easy thing to fix :surprised:
This problem is nothing to do with hack, You are effectively adding one rel tag to yur anchor tag, thats all and nothing.
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.
Reply With Quote
  #19  
Old 08 Aug 2006, 13:40
effectica effectica is offline
 
Join Date: Jan 2006
Originally Posted by imranbaig
This problem is nothing to do with hack, You are effectively adding one rel tag to yur anchor tag, thats all and nothing.
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.
Hi imranbaig,
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.

You are effectively adding one rel tag to yur anchor tag
I know it is not a problem of how you coded the hack. I love it and I appreciate the time you put on this, but I can only imagine that the javascript that comes with lightbox is causing problems with some vb javascript.
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.

Try removing the hack, and see if it still has the same problem.
Yes, by removing the hack everything turns back to normal.

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.
Reply With Quote
  #20  
Old 11 Aug 2006, 14:38
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Real name: allan
No fix bug ?
__________________
-------------------------------------------------------------------------------------------
Administrator vBulletin-Ressources.com, French vBulletin Resources.
Reply With Quote
  #21  
Old 11 Aug 2006, 19:45
Ntfu2 Ntfu2 is offline
 
Join Date: Feb 2006
My version from 3.5 still works perfectly with 3.6, and even has some extra options and info in the thread, and doesnt have the undefined error if you are looking for a fix for that.

http://www.vbulletin.org/forum/showthread.php?t=115701

Last edited by Ntfu2; 11 Aug 2006 at 19:47.
Reply With Quote
  #22  
Old 11 Aug 2006, 21:34
effectica effectica is offline
 
Join Date: Jan 2006
Originally Posted by Ntfu2
My version from 3.5 still works perfectly with 3.6, and even has some extra options and info in the thread, and doesnt have the undefined error if you are looking for a fix for that.

http://www.vbulletin.org/forum/showthread.php?t=115701

Hi,
does inline editing work with your hack installed?
Reply With Quote
  #23  
Old 11 Aug 2006, 22:47
Ntfu2 Ntfu2 is offline
 
Join Date: Feb 2006
yes,

everything works perfect. This version of the hack is missing a few vBulletin specific items it needs to function correctly.

While mine works perfectly within the vBulletin pages
Reply With Quote
  #24  
Old 13 Aug 2006, 11:11
aycan555 aycan555 is offline
 
Join Date: Dec 2005
Real name: www.ultrapaylasim.com
Verry shine thank you...
Reply With Quote
  #25  
Old 14 Aug 2006, 10:18
mahakala's Avatar
mahakala mahakala is offline
 
Join Date: Jul 2006
what does this plugin do when the attachment is ".rar", ".zip" or else?
Reply With Quote
  #26  
Old 14 Aug 2006, 11:02
ForumDog ForumDog is offline
 
Join Date: Jul 2006
Originally Posted by effectica
Hi imranbaig,
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.

I know it is not a problem of how you coded the hack. I love it and I appreciate the time you put on this, but I can only imagine that the javascript that comes with lightbox is causing problems with some vb javascript.
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.
I know that a modification I did, which used javascript interaction with Quick-Reply, didn't work in Internet Explorer. I tried four methods of doing the same thing, same result every time. Code validated, no errors or issues. It just didnt work. IE seemed to have problems with the textarea being the target of two javascript functions from different places. It is, to be fair, a very bugged browser and it worked perfectly in every other browser for every method I tried so I could only conclude that it was some kind of issue with IE and I ended up restricting the modification with a conditional that barred it from loading in IE.

Might have been some kind of browser-specific shennanigans in the forum code itself I suppose.
Reply With Quote
  #27  
Old 17 Aug 2006, 20:24
imranbaig imranbaig is offline
 
Join Date: Sep 2005
Real name: Imran
.rar and other files work fine with out a problem,..
Check it here: http://forums.winkeyfinder.com/showthread.php?t=1199
Reply With Quote
  #28  
Old 21 Aug 2006, 08:38
upsetter upsetter is offline
 
Join Date: Aug 2006
Real name: Alex
Originally Posted by Allan
There are a problem

Under FF, Attachment thumbs, it's ok, but with IE, Attachment thumbs don't show

and looking this:

I have the exact same problem on my forum, but my attached file shows at the bottem, and when I submit it the thumb. on the forum works perfectley but I got the same problem as you, says " undefined (undefined) "

Reply With Quote
  #29  
Old 21 Aug 2006, 09:37
tappedout's Avatar
tappedout tappedout is offline
 
Join Date: Apr 2006
Works Great thanks!! I had the same script on my home page it ties in great now to have it on the forums! Thanks a ton!!

*Clicks install!

www.sectionviiiclan.com
Reply With Quote
  #30  
Old 21 Aug 2006, 12:34
P.Jackson P.Jackson is offline
 
Join Date: Sep 2003
Real name: Paul
im getting that undefined problem aswell
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 07:57.

Layout Options | Width: Wide Color: