Welcome, Guest. Please Login or Register.
April 28, 2025, 09:18:19 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Language Specific User Help  |  Español  |  NO FUNCIONA EL RESIZE DE LAS IMAGENES « previous next »
Pages: [1] Reply Ignore Print
Author Topic: NO FUNCIONA EL RESIZE DE LAS IMAGENES  (Read 454 times)
PeterPaul
Sr. Member
****
Posts: 262


Los buenos simpre ganan, paciencia amigos.

ICQ - 92250610peterpaulxxx@hotmail.com WWW
NO FUNCIONA EL RESIZE DE LAS IMAGENES
« on: November 24, 2002, 01:43:05 AM »
Reply with quote

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
Logged

==================================
Saludos Cordiales
Fdo: PeterPaul

WEBMASTERS PETERPAULXXX.COM
http://www.peterpaulxxx.com
Relatos Eroticos
http://www.peterpaulxxx.com/relatos
Foro de Oficial de PETERPAULXXX
http://www.peterpaulxxx.com/foro
==================================
PeterPaul
Sr. Member
****
Posts: 262


Los buenos simpre ganan, paciencia amigos.

ICQ - 92250610peterpaulxxx@hotmail.com WWW
Re:NO FUNCIONA EL RESIZE DE LAS IMAGENES
« Reply #1 on: November 24, 2002, 11:43:06 PM »
Reply with quote

Esto puede ser por alguna movida del server o por algun chmod, es raro, alguien puede ayudarme?
Logged

==================================
Saludos Cordiales
Fdo: PeterPaul

WEBMASTERS PETERPAULXXX.COM
http://www.peterpaulxxx.com
Relatos Eroticos
http://www.peterpaulxxx.com/relatos
Foro de Oficial de PETERPAULXXX
http://www.peterpaulxxx.com/foro
==================================
PeterPaul
Sr. Member
****
Posts: 262


Los buenos simpre ganan, paciencia amigos.

ICQ - 92250610peterpaulxxx@hotmail.com WWW
Re:NO FUNCIONA EL RESIZE DE LAS IMAGENES
« Reply #2 on: November 27, 2002, 01:48:08 AM »
Reply with quote

nadie puede ayudarme??  :'( :'( :'(
Logged

==================================
Saludos Cordiales
Fdo: PeterPaul

WEBMASTERS PETERPAULXXX.COM
http://www.peterpaulxxx.com
Relatos Eroticos
http://www.peterpaulxxx.com/relatos
Foro de Oficial de PETERPAULXXX
http://www.peterpaulxxx.com/foro
==================================
Omar Bazavilvazo
YaBB SE Developer
YaBB God
*****
Posts: 2153


I never said I would stay to the end...

WWW
Re:NO FUNCIONA EL RESIZE DE LAS IMAGENES
« Reply #3 on: November 27, 2002, 04:29:00 AM »
Reply with quote

Je.. si no contesto nadie lo hace *sniff*

Ando algo ocupadon con unas cosas de YSE.. pero pues a ver en que te puedo ayudar :P

Cual es la direccion de tu foro?

cuando activas y desactivas el resize, si te respeta los cambios?
Segun yo, en settings.php debe estar el tamaño maximo de las imagenes...

revisame y avisame si jala, mandame un mensaje con tus datos para contactarte.

ja ne!
Logged

Greetings from México!
http://omarbazavilvazo.com
Mi foro Español-Japonés
http://hablajapones.org
http://hablajapones.org/index.php/japones/tutoriales/b16.php

NO me manden IM para soporte o dudas
...Leo los foros como todos...
PeterPaul
Sr. Member
****
Posts: 262


Los buenos simpre ganan, paciencia amigos.

ICQ - 92250610peterpaulxxx@hotmail.com WWW
Re:NO FUNCIONA EL RESIZE DE LAS IMAGENES
« Reply #4 on: November 27, 2002, 09:59:40 PM »
Reply with quote

Si me guarda todo perfectamente...

En la BD en la de yabbse_settings voy a ver si lo escribe enm settings.php
Logged

==================================
Saludos Cordiales
Fdo: PeterPaul

WEBMASTERS PETERPAULXXX.COM
http://www.peterpaulxxx.com
Relatos Eroticos
http://www.peterpaulxxx.com/relatos
Foro de Oficial de PETERPAULXXX
http://www.peterpaulxxx.com/foro
==================================
PeterPaul
Sr. Member
****
Posts: 262


Los buenos simpre ganan, paciencia amigos.

ICQ - 92250610peterpaulxxx@hotmail.com WWW
Re:NO FUNCIONA EL RESIZE DE LAS IMAGENES
« Reply #5 on: November 27, 2002, 10:14:20 PM »
Reply with quote

Hola lo he comprobado y en el settings se escribe el maximo de with pero de los AVATARS esternos no de las imagenes que se suben como attachments...


Esta config se guarda en COnfiguracion y Mods instalados y cuando la cambio efectivamente me guarda bien los datos y no tengo ningun eror de sql en todo el foro mi foro es:

http://www.peterpaulxxx.com/foro

mail: [email protected]
hotmail:  [email protected]

Si necesitas algo no lo dudes... en display.php es donde esta la condicion pero si subes un archivoque es mas grande de tal deberia calcular y poner witdth y height no pone nada y solo escribe el php <img src=archivo>
Logged

==================================
Saludos Cordiales
Fdo: PeterPaul

WEBMASTERS PETERPAULXXX.COM
http://www.peterpaulxxx.com
Relatos Eroticos
http://www.peterpaulxxx.com/relatos
Foro de Oficial de PETERPAULXXX
http://www.peterpaulxxx.com/foro
==================================
Omar Bazavilvazo
YaBB SE Developer
YaBB God
*****
Posts: 2153


I never said I would stay to the end...

WWW
Re:NO FUNCIONA EL RESIZE DE LAS IMAGENES
« Reply #6 on: November 29, 2002, 04:39:12 AM »
Reply with quote

Crea un archivo (info.php) con lo siguiente:

<?php

phpinfo();

?>

Revisa si la libreria GD esta instalada...

te agregue en el MSN, pero no te he visto en linea :P
Logged

Greetings from México!
http://omarbazavilvazo.com
Mi foro Español-Japonés
http://hablajapones.org
http://hablajapones.org/index.php/japones/tutoriales/b16.php

NO me manden IM para soporte o dudas
...Leo los foros como todos...
PeterPaul
Sr. Member
****
Posts: 262


Los buenos simpre ganan, paciencia amigos.

ICQ - 92250610peterpaulxxx@hotmail.com WWW
Re:NO FUNCIONA EL RESIZE DE LAS IMAGENES
« Reply #7 on: November 29, 2002, 08:12:11 PM »
Reply with quote

Gracias Omar

En cuanto los Tecnicos me digan algo vemos si se soluciona el problema de aquella libreria,...

Muchas gracias!
Logged

==================================
Saludos Cordiales
Fdo: PeterPaul

WEBMASTERS PETERPAULXXX.COM
http://www.peterpaulxxx.com
Relatos Eroticos
http://www.peterpaulxxx.com/relatos
Foro de Oficial de PETERPAULXXX
http://www.peterpaulxxx.com/foro
==================================
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Language Specific User Help  |  Español  |  NO FUNCIONA EL RESIZE DE LAS IMAGENES « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.047 seconds with 17 queries.