vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Auto resize large image (https://vborg.vbsupport.ru/showthread.php?t=99286)

dtzy 11-06-2006 04:06 PM

I found this is the easiest mod for image resize.

I have modified the code slight, and there is only one modification to be made at class_bbcode.php:

replace:
Code:

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

Code:



There is nothing to be done at headinclude.

                      return '<img src="' . $link . '" onload="if(this.width > 700) {this.width=700;this.alt=\'Click here to see a large version\';}" onmouseover="if(this.alt) this.style.cursor=\'pointer\';" onclick="if(this.alt) window.open(\'' . $link . '\');" border="0" />';


GlitterKill 05-04-2007 01:51 PM

Still a great working hack with vb 3.6.5. I use it alot and love it. :)

radarhunter 06-20-2007 06:28 AM

i wanted sumthin` which can reduce the size of the file on Vbadvanced cmps too

cause this code works only for the forum.

BabyNameAddict 08-21-2007 12:17 PM

I am hoping someone will be able to help me out. Somehow I ended up having both lines (the "find" and the "replace") deleted, and now I can't figure out where to put back the "find" text! If someone could cut and paste the line of code before
Code:

return '<img src="' .  $link . '" border="0" alt="" />';
or the block it's in, I would really appreciate it! Thanks!

FCS-Webmaster 08-23-2007 07:25 PM

Quote:

Originally Posted by CBE (Post 804779)
This is the best image resizer i have seen,,
thank u very much

Years passing by...and I still do agree with this!!!!!!

evervoid 07-03-2009 03:03 PM

Does this work with 3.8.x?

Saqibm 07-04-2009 06:14 AM

Yes I have it working on 3.8.2.

opl 07-16-2009 06:26 AM

Best tip for autoresize. No more slowly mods;]
Works on 372 and 383


All times are GMT. The time now is 08:01 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.03024 seconds
  • Memory Usage 1,726KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (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
  • (8)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