![]() |
There's already a image resizer mod, but 1 thing i dont want about it is it still loads the image. Is this the same as that? Would be good if this mod will just load the thumbnail, then the user may click the thumbnail to load the actual image size.
Same principle as attached images. |
I've got it resizing and am playing with the options, but I'm not understanding the lightbox/thickbox outlined a few posts above. Admittedly, I am awful at Javascript. I'm using this thickbox hack for attachments and am wondering how to have the 'clicked' image open the thickbox. I know it's easy, but... not for me :P
|
Most excellent hack, installed on 3.6.8 no prob. Love the javascript approach.
|
Quote:
Also, Lizard King reported that the above hack you mentioned does not work with vB Blog. My hack works with it. |
Quote:
edit: Just the same, i was hoping the loading time of resized images is less but it still loads the actual filesize. |
Quote:
|
I installed this with no problem at all. However it is cropping images instead of resizing them. Did I miss something or is there a way to have it resize linked images rather than cropping them? Thanks!
|
Teck, can you please let me know if your hack comes with or working with lightbox when click on the images?
|
Quote:
You don't want to kill your server for an externally hosted image, right? :) This hack with resize the displayed image using only JavaScript techniques and user's browser, without putting any stress on the server. Quote:
Start reading from this post, then ask him to post his instructions here. :) |
Quote:
Can you please post the instruction on how to intergrate the lightbox with this code? Thanks! Teck, Can you please let me know if the image host on imageshack work with this mod? Or it HAS to be uploaded/attached? |
rapidphim, this hack will work great with files uploaded to the imageshack.us site. :)
Simply use the direct image link (last option on their list). |
I always used the direct image link but sometime the images did not resize itself. So... just want to make sure.
|
i did not under stand this ... explain pls
Quote:
|
Go to your admincp, styles & templates, style manager, at the style that you want to make the edit, click on the drop down menu on the right, select Main CSS, scroll down all the way to the bottom, on the second box of the Additional CSS Definitions, copy and paste the above code to the end of the second box. That's it.
|
Superb mod dude, installed! :D
|
Can anyone let me know how to apply the lightbox to this hack? Also, how are you going to center the image automatically? Thanks.
|
I think there is a little bug on Internet Explorer 7 with this script, it works good but when i click in my forum home page, where there is last message, and i click on thread title (showthread.php?goto=newpost&t=2) if the thread has a resized IMG it gives an error when make the redirect to showthread.php?p=355#post355
If i disable IMG resizer it works correctly. |
Should not do this, at all. There is no relation to it.
|
Thank you for this wonder add on - BUT, I was confused where the
Quote:
Could some more detailed instructions please be provided in the zip file? Marks installed, finally. |
Quote:
at the bottom of the page you will see a box that says: Additional CSS Definitions paste the code supplied in to the second box |
I'm looking for a hack like this, and it seems nice. I've read the thread and I wondered if it would be possible to make the code resize the IMG-embedded picture relative to the client's own screen resolution.
In other words, instead of having static max px height/width in the AdminCP, would it be possible to define my site's template overhead in number of pixles and then make this mod resize to the client's maximum width less the defined overhead? This would allow people on small laptops, like me, to get images sized at 1024 - N px width, and desktop users with e.g. 1600px width will get it resized to fir their width automagically? Also, I assume the mod will resize anything as long as the dimensions are largerthan the defined limits, so that it will not upsize anyting? -A |
Very nice.. it was just what i was looking for.
there was one thing i did however notice. that is sometimes when the images are in a spoiler tag, it will resize them, however it will not allow you to click on it to see it in its orginal size(in my case i have it open in a new window). |
hi Teck, thanks, i just installed and it works great.
however i have an issue with my signatures. in Vbulletin i set the max image size to 600 x 200 for all usergroups for their signatures. however on your hack i configured the max width to be 700. the thing is, it's not considering my max allowed image size of 600 x 200 for signatures anymore. usually it gives the user an error stating that their image is too big. i'm not getting that anymore, it's allowing all image size and it's reducing it to 700. i don't want that for my signatures. could you help me on this issue please? thanks |
very useful hack,is there a way if you can make this to be moderated like attachments.so if anyone uses an [image] tag it will be moderated by admin before showing on the main forum.thanks
|
hi..
great work here.. but I would like to resize the images depending of the user resolution... i thinked about setting a maximum width like a percentage of the resolution or the width like the resolution - K (where K is a constant that I want configure through admin cp) i choosed the second option... because its better at my case... so, I did this modification at vbulletin_global.js Code:
function resize_image(obj, link, k) but I dont know why I have to modify the CSS... thats for resizing when javascript is disabled? I will try to make my mod and use it without the CSS mods... then I post here the results... but if someone knows the answer then can help me... thnks ps: it worked fine! but I am curious about what that css will do... i think thats because of javascript desabled.. or that avoid to load the image and then resize it.... but i am not sure... |
Quote:
Because that's what it is after all, a BBCode tag, used a little different. |
hey teck... can you explain me why do you use the css modification?
i think that css avoid loading the image before and then resize it.... but i am not sure... I am asking because I wanna set the maxwidth to "resolution player - constant"... did you read my post? I just modified the javascript and it worked... but I wanna know if this css has another function... thanks for the excellent mod and thanks for the support you are giving regards |
Quote:
Explain more if you think I missed something, but first, make sure the images are not uploaded into database. If they are, the hack will not influence their format in any way. Quote:
|
Can you please add highslide integration to you hack?
|
Quote:
hi Teck, the images are not uploaded into database. like i said i set it to 600 x200 max for images in signatures, using the bbcode tag [img]. and it was running fine before inserting your hack, but now we don't get the error when it's bigger than 600 x 200, it's just resizing it. so no , images are not uploaded into database. thanks , i'll wait for your help on this |
Nice little hack and it works well on 3.7.0 b3 for me also. :) **Installed**
|
Awesome hack. Should be in vb by default.
|
hmm, it messed up vb. The .js modificatiom made my chatbox stop working. The img sized rework. Just make sure u pay attention to this.
|
Has this been resolved yet? :)
Quote:
|
teck,
do you know if is easy to modificate your javascript to do enlarge the image inside the post, like this mod: https://vborg.vbsupport.ru/showthrea...118048&page=49 (see the javascript attached at the mod) what I want to do is use my mod of your mod (quoted below) but with this functionality of enlargement I know that for the javascript work properly it has to: 1. when loading the images, add an "identifier" to each one that exceeds the max width and saving the original width (and it would be good to add the warning like the link above) 2. if the user click on the image, just restore the original size (and changing the warning text) 3. if the user click it again, then resize it again I think this can be easy.. and it would be less "destructive" than the mod which I posted the link... and I have seen that all javascript is done on that post... and it make exactly what I have said... i just dont know how it manages the identifier of the images.. Quote:
|
Please
give me screen hosts |
Quote:
|
I've tried this mod, thanks TECK, it works well.
But I need some enhancements, pls help ! In my forum, users send a lot of image in posts, and I want the images have better layout: 1. Don't touch the small in-line image like this https://vborg.vbsupport.ru/external/2008/01/437.gifone 2. For the image that larger than 200 px wide, I would like to have them center-aligned, so i did some modifications in the code PHP Code:
But here, I used php getimagesize(), which connects to remote server to get actual width of the image. It slows the page load EXTREMELY. May be CSS can help? But I don't know how to modify CSS :) CAN YOU GIVE A SOLUTION? Thanks a lot in advance Kien, NT |
I have one skin that does not resize the images, I made the same changes to all skins. What could the problem be?
Thanks for your assistance! |
Quote:
|
All times are GMT. The time now is 02:47 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|