Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

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
  #2  
Old 03-04-2008, 07:44 PM
OnyxChase OnyxChase is offline
 
Join Date: Jul 2007
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The picture is not resizing in IE6.
Reply With Quote
  #3  
Old 03-04-2008, 07:59 PM
OnyxChase OnyxChase is offline
 
Join Date: Jul 2007
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay I fixed it by changing your IMG Css to:

Code:
#posts IMG
        {
        max-width:'.$width.'; width: expression(this.width > \'500\' ? \'500\': true); 
        }
Reply With Quote
  #4  
Old 03-04-2008, 10:02 PM
Sayrex's Avatar
Sayrex Sayrex is offline
 
Join Date: May 2005
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tnx I im Download & test addon
Reply With Quote
  #5  
Old 03-05-2008, 12:13 AM
jscieza jscieza is offline
 
Join Date: Apr 2007
Posts: 191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks interesting but in your test forum I can't see any resize (using IE7 and Firefox 2). Please take a look
Reply With Quote
  #6  
Old 03-05-2008, 01:22 AM
OnyxChase OnyxChase is offline
 
Join Date: Jul 2007
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it me, or is this really intensive on the browser? I have a page with three pictures and it slows down my computer a lot!!! I can't help but think about my users who have older computers. This might be a big problem for them.
Reply With Quote
  #7  
Old 03-05-2008, 03:10 AM
Lost Heaven Lost Heaven is offline
 
Join Date: Apr 2007
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Looks interesting but in your test forum I can't see any resize (using IE7 and Firefox 2). Please take a look
Thank you,i reactive this mod in my forum,i fogot active it after test another mod.
Quote:
Is it me, or is this really intensive on the browser? I have a page with three pictures and it slows down my computer a lot!!! I can't help but think about my users who have older computers. This might be a big problem for them.
Really ? I dont notice any problem from my users.I using Firefox2 on 2ghz computer and it slows down my computer a bit.
Reply With Quote
  #8  
Old 03-05-2008, 10:38 AM
AndyA AndyA is offline
 
Join Date: Apr 2005
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great looking addition !

Lets say that I install this on my forums and make the code edit as instructed, if at a later date I disable Lytebox through admincp (but not uninstall it), will my images still be shown as normal or will there be a problem displaying them ?

Will this display an 'Image Resized' or similar message ?
Reply With Quote
  #9  
Old 03-05-2008, 11:17 AM
jscieza jscieza is offline
 
Join Date: Apr 2007
Posts: 191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AndyA View Post
Will this display an 'Image Resized' or similar message ?
No, unfortunately it don't show any type of message. I think that it will be a very good idea to print out a message so users will know that the image they are seeing has been scaled and when they clic over it will be showed at full size

I have found that it plugin also resize the images of signatures... It's normal?

About the system resources that this plugin eats, in my Core Duo it works fine but ?n my Pentium 4 (1.8GHz) it takes about 80% of the CPU usage when I clic over a scaled image to see it in full size. The effect isn't good because there is a lag in the animation
Reply With Quote
  #10  
Old 03-06-2008, 03:55 AM
Lost Heaven Lost Heaven is offline
 
Join Date: Apr 2007
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
About the system resources that this plugin eats, in my Core Duo it works fine but ?n my Pentium 4 (1.8GHz) it takes about 80% of the CPU usage when I clic over a scaled image to see it in full size. The effect isn't good because there is a lag in the animation
At ver 1.0,i used lightbox so it take less CPU usage than lytebox,but i like animation of lyte so i choosed lytebox on ver 1.5 .
Quote:
I have found that it plugin also resize the images of signatures... It's normal?
Yeah,it also resize the images of signatures if these pictures wider than setting.
Reply With Quote
Reply


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 11:23 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04803 seconds
  • Memory Usage 2,299KB
  • Queries Executed 23 (?)
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
  • (1)bbcode_code
  • (2)bbcode_php
  • (5)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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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