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.htmlhttp://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?
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."'";
- 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."'";