Marris
08-01-2005, 07:58 PM
I am testing out a java "auto resize huge images" hack to preserve the formatting of my forum and portal with overly large images. I am running CMPS 2 and vB 3.0.8.
http://www.vbulletin.org/forum/showthread.php?t=90208
It didn't work on the portal until I made the following change to the adv_portal template:
replaced:
<body$onload>
with
<body onload="$onload; fiImageResize()">
Will this change break anything? The vBulletin default showthread template uses the following line:
<body onload="$onload">
So, I'm wondering if the adv_portal template $onload value is different from the variable used in showthread. And if so, is there a better location to add fiImageResize() to $onload for the script to work on the portal?
http://www.vbulletin.org/forum/showthread.php?t=90208
It didn't work on the portal until I made the following change to the adv_portal template:
replaced:
<body$onload>
with
<body onload="$onload; fiImageResize()">
Will this change break anything? The vBulletin default showthread template uses the following line:
<body onload="$onload">
So, I'm wondering if the adv_portal template $onload value is different from the variable used in showthread. And if so, is there a better location to add fiImageResize() to $onload for the script to work on the portal?