Cubo de no mostrar imágenes de clip

  • Zealous
  • Guru
  • Guru
  • Avatar de Usuario
  • Registrado: Abr 15, 2011
  • Mensajes: 1195
  • Loc: Sydney
  • Status: Offline

Nota Agosto 8th, 2011, 11:05 pm

Tengo instalado en mi servidor de bote de clip y he intentado conseguirlo trabajando pero necesita algunos afinando así que aquí es la peice del código que está relacionado con el problema de la línea 1700

Pocas líneas allí será "$ dem = getimagesize(src);" es la línea que tiene el error en ella.

Cuestiones similares han resuelto esto cambiando el código de visualización alrededor para permitir un mejor acceso de archivo de la fuente de lo que he leído. ejemplo similar que encontré.http://www.joomlashack.com/community/in ... 142.0.html

http://angrybirdstube.com/

es el sitio que estoy trabajando y se puede ver el error en el derecho de la barra donde debe mostrar algunas fotos.

¿alguien tiene alguna idea?

Código: [ Select ]
if($p['output'] == 'html')
                        {
                            
                            $size = "_".$p['size'];
                                
                            $src = array_find($photo['filename'].$size,$thumbs);
                            if(empty($src))
                                $src = $this->default_thumb($size);
                            else
                                $src = $src;
                                    
                            $dem = getimagesize($src);
                            $width = $dem[0];
                            $height = $dem[1];
                            
                            $img = "<img ";
                            $img .= "src = '".$src."'";
                            
                            if($p['id'])
                                $img .= " id = '".mysql_clean($p['id'])."_".$photo['photo_id']."'";
                                
                            if($p['class'])
                                $img .= " class = '".mysql_clean($p['class'])."'";
                                
                            if($p['align'])
                                $img .= " align = '".$p['align']."'";
                            if(($p['width'] && is_numeric($p['width'])) && ($p['height'] && is_numeric($p['height'])))
                            {
                                $height = $p['height'];
                                $width = $p['width'];    
                            }
                            elseif($p['width'] && is_numeric($p['width']))
                            {
                                $height = round($p['width'] / $width * $height);
                                $width = $p['width'];
                            }
                            elseif($p['height'] && is_numeric($p['height']))
                            {
                                $width = round($p['height'] * $width / $height);
                                $height = $p['height'];     
                            }
                            
                            $img .= " width = '".$width."'";
                            $img .= " height = '".$height."'";
  1. if($p['output'] == 'html')
  2.                         {
  3.                             
  4.                             $size = "_".$p['size'];
  5.                                 
  6.                             $src = array_find($photo['filename'].$size,$thumbs);
  7.                             if(empty($src))
  8.                                 $src = $this->default_thumb($size);
  9.                             else
  10.                                 $src = $src;
  11.                                     
  12.                             $dem = getimagesize($src);
  13.                             $width = $dem[0];
  14.                             $height = $dem[1];
  15.                             
  16.                             $img = "<img ";
  17.                             $img .= "src = '".$src."'";
  18.                             
  19.                             if($p['id'])
  20.                                 $img .= " id = '".mysql_clean($p['id'])."_".$photo['photo_id']."'";
  21.                                 
  22.                             if($p['class'])
  23.                                 $img .= " class = '".mysql_clean($p['class'])."'";
  24.                                 
  25.                             if($p['align'])
  26.                                 $img .= " align = '".$p['align']."'";
  27.                             if(($p['width'] && is_numeric($p['width'])) && ($p['height'] && is_numeric($p['height'])))
  28.                             {
  29.                                 $height = $p['height'];
  30.                                 $width = $p['width'];    
  31.                             }
  32.                             elseif($p['width'] && is_numeric($p['width']))
  33.                             {
  34.                                 $height = round($p['width'] / $width * $height);
  35.                                 $width = $p['width'];
  36.                             }
  37.                             elseif($p['height'] && is_numeric($p['height']))
  38.                             {
  39.                                 $width = round($p['height'] * $width / $height);
  40.                                 $height = $p['height'];     
  41.                             }
  42.                             
  43.                             $img .= " width = '".$width."'";
  44.                             $img .= " height = '".$height."'";
  • Anonymous
  • Bot
  • No Avatar
  • Registrado: 25 Feb 2008
  • Mensajes: ?
  • Loc: Ozzuland
  • Status: Online

Nota Agosto 8th, 2011, 11:05 pm

  • Zealous
  • Guru
  • Guru
  • Avatar de Usuario
  • Registrado: Abr 15, 2011
  • Mensajes: 1195
  • Loc: Sydney
  • Status: Offline

Nota Agosto 8th, 2011, 11:47 pm

Creo que lo ordenan

Publicar Información

  • Total de mensajes en este tema: 2 mensajes
  • Usuarios navegando por este Foro: ScottG y 188 invitados
  • No puede abrir nuevos temas en este Foro
  • No puede responder a temas en este Foro
  • No puede editar sus mensajes en este Foro
  • No puede borrar sus mensajes en este Foro
  • No puede enviar adjuntos en este Foro
 
 

© 2011 Unmelted, LLC. Ozzu® es una marca registrada de Unmelted, LLC