Auto Resize large images in an IMG tag
This modification is in the archives.
Sorry about my bad english
![]() With this small hack, all large images in an IMG Tag will be resized after the site has loaded. With a click on the resized imge, it will open in an new window with the original size. Works in Firefox, Opera, IE and i think in all other browser. Here is a Demo: http://www.gamesbay.de/index.php?t=128 Work with vB 3.7.x INSTALLATION: -------------------------------- - Copy the file resizevbimg.js in the dir clientscript. -------------------------------- Open the file includes/class_bbcode.php Search the line(~line 1932 ): Code:
return '<img src="' . $link . '" border="0" alt="" />'; Code:
return '<img src="' . $link . '" border="0" alt="" id="vBCodeIMG" />'; -------------------------------- Styles & Templates > Search the SHOWTHREAD Template Seach: Code:
<body onload="$onload"> Code:
<body onload="$onload;vbImageResize()"> -------------------------------- Styles & Templates > Search the newreply Template Search: Code:
<body$onload> Code:
<body onload="$onload;vbImageResize()"> -------------------------------- - Styles & Templates > Style Manager > Common Templates > headinclude Search: Code:
<!-- / CSS Stylesheet --> Code:
<script type="text/javascript" src="clientscript/resizevbimg.js"></script> -------------------------------- Styles & Templates > Style Manager > Main CSS > Additional CSS Definitions After, add: Code:
.vbimgcodelimit { cursor: pointer; border: dotted 1px black; } -------------------------------- Done ![]() Download
This modification is archived, downloads are still allowed. |
Similar Mods
Forum Display Enhancements Auto Resize large images in an IMG tag | vBulletin 3.6 Add-ons |
Auto Resize large images in an IMG tag | vBulletin 3.5 Add-ons |
Auto-Resize Large Images - EASY Version | vBulletin 3.5 Add-ons |