A ver tenia u foro en un server y l he cambiado de Sitio:
He subido todas las BD's casi 50Mb archivos y demas y me encuentro que despues de todo el palizon hay uan tonteria que no me explico porque en un foro si funciona y en otro no...
El resize que hace que una imagen se mas peque de X pixells si esta es mas grande, para que el foro no se descuadre, no entiendo.
He mirado el display.php que se supone que es el archivo que hace esto y no lo entiendo, porque no lo hace... parecen correctas las sentencias:
Quote//start resize/restrict posted images mod by Mostmaster
$maxwidth = $modSettings['maxwidth'];
$maxheight = $modSettings['maxheight'];
$imagesize = @getimagesize("$modSettings[attachmentUrl]/$message[attachmentFilename]");
$width = $imagesize[0];
$height = $imagesize[1];
if(!($maxwidth=="0" && $maxheight=="0") && ($width>$maxwidth || $height>$maxheight)){
if($width>$maxwidth && $maxwidth!="0"){
$height = floor($maxwidth/$width*$height);
$width = $maxwidth;
if($height>$maxheight && $maxheight!="0"){
$width = floor($maxheight/$height*$width);
$height = $maxheight;
}
}else{
if($height>$maxheight && $maxheight!="0"){
$width = floor($maxheight/$height*$width);
$height = $maxheight;
}
}
$attachImage = "<hr color=gray size=1><SPAN id=imgObj style=\"FILTER: progid:DXImageTransform.Microsoft.dropShadow(offX=5, offY=5); WIDTH:1; HEIGHT:1;\">
<img src=\"$modSettings[attachmentUrl]/$message[attachmentFilename]\" width=\"$width\" height=\"$height\"></div>";
}else{
$attachImage = "<hr color=gray size=1><SPAN id=imgObj style=\"FILTER: progid:DXImageTransform.Microsoft.dropShadow(offX=5, offY=5); WIDTH:1; HEIGHT:1;\">
<img src=\"$modSettings[attachmentUrl]/$message[attachmentFilename]\"></div>";
}
//end resize/restrict posted images mod by Mostmaster
y en la BD esta bien creada la TABLA settings que es de la cual coje los datos esta funcion y en la caul desde admin puedo configurar sin darme ningun problema