Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
vBulletin Attachment Lightbox Details »
vBulletin Attachment Lightbox
Mod Version: 1.00, by Ntfu2 (Member) Ntfu2 is offline
Developer Last Online: Jan 2010 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.5.4 Rating: (1 vote - 5.00 average) Installs: 95
Released: 15 May 2006 Last Update: Never Downloads: 416
Not Supported  

//////////////////////////////////////////////////////////////////\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/
****LightBox for vBulletin Attachments By: Dave @ FightRice.com****
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/
//////////////////////////////////////////////////////////////////\
Ogrinal Version: ALl credit should go there, I Simply ported to vBulletin by myself
View Second Post In Thread for more modifications:

What this hack does is add a nice CSS and Javascript lightbox effect
to your forums attachments. Attachments must be set to shown as thumb-
nails and not inline. Attachments can not be posted using the [attach]
id[/attach] bbCode at this time.

Working Demo(s): (Send me your URL once you get it working) http://www.fightrice.com/forums/showthread.php?t=124

Now Lets Get Started

1. Open your adminCP - Styles and Templates - Template Manager - Postbit
Templates - postbit OR postbit_legacy (only edit both if you use both)
At The Very Top Add

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

Save and close

2. Next open postbit_attachmentthumbnail find <a after add

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

Save and close

3. Next Open the headinclude template 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.

Save and close

Thats all for template edits:
Now upload the contents of the clientscript into your forums. You should end up with this structure
/forums/clientscript/vbulletin_css/lightbox.css
/forums/clientscript/ - All the .js files go inside this folder

Next Upload the images into the webroot.ex
http://www.yoursite.com/images/lightboximages.gif (note this isnt an actual image, its an example)

Thats all there should be

User Configuration Options below If you do not feel comfortable doing this, dont
its not neccasary. if you come up with a cool effect please share it.
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-------------------------------------------------------------------------------
In the clientscript/lightbox.js file these lines you can config to suite your needs
________________________________________________________________________________ ___

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

________________________________________________________________________________ ___
clientscript/vbulletin_css/lightbox.css

Of Course can also be edited to make it unique to your needs.

Thats All, Make sure you click install, and nominate for Hack Of The Month!

If you like and wish to see other cool releases please donate via paypal, marcia@secondhomekennel.com
or a simple link back will rock as well

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

Thank You

CLICK INSTALL TO GET SUPPORT! also a nomination for hack of the month wouldnt hurt

THIS IS FOR THE IMAGE RESIZE VERSION - USE lightboxresize.zip DO NOT USE BOTH!


/////////////////////////////////////////////////////////////\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/
Dynamic Lightbox auto resize - and image overlay.
/////////////////////////////////////////////////////////////\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/

If using a previous version of this hack, please remove all instances, delete all old files
and undo any templae edits. easy way is to simply follow the old instructions, and simply remove
things instead of add.

This lightbox will automatically resize images to your screen, and all for full size viewing.
Feel free to edit as you see fit.

First Step. open lightbox_plus.js at the very end find

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

Replace all YOURSITE.com with the actual address you will keep everything. pretty simple.
Save and close.

Create the zzoop.gif image to match your site,

Upload lightbox_plus.js to the /yourforumlocation/clientscript folder

Upload lightbox.css into /yourforumlocation/clientscript/vbulletin_css folder

Upload all images into http://www.YOURSITE.com/images

*MAKE SURE ALL PREVIOUS INSTALLATIONS ARE REMOVED AT THIS POINT*
Login to AdminCP -> Styles Templates -> headinclude template

add at the very end.

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

Save and close

Next open the postbit_attachmentthumbnail

After <a add

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

If you want the image overlay, also add (or if you changed the effectclass in lightbox_plus.js use what you changed it to)

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

Save, and close.

in the postbit_legacy or postbit, place this code at the very top

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

This should produce similar results to the last one, there is no next or previous buttons though.

Enjoy it.

Download Now

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

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
Adding Lightbox to Attachment thumbs imranbaig vBulletin 3.6 Template Modifications 79 13 Jul 2008 20:44
3.5.x vBGarage w/ Lightbox v2.0 Xoxideforums vBulletin 3.5 Add-ons 64 30 Oct 2007 14:10
Add-On Releases Lightbox/thickbox for attachment on CMPS module rapidphim vBulletin 3.6 Template Modifications 5 15 Oct 2007 22:04

Comments
  #2  
Old 15 May 2006, 22:46
Ntfu2 Ntfu2 is offline
 
Join Date: Feb 2006
To Have This LightBox Effect for anything using the [attach]id[/attach] code please do the following file edit:

Open includes/class_bbcode.php, find (around line 1767)

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

Replace that with this

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


DEMO: Same as above link, post #14
*Tested on 3.5.4 Only So Far*


Add File Name Caption:
postbit_attachmentthumbnail, after

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

Add This after For filename, filesize and times Downloaded

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

Other Variables to put in for a nice effect:
Not sure how to do it with the img code. If you can figure it out please share,

Last edited by Ntfu2; 17 May 2006 at 18:56.
Reply With Quote
  #3  
Old 15 May 2006, 23:14
Kihon Kata's Avatar
Kihon Kata Kihon Kata is offline
 
Join Date: Nov 2003
whoa, friggen way PiMp! installs
__________________
3MultiMedia.com - Simple, Effective CMS WebDesign
Reply With Quote
  #4  
Old 15 May 2006, 23:17
Ahsin1 Ahsin1 is offline
 
Join Date: Mar 2006
Real name: Ahsin Khalid
Kool should be HTM
Reply With Quote
  #5  
Old 15 May 2006, 23:26
Ntfu2 Ntfu2 is offline
 
Join Date: Feb 2006
Originally Posted by Kihon Kata
whoa, friggen way PiMp! installs

Dont forget to click install, and vote hack of the month.

Also i think i fixed the permissions to let guests view, if not let me know
Reply With Quote
  #6  
Old 15 May 2006, 23:32
ryancooper's Avatar
ryancooper ryancooper is offline
 
Join Date: Jul 2002
Very Cool.

A warning to firefox users it will not show. I spent 10 min. Lookign at the site and thinking wht the heck does this do? Noting looks different to me. Then I went to IE and Wa La it was there. Be-U-Ti-Ful :banana:

Check screen

It does not watermark it by any chance does it. . .


EDIT: I jsut tried it in firefox and it worked! Strange.

Anyway Nice Work!
Attached Images
File Type: jpg Untitled-1.jpg (11.1 KB, 1095 views)
File Type: jpg Untitled-2.jpg (9.4 KB, 966 views)
Reply With Quote
  #7  
Old 15 May 2006, 23:32
Kihon Kata's Avatar
Kihon Kata Kihon Kata is offline
 
Join Date: Nov 2003
we don't allow guests so no biggie.

The Next/previous images aren't showing up for me
__________________
3MultiMedia.com - Simple, Effective CMS WebDesign
Reply With Quote
  #8  
Old 15 May 2006, 23:34
Ntfu2 Ntfu2 is offline
 
Join Date: Feb 2006
Originally Posted by ryancooper
Very Cool.

A warning to firefox users it will not show. I spent 10 min. Lookign at the site and thinking wht the heck does this do? Noting looks different to me. Then I went to IE and Wa La it was there. Be-U-Ti-Ful :banana:

Check screen

It does not watermark it by any chance does it. . .


EDIT: I jsut tried it in firefox and it worked! Strange.

Anyway Nice Work!
No for watermark, search for the watermark hack released here by me.

Im using latest version of FireFox, and its all working fine,, not sure of the problem, i'll start investigating and see what i can turn up


Also thanks for the screen caps
Reply With Quote
  #9  
Old 15 May 2006, 23:38
Dr.Viggy Dr.Viggy is offline
 
Join Date: Apr 2006
works for me in FF with no problem but not in IE7 beta2.

as for the prev and next buttons, i couldn't find them initially either but if you move your mouse onto the pic you'll get the prev or next depending on which side of the image you're on.
Reply With Quote
  #10  
Old 15 May 2006, 23:38
Ntfu2 Ntfu2 is offline
 
Join Date: Feb 2006
Originally Posted by Kihon Kata
we don't allow guests so no biggie.

The Next/previous images aren't showing up for me

make sure you move the mouse over toward the left or right side. images should be placed in the forum images directory like so http://www.yousite.com/forums/images/lightboximages.jpg

hope that does it
Reply With Quote
  #11  
Old 15 May 2006, 23:39
Ahsin1 Ahsin1 is offline
 
Join Date: Mar 2006
Real name: Ahsin Khalid
not working for me
Reply With Quote
  #12  
Old 15 May 2006, 23:39
Mr Chad's Avatar
Mr Chad Mr Chad is offline
 
Join Date: Jul 2005
Holy Shit
Reply With Quote
  #13  
Old 15 May 2006, 23:41
Kihon Kata's Avatar
Kihon Kata Kihon Kata is offline
 
Join Date: Nov 2003
Originally Posted by Ntfu2
make sure you move the mouse over toward the left or right side. images should be placed in the forum images directory like so http://www.yousite.com/forums/images/lightboximages.jpg

hope that does it
I checked your zip and there is no image called lightboximages.jpg

EDIT: Sorry I see what you mean. I have the images in my forums/images directory. Still not next/prev images
__________________
3MultiMedia.com - Simple, Effective CMS WebDesign

Last edited by Kihon Kata; 15 May 2006 at 23:44.
Reply With Quote
  #14  
Old 15 May 2006, 23:43
ryancooper's Avatar
ryancooper ryancooper is offline
 
Join Date: Jul 2002
WOW Everything works like a charm but no next and prev images either...

Last edited by ryancooper; 16 May 2006 at 00:50.
Reply With Quote
  #15  
Old 15 May 2006, 23:51
Dr.Viggy Dr.Viggy is offline
 
Join Date: Apr 2006
ie7 takes a minute to load the js files but works. this is awesome. nice work

Last edited by Dr.Viggy; 15 May 2006 at 23:54.
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 01:25.

Layout Options | Width: Wide Color: