Lost in Time
Posts: 0
Reputation:
|
Post by Deleted on Feb 17, 2013 10:47:26 GMT -5
whenever a user posts a big image it just stretches the forums and it's pretty annoying could we please have a resizer?
<script type="text/javascript"> <!-- /* Modify image size to fit forum By Todge Please keep this header intact */
var picWidth = '500'; //Maximum image width.. var picHeight = '200'; //Maximum image height..
var pics = document.images;
if(window.addEventListener) { window.addEventListener('load', imageSize, false); } else if(window.attachEvent) { window.attachEvent('onload', imageSize); } else { window.onload = imageSize; }
function imageSize() { var p=pics.length-1; while(p>-1) { if(pics[p].alt=='[image] ') { if(pics[p].width>picWidth || pics[p].height>picHeight) { var thisPicWidth = picWidth; if(pics[p].height/(pics[p].width/picWidth)>picHeight) { thisPicWidth = pics[p].width/(pics[p].height/picHeight) } var newWidth = 100-parseInt(thisPicWidth/pics[p].width*100); var picLoaded = document.createElement('A'); picLoaded.setAttribute('href',pics[p].src); picLoaded.setAttribute('target','_blank'); picLoaded.innerHTML = '<font size="0"></font><br><img src="'+pics[p].src+'" width="'+thisPicWidth+'" border="0">'; pics[p].parentNode.replaceChild(picLoaded,pics[p]); }} p--; }} // --> </script>
goes in the global footer. you can obviously modify the max height / width
|
|
Lost in Time
Posts: 0
Reputation:
|
Post by Deleted on Feb 17, 2013 10:52:50 GMT -5
Before we had it i donno what happen to it.
|
|
|
Post by burne on Feb 17, 2013 12:47:37 GMT -5
Its already on the forum
|
|
|
Post by ♪ *~ Lola ~* ♪ on Feb 17, 2013 12:48:34 GMT -5
We had it for a few years. Stopped working a week ago
|
|
|
Post by Mister Big on Feb 17, 2013 12:50:15 GMT -5
Its a feature in v5. It was probably removed so it doesn't copy twice.
|
|
Lost in Time
Posts: 0
Reputation:
|
Post by Deleted on Feb 17, 2013 12:51:41 GMT -5
We had it for a few years. Stopped working a week ago Obama made it stop!
|
|
|
Post by SuperShark on Feb 17, 2013 12:52:55 GMT -5
I think Fenrir and Yarn had written their own. It wad working until last week
|
|
|
Post by damone on Feb 17, 2013 12:59:19 GMT -5
Still works here.
|
|
|
Post by blackmagic on Feb 17, 2013 13:01:55 GMT -5
I think Fenrir and Yarn had written their own. It wad working until last week This and it was removed for v5
|
|
Lost in Time
Posts: 0
Reputation:
|
Post by Deleted on Feb 17, 2013 13:51:24 GMT -5
balls
thanks for the heads up
|
|
|
Post by Charlie B Goode on Feb 17, 2013 14:35:03 GMT -5
Yeah I miss it. But it's a part of v5. I guess duplicates were removed.
|
|
|
Post by Apricky on Feb 17, 2013 16:18:32 GMT -5
Wait for xea to reply.
|
|
|
Post by xea989 on Feb 17, 2013 22:11:06 GMT -5
A similar script was used to resize images.
Yarn and Fenrir are in the process of working on the v5 forum. So they removed some codes that won't be needed.
They are recoding everything else.
I can ask her if she wants to put it back temporarily so the Gallery looks better.
|
|
|
Post by darckonquest on Feb 18, 2013 2:55:31 GMT -5
We had it for a few years. Stopped working a week ago Obama made it stop! k, I lol'd : D -darc
|
|
|
Post by bigballofyarn on Feb 18, 2013 6:58:59 GMT -5
The image resizer is still present and appears to be working fine. You can click here and see for yourself.
|
|