그룹최신갤러리.. > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

그룹최신갤러리.. 정보

그룹최신갤러리..

본문

 
안녕하세요.
 
그룹 최신 갤러리를 하려고 합니다.
현재 cunic_group를 잘 적용하고 있고 아주 좋은 소스라고 생각됩니다.
그런데 이미지가 안나옵니다.
적용한사이트입니다. http://ehanguo.com
 
어떤문제가 있는지 고수님들 부탁드립니다.
 
수고하세요^^
  • 복사

댓글 전체

latest.skin.php 입니다.
<?
if (!defined("_GNUBOARD_")) exit; // °³º° Æ&auml;&Agrave;&Igrave;&Aacute;&ouml; &Aacute;&cent;±&Ugrave; º&Ograve;°¡

$latest_img    = "$g4[path]/img/latest/";

?>
<style>
.rtop, .rbottom{display:block; background: #ffffff;} 
.rtop *, .rbottom *{display: block; height: 1px; overflow: hidden; background: #F0F0F0;}
.rtop2, .rbottom2{display:block; background: #f0f0f0;}
.rtop2 *, .rbottom2 *{display: block; height: 1px; overflow: hidden; background: #f9f9f9;}
.rtop3, .rbottom3{display:block; background: #ffffff;} 
.rtop3 *, .rbottom3 *{display: block; height: 1px; overflow: hidden; background: #0099FF;}
.rtop5, .rbottom5{display:block; background: #ffffff;} 
.rtop5 *, .rbottom5 *{display: block; height: 1px; overflow: hidden; background: #0099FF;}
.rtop6, .rbottom6{display:block; background: #ffffff;} 
.rtop6 *, .rbottom6 *{display: block; height: 1px; overflow: hidden; background: #0099FF;}
.r1{margin: 0 5px}
.r2{margin: 0 3px}
.r3{margin: 0 2px}
.r4{margin: 0 1px; height: 2px}
.r5{margin: 0 5px}
.r6{margin: 0 3px}
.r7{margin: 0 2px}
.r8{margin: 0 1px; height: 2px}
</style>
<!-- <?=$board[bo_subject]?> (<?=$board[bo_table]?>) &Atilde;&Ouml;½&Aring;±&Ucirc; -->
<div style="width:250px;background: #F0F0F0" align=center>
  <table width="260" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="29" height=""></td>
      <td width="19"></td>
    </tr>
  </table>
  <table width="260" cellpadding=0 cellspacing=0>
    <tr>
      <td width=50% height=5 valign=top></td>
    </tr>
  </table>
  <table width="280" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <?

for ($k=0; $k<count($list); $k++)
{
    if ($k > 0)
    $title =  cut_str(get_text($list[$k][wr_subject]),20);
    $content = cut_str(get_text($list[$k][wr_content]),40);
    $img = "$g4[path]/data/file/{$list[$k][bo_table]}/".urlencode($list[$k][file][0][file]);
    if (!file_exists($img) || !$list[$k][file][0][file])
    $img = "$latest_skin_path/img/no_image.gif";
    $href = "$g4[bbs_path]/board.php?bo_table=$bo_table";
$thumbx=60;
$thumby=55;
$thumbyy = $thumby+6;
    $destfile =$img.'Thumb';

$size = @getimagesize($img);
if(is_array($size) && !is_file($destfile)) {
switch($size[2]) {
case(1) :
if(function_exists('ImageCreateFromGif')) $im = ImageCreateFromGif($img);
break;
case(2) :
if(function_exists('ImageCreateFromJpeg')) $im = ImageCreateFromJpeg($img);
break;
case(3) :
if(function_exists('ImageCreateFromPng')) $im = ImageCreateFromPng($img);
break;
}
$fixsize = mando_image_size($size[0], $size[1], $thumbx, $thumby);
if($im) {
if($k==0) @exec("rm ".dirname($_SERVER[SCRIPT_FILENAME])."/data/file/$bo_table/*Thumb-rf");
if(function_exists('ImageCreateTrueColor')) $newim = ImageCreateTrueColor($fixsize[x],$fixsize[y]);
else $newim = ImageCreate($fixsize[x],$fixsize[y]);
if(function_exists('ImageCopyResampled')) ImageCopyResampled($newim,$im,0,0,0,0,$fixsize[x],$fixsize[y],$size[0],$size[1]);
else ImageCopyResized($newim,$im,0,0,0,0,$fixsize[x],$fixsize[y],$size[0],$size[1]);
ImageDestroy($im);
ImageJpeg($newim, $destfile, 100);
ImageDestroy($newim);
unset($im, $newim);
}
$list[$k][img][x] = $fixsize[x];
$list[$k][img][y] = $fixsize[y];
} else {
if(is_file($destfile)) {
$size = @getimagesize($destfile);
$list[$k][img][x] = $size[0];
$list[$k][img][y] = $size[1];
} else {
$img = "";
$size = @getimagesize($img);
$list[$k][img][x] = $thumbx;
$list[$k][img][y] = $thumby;
}
}
if(is_file($destfile))$img = $destfile;
if($k==0){
    echo <<<HEREDOC
    <td align="center" width="86">
<table width=100 cellpadding="0" cellspacing="0" border="0" style="padding:0px;">
<tr align=center>
<td width=100 align="center"  style='padding-top:0px;'>
    <div align=center><table width=70 align="center"  bgcolor='#ffffff' cellpadding="3" cellspacing="0" border="0">
<tr><td width="70" height="65" align="center" valign="middle" style='border:0px solid #cfcfcf'><a href="{$list[$k][href]}"><img src=" {$destfile}" width="70" height="65" border="0" alt="$content"></a></td>
</tr>
</table></div>
</td>
</tr>
<tr>
<td height=17 align="center" valign="middle" style='padding-top:5px;padding-bottom:5px;border:0px solid #777777'><a href="{$list[$k][href]}" style='font-family:&micro;¸¿&ograve;;font-size:11px;color:#336666'>{$list[$k][wr_subject]}</a></td>
</tr>
</table>
</td>
<td align="center" >
<table width="280" height=90 cellpadding="0" cellspacing="0" border="0" style="padding:0px;" >
HEREDOC;
}else{
echo <<<HEREDOC
  <tr>
<td height=17 align="left" valign="middle" style='padding-top:2px;padding-bottom:2px;border:0px solid #777777'><img src="$latest_skin_path/img/board_icon.gif" width="9" height="13"> <a href="{$list[$k][href]}" style='font-family:&micro;¸¿&ograve;;font-size:12px;color:#336666'>[{$list[$k][bo_subject]}]$title</a></td>
</tr>
HEREDOC;
if($i<(count($list)-1)){echo "<tr><td colspan='9' height='1' background='$latest_skin_path/img/dot_bg.gif'></td></tr>";}

}
}
?>
  </table>
  </td> </tr> </table></div>
© SIRSOFT
현재 페이지 제일 처음으로