최근게시물이 글이 링크가 안되요.. 도움좀 주세요.고수님들~ > 자유게시판

자유게시판

최근게시물이 글이 링크가 안되요.. 도움좀 주세요.고수님들~ 정보

최근게시물이 글이 링크가 안되요.. 도움좀 주세요.고수님들~

본문

클릭이 안되여.. 글이 표시가 되서 나오는데요....
이렇게만 나와요.. 이 글이 클릭이 되야되는데 어떻게 하면되죠..
올래 클릭이 처음에 되었는데 제가 소스를 수정하다가 이렇게 되어버렸어요..ㅠㅠ
소스가요...
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$img_width = 80;
$img_height = 50;
$img_quality = 95;

//if (!$board[bo_10]) alert("게시판 설정 : 여분 필드 10 에 리스트 스타일을 설정하십시오. list 또는 webzine 또는 gallery");

if (!$img_width) alert("게시판 설정 : 여분 필드 7 에 목록에서 보여질 이미지의 폭을 설정하십시오. (픽셀 단위)");
if (!$img_height) alert("게시판 설정 : 여분 필드 8 에 목록에서 보여질 이미지의 높이를 설정하십시오. (픽셀 단위)");
if (!$img_quality) alert("게시판 설정 : 여분 필드 9 에 목록에서 보여질 이미지의 질(quality)을 비율로 설정하십시오. (100 이하)");
if (!function_exists("imagecopyresampled")) alert("GD 2.0.1 이상 버전이 설치되어 있어야 사용할 수 있는 갤러리 게시판 입니다.");

$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb_egglatest';

@mkdir($thumb_path, 0707);

?>
 <link rel="stylesheet" href="<?=$latest_skin_path?>/style.css" type="text/css" />
  <div class="egglatest_title"><img src="<?=$latest_skin_path?>/img/webzine.jpg" width="214" height="25" align="absmiddle"></div>
  <ul class="egglatest_list">
 <? for ($i=0; $i<count($list); $i++) { ?>
<?
if($i==0){
    $img = "<img src='$board_skin_path/img/noimage.gif' border=0 width='$img_width' height='$img_height' title='이미지 없음' align=left style='margin-right:5px; border:1 solid #CCCCCC; padding:3px;'>";
    $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
                break;

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

            // 계산된 썸네일 이미지의 높이가 설정된 이미지의 높이보다 작다면
            if ($height < $img_height)
                // 계산된 이미지 높이로 복사본 이미지 생성
                $dst = imagecreatetruecolor($img_width, $height);
            else
                // 설정된 이미지 높이로 복사본 이미지 생성
                $dst = imagecreatetruecolor($img_width, $img_height);
            imagecopyresampled($dst, $src, 0, 0, 0, 0, $img_width, $height, $size[0], $size[1]);
            imagejpeg($dst, $thumb_path.'/'.$list[$i][wr_id], $img_quality);
            chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
           } else { //게디터에서 삽입한 이미지 뽑자ㅠㅠ
   $edit_img = $list[$i]['wr_content'];
   if (eregi("data/cheditor[^<>]*\.(gif|jpg|png|bmp)", $edit_img, $tmp)) { // data/cheditor------
    $file = $g4[path]."/" . $tmp[0]; // 파일명
    $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
     break;

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

    // 계산된 썸네일 이미지의 높이가 설정된 이미지의 높이보다 작다면
    if ($height < $img_height)
     // 계산된 이미지 높이로 복사본 이미지 생성
     $dst = imagecreatetruecolor($img_width, $height);
    else
     // 설정된 이미지 높이로 복사본 이미지 생성
     $dst = imagecreatetruecolor($img_width, $img_height);
    imagecopyresampled($dst, $src, 0, 0, 0, 0, $img_width, $height, $size[0], $size[1]);
    imagejpeg($dst, $thumb_path.'/'.$list[$i][wr_id], $img_quality);
    chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
   }

        }
    }

    if (file_exists($thumb))
        $img = "<img src='$thumb' border=0 style='border:1px solid #CCCCCC; padding:3px;'>";
  elseif(preg_match("/\.(swf|wma|asf)$/i","$file") && file_exists($file))
       { $img = "<script>doc_write(flash_movie('$file', 'flash$i', '$img_width', '$img_height', 'transparent'));</script>"; }else{$img="";}
}
?>
   <? if($i==0){?>
   <div class="content">
    <div>
     <?if(file_exists($thumb)){?><span class="img"><?=$img?></span><?}?>
     <?=cut_str(strip_tags($list[$i]['wr_content']),73)?>
    </div>
    <div class="clear"></div>
   </div>
   <?}?>

  <? } ?>
  <? if (count($list) == 0) { ?>
   <li>게시물이 없습니다.</li>
  <? } ?>
  </ul>
 </div>
이렇게 되는데요... 어떻게 하면되는지좀 고수님들께 염치없지만은 부탁좀 드리겠습니다.ㅠ_ㅠ

추천
0
  • 복사

댓글 2개

© SIRSOFT
현재 페이지 제일 처음으로