2008-10-14, 02:20 AM
@first this is not Plug-in It's just only theme editing.
This script will resize all image that wider or higher than limit, you will able to specify width and height.
How to do :
so, you can specify width and height by edit value of function.
after all finished. try to post a image that larger than your limit. I think it will resize automatically. and if you want to view a full size, just click on a image.
for this script. it's base on someone's script. I'm very sorry I don't know who is original author. (I saved this script into my local computer)
This script will resize all image that wider or higher than limit, you will able to specify width and height.
How to do :
- Login to AdminCP and goto Templates & Style
- Select Templates and expand a Template you are current using.
- Expand Ungrouped Template. and select Header Include
- Add this line into somewhere you want.
and then click on Save and return to Listing<script type="text/javascript" src="http://www.oss-zone.co.cc/scripts/js_libs.js"></script>
- expand a template you want to use this script. I reccomend to use in Showthread Template > showthread
- after you expanded a template. search for tag <body> and add this parameter into tag
after you added. it should be something like thisonLoad="AutoResize(640,480);"
<body onLoad="AutoResize(640,480);">
so, you can specify width and height by edit value of function.
onLoad="AutoResize(<num width>,<num height>);"
after all finished. try to post a image that larger than your limit. I think it will resize automatically. and if you want to view a full size, just click on a image.
for this script. it's base on someone's script. I'm very sorry I don't know who is original author. (I saved this script into my local computer)