Clip bucket not displaying pictures

  • Zealous
  • Guru
  • Guru
  • User avatar
  • Posts: 1244
  • Loc: Sydney

Post 3+ Months Ago

I have clip bucket installed on my server and i have been trying to get it working but it needs some tweaking so here is the peice of code that is related to the problem around line 1700

Few lines down there will be "$dem = getimagesize(src);" that is the line that has the error on it.

Now similar issues have fixed this by changing the display code around to allow better file access from the source from what i have read. similar example that i found. http://www.joomlashack.com/community/in ... 142.0.html

http://angrybirdstube.com/

is the site i am working on and you can see the error in the right bar where it should display some pictures.

anyone has any idea?

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Zealous
  • Guru
  • Guru
  • User avatar
  • Posts: 1244
  • Loc: Sydney

Post 3+ Months Ago

think i sorted it

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 132 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.