Seau de clip n'affichant ne pas pictures

  • Zealous
  • Guru
  • Guru
  • Avatar de l’utilisateur
  • Inscription: Avr 15, 2011
  • Messages: 1195
  • Loc: Sydney
  • Status: Offline

Message Août 8th, 2011, 11:05 pm

J'ai seau clip installé sur mon serveur et j'ai essayé d'obtenir ce travail, mais il a besoin de certains tweaking donc ici est l'élément de code qui est liée au problème autour de ligne 1700

Quelques lignes à cet endroit sera "$ dem = getimagesize(src);" C'est la ligne de l'erreur sur elle.

Maintenant des questions similaires ont ceci fixe en changeant le code d'affichage autour pour permettre le meilleur accès de fichier de la source de ce que j'ai lu. exemple similaire que j'ai trouvé.http://www.joomlashack.com/community/in ... 142.0.html

http://angrybirdstube.com/

le site sur que je travaille et vous pouvez voir l'erreur dans le droit bar où il doit afficher des photos.

quelqu'un a une idée ?

Code: [ 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
  • Inscription: 25 Feb 2008
  • Messages: ?
  • Loc: Ozzuland
  • Status: Online

Message Août 8th, 2011, 11:05 pm

  • Zealous
  • Guru
  • Guru
  • Avatar de l’utilisateur
  • Inscription: Avr 15, 2011
  • Messages: 1195
  • Loc: Sydney
  • Status: Offline

Message Août 8th, 2011, 11:47 pm

pense que j'ai trié il

Afficher de l'information

  • Total des messages de ce sujet: 2 messages
  • Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 112 invités
  • Vous ne pouvez pas poster de nouveaux sujets
  • Vous ne pouvez pas répondre aux sujets
  • Vous ne pouvez pas éditer vos messages
  • Vous ne pouvez pas supprimer vos messages
  • Vous ne pouvez pas joindre des fichiers
 
 

© 2011 Unmelted, LLC. Ozzu® est une marque déposée de Unmelted, LLC