View Full Version : Forum Display Enhancements - Image Resize using Lytebox
Lost Heaven
03-02-2008, 10:00 PM
This's simple hack for resize large images using Lytebox (http://www.dolem.com/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 (http://hoiquantinhoc.com/forum/test-forum/784-ha-long-bay.html)
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
return '<img src="' . $link . '" border="0" alt="" />'; Replace with
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
return '<img src="' . $link . '" border="0" alt="" />'; Thay bằng
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 (http://hoiquantinhoc.com/forum/modifications-hqth/13-vbb-3-7-image-resize-hqth-ver-1-5-a.html)
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 ^^ .
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
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
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 :
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 (http://imageshack.us)
the hack dont redirect to the image path...
Subah
03-20-2008, 12:14 PM
hanks a lot :)
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
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
http://www.povododeserto.org/forums/redirect-to/?redirect=http%3A%2F%2Fi253.photobucket.com%2Falbu ms%2Fhh63%2Fjbarroca%2FNoticias-Posts%2Fyootheme3.png
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-feature-lightbox-21673/#post134148
tks
all the best
joao barroca
beduino
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
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/album.php?albumid=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
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 :(
CDRlab
05-13-2008, 07:49 PM
also 3.7 gold, and also not working with my attachements, those are still opening in new window instead of lytebox, any idea?
untitled65
05-14-2008, 02:21 AM
ehm i have a problem i cant find the code in class_bbcode.php
Hi, this is a great mod. I have a couple of questions. I have members that post their images directly from their ftp server. So images are not on the DB of the main forums.
The hack works, you click on the image, and it brings it up. The only thing i am having an issue with is that it does not show the next option to show the next image if the thread contains more than 1 image.
Is there a way to get this to work as i think was intended to be?
spitb19
05-14-2008, 03:47 PM
I'm wondering where is the coder of this mod?
Lost Heaven didn't online along times because he has married with a wonderful woman :D .So never mind about him :)
The hack works, you click on the image, and it brings it up. The only thing i am having an issue with is that it does not show the next option to show the next image if the thread contains more than 1 image.
Adding this options is very easy,but it looks like a slideshow more than resize image :)
DiverTree
05-16-2008, 05:00 PM
sorry if i missed this somewhere ...
does this work with img tags and attach tags, img tags only, attach tags only?
also, does this resize the images clientside or serverside?
mavikumsal
05-16-2008, 06:58 PM
Thanks...
HAVOK USA
05-18-2008, 04:02 AM
Guests/visitors not logged in cannot view images when using Internet Explorer, but are able to when using Firefox.
Is there a fix for this?
PaylaX
05-18-2008, 09:29 AM
Don't work internet explorer6 but working firefox.
Oyabun
05-18-2008, 10:09 AM
Can somebody help me out?
I just installed this Add-on and in the settings i typed in "500px".
But the addon resizes signaturepictures and other pictures (even if they are smaller than 500px), too.
Is there something wrong?!
pkallberg21
05-20-2008, 02:47 PM
A fix for it to work in IE would be great!
Thanks for the great mod.
D.Baker
05-21-2008, 02:39 AM
When ever you use the little papar clip icon to embed an image thumbnail in a post (I think that uses the [ATTACH] BBcode), it wont use Lytebox to open that large image, it just opens in new window.
D.Baker
05-21-2008, 02:45 AM
I found the source of the problem. When an image is embed in a post, it gets given the "rel=" link to the defualt Lightbox (So, rel="Lightbox") rather than this plugins "rel=lytebox". I don't know how you could fix this, but I though it might help.
D.Baker
05-21-2008, 03:31 AM
I hacked it to work by doing a search and replace of rel="Lightbox to rel="lytebox" in install/vbulletin-style.xml. Now it works for image even if they are embeded. I guess this sin't the best way to do things, but it works.
Now it would be great to have the option to add the images into lytebox groups so the slideshow feature works. All you need to do is get the plugin to ad rel="lytebox[$postid]" instead of rel="lytebox" and it would work.
D.Baker
05-21-2008, 09:20 AM
OK, I have developed my own mini-mod to get Lytebox working properly. It allows groups, slideshows and even works with images embeded in a post! You can try it out here (https://vborg.vbsupport.ru/showthread.php?p=1526633). It doesn't resize large images (just use the attachment settings in vB to do that).
pedroenf
05-22-2008, 01:24 PM
works with images embeded in a post!
Such as those within [img] tags?
D.Baker
05-23-2008, 12:18 PM
No, not with the IMG tags. There is a link to a demo post on the mod page here (https://vborg.vbsupport.ru/showthread.php?p=1526633).
Walter Ronny
05-24-2008, 12:29 AM
great! thx
metin
05-28-2008, 09:25 AM
good works thanx...
HAVOK USA
06-02-2008, 12:42 AM
not working with 3.71
Antek
06-07-2008, 08:30 PM
not working with 3.71
This mod works perfect with vB 3.7.1 :P
Just read installation steps and do it again, exactly:
edit file includes/class_bbcode.php, find
return '<img src="' . $link . '" border="0" alt="" />';
and replace with
return '<a target="_blank" href="' . $link . '" rel="lytebox"><img src="' . $link . '" border="0" alt="" /></a>';
Regards,
Antek
HAVOK USA
06-12-2008, 12:37 PM
Thanks Antek - works like a charm.
I need to learn that when all else fails, read the directions.
cybermaster
06-13-2008, 10:43 AM
i found one problem in this mod! if some users have image in his/her signature and that image linked to some site or address, when you click on that image lytebox load image and link not work.
i think this mod must track all images in post not user signature!
Antek
06-13-2008, 12:12 PM
Lost Heaven, could you add to next version option for exclude signature images?
Antek
1Matthew1
06-13-2008, 04:31 PM
And can you make it work with vbSEO?
dynamixsolution
06-14-2008, 01:47 PM
Somebody has integrated this hack with the vBulletin 3.7.1 albums?
DmentedH
06-15-2008, 05:07 AM
is it possible to make it where when you click the image it will open up into a new window full size? that would be really great for this mod.
dazzled
06-17-2008, 03:13 PM
This is probably a very stupid question but when you say:
Upload files from folder upload. where exactly do you want those files uploaded to? Sorry, n00b here :)
DmentedH
06-17-2008, 07:37 PM
upload the files in the upload folder into your forum root.
car20
06-23-2008, 10:10 AM
hello
Great hack , but dont work at my forum .
i uploaded files and enable at admin cp and edit class_bbcode.php file and import xml file .
light box is work but can't resize image .
resize setting is 400px
please help me .
redlabour
07-09-2008, 05:51 AM
This works easier without any Edits even for Blogs and Albums : The Image Resizer (powered with Lytebox / Highslide) (https://vborg.vbsupport.ru/showthread.php?p=1570706#post1570706) ;)
mehrdad220
07-10-2008, 03:49 AM
this might be a dumb question but when i click on an images on my froum it opens it on a new window and the effect dose not work. what modification do you think i might have missed?
Chadi
09-07-2008, 03:51 AM
i found one problem in this mod! if some users have image in his/her signature and that image linked to some site or address, when you click on that image lytebox load image and link not work.
i think this mod must track all images in post not user signature!
Same here, except for regular images, url based instead of inline attachments.
deneme2
09-14-2008, 07:44 AM
thanks
ExTincTi0N
12-17-2008, 10:14 PM
Im having a problem with this, When I click the image it opens up in a new window/tab what ever you use and it doesn't even look like lytebox. What is the problem?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.