vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Automatic Image Resizing Javascript (https://vborg.vbsupport.ru/showthread.php?t=94546)

Dorign 08-20-2005 04:54 AM

Unless anyone has any objections, I think I'll be making this a full version. No code edits would be required; I just can't seem to find any errors with the code.

Dorign 08-20-2005 08:39 PM

I've just been told this modification also works when viewed with Safari. Yay. ^_^ I'd say this is done being beta tested. Release, woo.

dai-kun 08-20-2005 09:03 PM

Nice, Only problem is that my forum logo gets resized too as well :(

Dorign 08-20-2005 09:15 PM

Well, for that, you could simply split your logo into parts, and then put them in a table. That's what I did for Forum Central. ^_^

ggiersdorf 09-04-2005 06:45 PM

Nice Hack though I have a request can you make it clickable to show you full size in another window???

Dorign 09-05-2005 02:40 PM

The script would need to be rewritten to make posted images clickable, and it would slow the speed of the script down by over 200% surely. As for your header image, this script isn't programmed to be integrated with the vB post code (which slows forums down if you do it that way), so it will resize every single image over your set width, regardless if it's in a post or on the page. The work around to this, and the one I use at www.forum-central.com, is to break the header up into a 2 or 3 part image and use tables to align it. That would be more webfriendly than having an 800 pixel wide image, anyway. ;)

vietfancy 09-06-2005 02:08 AM

is this work with 3.07?

Dorign 09-08-2005 01:07 AM

Works with any 3.0.x version.

wirewolf 09-11-2005 10:56 AM

Nice hack Dorign. Simple and edits very easy (clicks' install).
Here's an example on my forum (3.0.9):
http://www.shipmodeling.net/vb_forum/thread907.html
Just what I needed. The original image my user posted was over 1100 px's wide. I set my limit to no more than 600 px's.
Tested it with IE, Firefox and Nutscape. All seem ok

PS, I added a little notice to my users in the "Post Thread' and in the 'Edit Post' templates to let them know that any over sized image they link to will be resized automatically so they don't think they're going crazy.

Inferno Dragon 09-26-2005 05:31 PM

is there any way of adding a small notice below the resized image like "Click here to View the Full Image" and then it's open in a new window?


All times are GMT. The time now is 05:36 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.01002 seconds
  • Memory Usage 1,728KB
  • 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)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