vb.org Archive

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

Lost Heaven 03-02-2008 10:00 PM

Image Resize using Lytebox
 
This's simple hack for resize large images using Lytebox,also integration with vB attachments for vbb 3.7.x.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>'

Note:Also remember active vblightbox option : ACP=>Message Attachment Options =>Use Image Lightbox = > Yes - Click

Default max width available of images is 500px,you can change it in ACP => Image Resize Using Lytebox.

=====================================

Đ?y l? mod resize image v? chức năng duyệt images thumbnail sử dụng thư viện lytebox,biến thể của lightbox2.

///////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////
HISTORY
Ver 1.5
  • Sử dụng bộ thư viện lytebox ( lightbox2 ) thay cho lightbox.
  • Fixed conflict javascripts.
Ver 1.0
  • Bật / Tắt Chức năng resize ảnh.
  • T?y chọn k?ch thước tối đa cho ph?p của ảnh.
/////////////////////////////////////////////////////////////////////////
Installation :
  • Upload c?c file trong thư mục upload l?n thư mục tương ứng của host.
  • Import Product ImageResize_MK.xml
  • Edit file includes/class_bbcode.php,t?m
PHP Code:

return '<img src="' .  $link '" border="0" alt="" />'

Thay bằng
PHP Code:

return '<a target="_blank" href="' $link '" rel="lytebox"><img src="' $link '" border="0" alt="" /></a>'

////////////////////////////////////////////////////////////////////////////
Lưu ? :
Những ai d?ng vbb 3.7 nhớ active lightbox nghen : ACP=>Message Attachment Options =>Use Image Lightbox = > Yes - Click
Mod được hỗ trợ tốt nhất tại http://hoiquantinhoc.com

Sorry,im very bad in English ^^ .

zmmmzz 03-03-2008 04:55 PM

thanks!

codershark 03-03-2008 04:56 PM

extrem wonderfull hack !

logicuk 03-03-2008 05:27 PM

wow man this hack is just what ive been looking for amazing

installed and nominated for hotm :D

Lost Heaven 03-03-2008 05:29 PM

Thank you ^^ .

RvG2 03-03-2008 05:48 PM

thanks :)

Taragon 03-03-2008 08:10 PM

very nice! thanks!

xixxon 03-03-2008 10:13 PM

nice...exactly wat i need...thanks a lot

Brew 03-04-2008 03:46 AM

What if you had very large pics?

Like 1990X900 or some-such?

Would this include a link to show full size?

So it would show an intermediate size, say 800x600 then you would click the lightbox and it would show the full size.

Thanks!

Lost Heaven 03-04-2008 07:19 AM

Quote:

What if you had very large pics?

Like 1990X900 or some-such?

Would this include a link to show full size?

So it would show an intermediate size, say 800x600 then you would click the lightbox and it would show the full size.

Thanks!
By default,the javascript auto resize images if larger than the browser window dimensions,you can change this setting in file lytebox.js :
PHP Code:

this.autoResize            false

Thank you,hope you like this mod ^^

Endertr 03-04-2008 07:57 AM

thanks :)

glenvw 03-05-2008 07:05 PM

does this integrate with the current album that comes with 3.7 Beta?

Syria BoY 03-05-2008 07:37 PM

Good job thanks :)

logicuk 03-08-2008 11:14 AM

this hack rocks :)

Playa82 03-08-2008 11:19 AM

what about this images:

http://img170.imageshack.us/img170/2650/logofh8.jpg

the hack dont redirect to the image path...

Subah 03-20-2008 12:14 PM

hanks a lot :)

ZiG 03-21-2008 05:43 AM

would it be possible to integrate this into vbgallery as well?

DaFlameking 03-23-2008 04:13 PM

best image resize mod....evar

Stratege 03-24-2008 10:30 AM

Quote:

Originally Posted by Playa82 (Post 1459975)
the hack dont redirect to the image path...

Yes, I too have same question since that is a great hack but it kill all links in images. :(

beduino 03-26-2008 01:18 AM

Hello
Unfortunately my links is changed to
and is a img / img photobucket ...
obviously don't work.
it is a vbseo setup? I see in your site your use vbseo too - how you setup this?

tks in advance
joao barroca
aka beduino

myhekim 03-26-2008 01:36 AM

don't work ie6 ,working firefox...

beduino 03-26-2008 01:46 AM

I found my error
Need disable nofollow to all dynamic links in vbseo - and works
http://www.vbseo.com/f3/vb-3-7-new-f...73/#post134148

tks
all the best
joao barroca
beduino

ZiG 03-27-2008 09:26 AM

author should think about integrating a mod similar to this one using shadowbox:

http://mjijackson.com/shadowbox/index.html

yaoren 03-27-2008 05:49 PM

Hmm I tried doing this but nothing changed. Any ideas?

I'm running 3.7.0 RC1

mastertek2000 03-27-2008 06:52 PM

works great but where do i upload the images 2 installed

Karnal Sinn 04-03-2008 06:58 PM

Nice hack

Reeve of shinra 04-03-2008 09:54 PM

Great hack, works wonderfully.

iDaemon 04-04-2008 02:24 AM

nice mod, but it work on external img tag?

samet54 04-04-2008 05:36 AM

ben bunu yapamadım olmadı sorun oluyo kodlar bozuluyor

macc 04-04-2008 11:40 AM

hello!

have vbulletin 3.7. rc2 and installed this hack...

have one problem ... images from albums come outside from some styles ... cyberblue or vb classic ...
http://www.belaplay.com/vb/libar/alb...4&pictureid=14

some help? to get inside in style ?

regards

macc

J818943C8AA0 04-05-2008 06:24 AM

Tuyêt vơì

matrex722 04-05-2008 12:44 PM

thanks alot

SpongeFreak52 04-06-2008 12:02 PM

Is there a way to get this to work with the vBA CMPS?

ScottRowan 04-09-2008 10:56 AM

Does this work on RC2.

I had it installed and it was working perfect but ive just tried to do an image resize there and its not working.

spitb19 04-09-2008 05:32 PM

Quote:

Originally Posted by ScottRowan (Post 1486611)
Does this work on RC2.

I had it installed and it was working perfect but ive just tried to do an image resize there and its not working.

are you complete for step Modifications? it is importain for steps:
1. Edit file includes/class_bbcode.php,find
2. Also remember active vblightbox option : ACP=>Message Attachment Options =>Use Image Lightbox = > Yes - Click

Can you find supporting this modification in www.hoiquantinhoc.com.

rapidphim 04-14-2008 06:42 AM

Can this hack work on RC3?

citroenar 04-14-2008 08:00 PM

not working for me. RC3

rapidphim 04-14-2008 10:40 PM

I'm wondering where is the coder of this mod?

InfoSpyware 05-04-2008 03:04 AM

Very nice hack and too easy to install :up:

Thanks spitb19

irishblue 05-05-2008 03:10 PM

I'm using 3.7.0 "gold".
It resizes my large pics, but clicking on them does not open the lytebox to display the full-sized picture... instead it just opens in a new window :(


All times are GMT. The time now is 07:14 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.02239 seconds
  • Memory Usage 1,817KB
  • 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
  • (5)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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