- Ecco la Mod per Ridimensionare gli Allegati, che si inseriscono con il Tag [img]
[php]
#-----[ OPEN ]------------------------------------------
styles/prosilver/template/viewtopic_body.html
#-----[ FIND ]------------------------------------------
<!-- ELSE -->
<strong>{L_FORUM_RULES}</strong><br />
{FORUM_RULES}
<!-- ENDIF -->
<span class="corners-bottom"><span></span></span></div>
</div>
<!-- ENDIF -->
#-----[ AFTER , ADD ]------------------------------------------
note : you may change( 600px) to whatever you want
<script>
window.onload = resizeimg;
function resizeimg()
{
if (document.getElementsByTagName)
{
for (i=0; i<document.getElementsByTagName('img').length; i++)
{
im = document.getElementsByTagName('img')*;
if (im.width > 600)
{
im.style.width = '600px';
eval("pop" + String(i) + " = new Function("pop = window.open('" + im.src + " ','fullscale','width=400,height=400,scrollbars=1,resizable=1'); pop.focus();")");
eval("im.onclick = pop" + String(i) + ";");
if (document.all) im.style.cursor = 'hand';
if (!document.all) im.style.cursor = 'pointer';
im.title = 'Click Here To See Image Full Size ';
}
}
}
}
</script>
#-----[ OPEN ]------------------------------------------
styles/subsilver2/template/viewtopic_body.html
#-----[ FIND ]------------------------------------------
<!-- INCLUDE overall_header.html -->
#-----[ AFTER , ADD ]------------------------------------------
note : you may change( 600px) to whatever you want
<script>
window.onload = resizeimg;
function resizeimg()
{
if (document.getElementsByTagName)
{
for (i=0; i<document.getElementsByTagName('img').length; i++)
{
im = document.getElementsByTagName('img')*;
if (im.width > 600)
{
im.style.width = '600px';
eval("pop" + String(i) + " = new Function("pop = window.open('" + im.src + " ','fullscale','width=400,height=400,scrollbars=1,resizable=1'); pop.focus();")");
eval("im.onclick = pop" + String(i) + ";");
if (document.all) im.style.cursor = 'hand';
if (!document.all) im.style.cursor = 'pointer';
im.title = 'Click Here To See Image Full Size ';
}
}
}
}
</script>
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
EoM [/php]
Facilissima da installare. Consigliata.