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)
-   -   Auto resize Huge images for [IMG] bbcode (https://vborg.vbsupport.ru/showthread.php?t=68677)

SVTBlackLight01 08-27-2004 03:34 PM

Actually in this case, all I did was resaved an existing post that already had images using the [img] tags.

YLP1 08-28-2004 10:48 PM

I installed this mod but pics in the forums didn't resize. I read in one of the posts to increase the 255 to force the graphic added to be smaller but that didn't work....

Does this mod only work for new posts after the mod was installed?

007pig 08-29-2004 05:09 AM

Quote:

Originally Posted by YLP1
I installed this mod but pics in the forums didn't resize. I read in one of the posts to increase the 255 to force the graphic added to be smaller but that didn't work....

Does this mod only work for new posts after the mod was installed?

yes. or you can clear post cache.

PIF 08-29-2004 04:50 PM

I can't get this working, does this hack not work on version 3.0 ?

y2krazy 08-30-2004 06:37 PM

I was going to install this, but because you cannot specify a specific width to limit the re-sized images to(as in, what width the re-sizing should begin at), I choose to edit this hack out and not use it any longer. If you can get it to be able to specify a given width, and not just "255" and such, that would be a lot easier, and a lot more understandable. Thanks.

Tradjick 12-03-2004 01:37 PM

Yes, you can specify a width. For my needs i chose "500px"

Here?s the function:

PHP Code:

function handle_bbcode_img_match($link)
{       
global 
$vboptions;
$link strip_smilies(str_replace('\\"''"'$link));
 
// remove double spaces -- fixes issues with wordwrap
$link str_replace('  '''$link);
if (
$vboptions['legacypostbit'])
{
return 
'<a href=' $link ' target="_self"><img src="' $link '" onload="if(this.width>500) {this.width=500;this.alt=\'Full View\';}" onmouseover="if(this.alt) this.style.cursor=\'hand\';" border="2" border-style="risen"></a>';
}
else
    {
 return 
'<a href=' $link ' target="_self"><img src="' $link '" onload="if(this.width>650) {this.width=650;this.alt=\'Full View\';}" onmouseover="if(this.alt) this.style.cursor=\'hand\';" border="0"></a>';
    }


Many thanks to the author! I love it!

PS: Isn?t there a way of copying code from UEdit to vB so that one hasn?t got to edit every line break?

Tradjick 12-03-2004 08:06 PM

Is there a way that images that haven´t been resized don´t appear as a link?

Niak 12-04-2004 09:05 AM

hi all
very nice hack thx a lot

Skyline_GT 12-06-2004 01:23 AM

how do you fix this?
http://www.gamerzplanet.net/forums/s...295#post272295

ShaanuJaanu 12-07-2004 10:38 PM

nope..it doesnt resize anything.. :(


All times are GMT. The time now is 02:42 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
  • Page Generation 0.01280 seconds
  • Memory Usage 1,739KB
  • 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)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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