vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Display Enhancements - Image Resize using Lytebox ( 3.6.x ) (https://vborg.vbsupport.ru/showthread.php?t=172069)

Lost Heaven 03-03-2008 10:00 PM

Image Resize using Lytebox ( 3.6.x )
 
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.

OnyxChase 03-04-2008 07:44 PM

The picture is not resizing in IE6. :(

OnyxChase 03-04-2008 07:59 PM

Okay I fixed it by changing your IMG Css to:

Code:

#posts IMG
        {
        max-width:'.$width.'; width: expression(this.width > \'500\' ? \'500\': true);
        }


Sayrex 03-04-2008 10:02 PM

tnx I im Download & test addon

jscieza 03-05-2008 12:13 AM

Looks interesting but in your test forum I can't see any resize (using IE7 and Firefox 2). Please take a look :)

OnyxChase 03-05-2008 01:22 AM

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.

Lost Heaven 03-05-2008 03:10 AM

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.

AndyA 03-05-2008 10:38 AM

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 ?

jscieza 03-05-2008 11:17 AM

Quote:

Originally Posted by AndyA (Post 1457469)
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 :(

Lost Heaven 03-06-2008 03:55 AM

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.


All times are GMT. The time now is 04:13 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.01290 seconds
  • Memory Usage 1,741KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete