프리 최신글을 사용했는데 좀 도와주세요..오류가 생겼어요.. > 그누4 질문답변

그누4 질문답변

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

프리 최신글을 사용했는데 좀 도와주세요..오류가 생겼어요.. 정보

프리 최신글을 사용했는데 좀 도와주세요..오류가 생겼어요..

본문

안녕하세요..^^
하악하악님이 공개해주신
http://sir.co.kr/bbs/tb.php/g4_skin/61203/7dfddc01ef0e63412529e8f4874ba781
프리 최신글을 다운받아 유용하게 쓰고 있습니다.^^ 
그런데요..
스킨 소스도 수정 안했는데요..
사진나오는 red_latest_v27 스킨이 적용하니까 첨부한사진처럼 나와서요..
해결방법좀요..^^  도와주세요~~
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!function_exists("imagecopyresampled")) alert("GD 2.0.1 이상 버전이 설치되어 있어야 사용할 수 있는 스킨 입니다.");

$la_content = "100"; //내용길이
$img_w = "100"; //썸네일 가로
$img_h = "55"; //썸네일 세로

$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb_'.$img_w.'_'.$img_h;

@mkdir($thumb_path, 0707);
@chmod($thumb_path, 0707);
?>
<style type="text/css">
#photo_v27_img, #photo_v27_list{float:left}
#photo_v27_img{width:100px;border:1px solid #CCCCCC;padding:3px;}
#photo_v27_list{width:410px;height:80px;padding:0 0 0 5px;}
.photo_v27_sub{height:18px;}
</style>
<?
for ($i=0; $i<count($list); $i++) {
//썸네일 코드 시작
    $img = "<div style='width:100px;height:55px;'></div>";
    $thumb = $thumb_path.'/'.$list[$i][wr_id];
    if (!file_exists($thumb))
    {
        $file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
        if (preg_match("/\.(jp[e]?g|gif|png)$/i", $file) && file_exists($file))
        {
            $size = getimagesize($file);
            if ($size[2] == 1)
                $src = imagecreatefromgif($file);
            else if ($size[2] == 2)
                $src = imagecreatefromjpeg($file);
            else if ($size[2] == 3)
                $src = imagecreatefrompng($file);
            else
                continue;

            $rate = $img_w / $size[0];
            $height = (int)($size[1] * $rate);

            if ($height < $img_h)
                $dst = imagecreatetruecolor($img_w, $height);
            else
                $dst = imagecreatetruecolor($img_w, $img_h);
            imagecopyresampled($dst, $src, 0, 0, 0, 0, $img_w, $height, $size[0], $size[1]);
            imagejpeg($dst, $thumb_path.'/'.$list[$i][wr_id], 100);
            chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
        }
    }

    if (file_exists($thumb))
        $img = "<img src='$thumb' align='absmiddle' border='0'>";

    $href = "{$list[$i][href]}";
   
    $subject = "<span $style>".cut_str($list[$i][subject],1000)."</span>";
    $wr_content = "<span $style>".cut_str(strip_tags($list[$i][wr_content]),$la_content)."</span>";

// 출력
    echo <<<HEREDOC
<div>
 <div id="photo_v27_img"><a href='{$href}' onfocus='this.blur()'>{$img}</a></div>
 <div id="photo_v27_list">
  <div class="photo_v27_sub"><a href='{$href}'><strong>{$subject}</strong></a></div>
  <div><a href='{$href}'>{$wr_content}</a></div>
 </div>
</div>
HEREDOC;
}
?>
<? if (count($list) == 0) { ?>
<div style="height:25px;" align="center">게시물이 없습니다.</div>
<? } ?>
  • 복사

댓글 전체

" ... 사진나오는 red_latest_v27 스킨이 적용하니까 첨부한사진처럼 나와서요..
해결방법좀요..^^  도와주세요~~  ..."

뭘 해결해 달라는 말씀이신지......
http://sir.co.kr/bbs/tb.php/g4_skin/61203/7dfddc01ef0e63412529e8f4874ba781
들어가보시면
나오는 거랑
제목부분 및 내용 부분 테이블이 틀리자나요.. ㅠ.ㅠ;;
제목및 내용 이 이미지 옆에 와야 하는데 아래로 내려와 있자나요
다른 곳에서 <div가 padding이나 margin이 있는지 확인해 보세요.
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
© SIRSOFT
현재 페이지 제일 처음으로