Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Image Resize using Lytebox ( 3.6.x ) Details »»
Image Resize using Lytebox ( 3.6.x )
Version: 1.5, by Lost Heaven Lost Heaven is offline
Developer Last Online: Mar 2008 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.6.8 Rating:
Released: 03-03-2008 Last Update: Never Installs: 53
Auto-Templates
Translations  
No support by the author.

This's simple hack for resize large images using Lytebox,also integration with vB attachments for vbb 3.6.x.You can find this mod for vbb 3.7.x at HERE.I used it on my forum http://Hoiquantinhoc.com and i didnt see any problem with it.Here you can see online demo
Here we go !

/////////////////////////////////////////////////////////////////////////
HISTORY
Ver 1.5
  • Using lytebox instead lightbox.
  • Fixed conflict javascripts.
Ver 1.0
  • First release.
/////////////////////////////////////////////////////////////////////////
INSTALLATION
  • Upload files from folder upload.
  • Import Product ImageResize_MK.xml
  • Edit file includes/class_bbcode.php,find
PHP Code:
return '<img src="' .  $link '" border="0" alt="" />'
Replace with
PHP Code:
return '<a target="_blank" href="' $link '" rel="lytebox"><img src="' $link '" border="0" alt="" /></a>'
Default max width available of images is 500px,you can change it in ACP => Image Resize Using Lytebox.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 03-07-2008, 11:16 AM
Bommando Bommando is offline
 
Join Date: Jan 2008
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice job

I noticed that this overrides any links on the images themselves. So, if you have a url tag around the image, it will use Lytebox even if the image isn't resized and you won't be able to click on the link.

This in in Safari 3.0.4.

Would be great if there was a way to allow urls to override the Lytebox code. Sigs should also be exempt.
Reply With Quote
  #13  
Old 03-07-2008, 11:40 AM
tunistunis tunistunis is offline
 
Join Date: Jun 2007
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks amico for this share

you are best
Reply With Quote
  #14  
Old 03-07-2008, 02:07 PM
kencasanova kencasanova is offline
 
Join Date: Jun 2007
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you. but it doesn't work with CMPS. can you fixed that?
Reply With Quote
  #15  
Old 03-08-2008, 06:16 AM
Lost Heaven Lost Heaven is offline
 
Join Date: Apr 2007
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Thank you. but it doesn't work with CMPS. can you fixed that?
Yes,i'll release next ver that work with CMPS.Thanks you very much.
Reply With Quote
  #16  
Old 03-14-2008, 09:59 PM
jiggle jiggle is offline
 
Join Date: Jan 2002
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For me it works great. All images will be reduced, but only the images posted with bbcode IMG will be shown in Original size with the lightbox effect. The images uploaded with the attachment function will be also reduced, but can not be opened in original size like the IMG images (here is an example: http://www.jiggle.de/vb/coole-lustig...ml#post2478913 ). Is this correct ? Is there a chance only to add this to the JPG and GIF Images uploaded as attachment ? Thanks :-)
Reply With Quote
  #17  
Old 03-14-2008, 10:38 PM
jiggle jiggle is offline
 
Join Date: Jan 2002
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think we have to change the template "postbit_attachmentimage"

<img class="attach" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;stc=1&amp;d=$attachment[dateline]" border="0" alt="" /><br /><br />

I tried it and it opens the window but was not able to find the picture.

Can someone please help ?
Reply With Quote
  #18  
Old 03-15-2008, 01:41 AM
Amenadiel's Avatar
Amenadiel Amenadiel is offline
 
Join Date: Sep 2006
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've been using ncode image resizer, it suits me better because it only applies when an image exceeds max width but (there is always a but) since it uses the attribute "onclick:" I cannot just replace it for lightbox effect, which I already have implemented with custom bbcode [imgw]

If you can code this hack to apply only if the image exceeds the max width, I'll switch in no time.
Reply With Quote
  #19  
Old 03-15-2008, 02:18 PM
jiggle jiggle is offline
 
Join Date: Jan 2002
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Success !
You habe to change the postbit_attachmentimage

<a target="_blank" href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;stc=1&amp;d=$attachment[dateline]" rel="lytebox">
<img class="attach" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;stc=1&amp;d=$attachment[dateline]" border="0" alt="" /><br /><br /></a>

Works great now for also the images uploaded with the attachment function.
Reply With Quote
  #20  
Old 03-18-2008, 02:22 AM
SSG.D's Avatar
SSG.D SSG.D is offline
 
Join Date: Aug 2007
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fantastic m8 ! Thanks for the Awesome work.

Cheers
MOTM
Reply With Quote
  #21  
Old 03-20-2008, 11:47 AM
cafenetland cafenetland is offline
 
Join Date: Jan 2008
Location: Sweden
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is amazin...

im so happy to see this hack...

thank u 1000 times.
Reply With Quote
Reply

Thread Tools

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

Forum Jump


All times are GMT. The time now is 09:53 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04404 seconds
  • Memory Usage 2,300KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete