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)
-   -   Show Thread Enhancements - Dynamic Picture Resize for [IMG] tag (https://vborg.vbsupport.ru/showthread.php?t=157228)

Pocket Aces 09-22-2007 06:57 AM

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.

jawatkin 09-24-2007 02:47 PM

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

kontrabass 09-25-2007 02:07 PM

Most excellent hack, installed on 3.6.8 no prob. Love the javascript approach.

TECK 09-27-2007 03:39 PM

Quote:

Originally Posted by Pocket Aces (Post 1344416)
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.

My hack will load the image... but at the desired size directly. The other hack will load the image at it's full size, then shrink it... which ruins all the hack purpose because you see a huge image then it becomes all of the sudden small, once loaded.

Also, Lizard King reported that the above hack you mentioned does not work with vB Blog.
My hack works with it.

Pocket Aces 09-29-2007 10:49 PM

Quote:

Originally Posted by TECK (Post 1348312)
My hack will load the image... but at the desired size directly. The other hack will load the image at it's full size, then shrink it... which ruins all the hack purpose because you see a huge image then it becomes all of the sudden small, once loaded.

Also, Lizard King reported that the above hack you mentioned does not work with vB Blog.
My hack works with it.

Sounds good. Im installing it right now and see how it works. [s]*installed* *ncode unistalled*[/s]

edit:
Just the same, i was hoping the loading time of resized images is less but it still loads the actual filesize.

Lizard King 09-29-2007 11:48 PM

Quote:

Just the same, i was hoping the loading time of resized images is less but it still loads the actual filesize
There is no way to decrease the file size of external images on fly.

ncangler 10-02-2007 06:12 PM

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!

rapidphim 10-05-2007 12:14 AM

Teck, can you please let me know if your hack comes with or working with lightbox when click on the images?

TECK 10-06-2007 04:13 PM

Quote:

Originally Posted by ncangler (Post 1351607)
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!

The image will not be resized using ImageMagick or GD.
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:

Originally Posted by rapidphim (Post 1353194)
Teck, can you please let me know if your hack comes with or working with lightbox when click on the images?

Yes it is working, one of the users managed to do it very easy.
Start reading from this post, then ask him to post his instructions here. :)

rapidphim 10-07-2007 03:13 AM

Quote:

Originally Posted by Acers (Post 1339360)
TECK, great hack m8,
just wondering though, when the javascript detects a image is greater than specified, can't the link window be somehow set to say rel="lightbox" and then the final image opens up in a new lightbox window?

EDIT: Never mind, i got the lightbox working with this code. Works brilliantly now.

Acers,
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?


All times are GMT. The time now is 03:19 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.01554 seconds
  • Memory Usage 1,745KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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