Image auto resizer
This modification is in the archives.
Hello
![]() Brief outline: This mod is designed to prevent images horizontally stretching the screen, while giving you the ability to revert them to their full size if you wish. How does this affect the user This is a silent script - after its installation, there is no configuration or further modification required. Lets see it then! There are two images of the mod in action attached. What versions will this support? Defiantly 3.5.3 and 3.5.0 (I believe it was RC2) although it was a slightly different string you needed to search for in the php file, but it's in essentially exactly the same. I imagine that with a little messing around, it'll support earlier versions also. Installation: First, download the attached zip file (autoresize.zip). A copy of these instructions are also there. Upload autoresize.js to /clientscripts/ from your forum directory. Log into your forum admin panel, go to styles & templates > style manager > edit templates. Edit the "SHOWTHREAD" template (Under Show Thread templates), find </head> Just above it, add Code:
<script type="text/javascript" src="clientscript/autoresize.js"></script> Repeat, adding it in the same place to the newthread template. Now, from your forum directory, open /includes/class_bbcode.php search for: Code:
return '<img src="' . $link . '" border="0" alt="" />'; Code:
return '<div style= "display: none; background-color: black; color: white" onClick="catflap_toggle_image_size(this); return false"> </div><img src="' . $link . '" onLoad="catflap_resize_image(this); return false;" border="0" />'; Should this be the case, open /clientscript/autoresize.js modify the 100 in Code:
size_available = winwidth - 100; Enjoy! ![]() Download This modification is archived and cannot be downloaded. Screenshots
|