게시판 목록에서 썸네일이 아닌 이미지 원본을 쓰고 싶은데 ㅜ

게시판 목록에서 썸네일이 아닌 이미지 원본을 쓰고 싶은데 ㅜ

QA

게시판 목록에서 썸네일이 아닌 이미지 원본을 쓰고 싶은데 ㅜ

본문

 

목록에서 썸네일이 아닌 첨부파일1의 원본 이미지를 쓰고 싶습니다 .. 화질저하 문제로 ㅜ

config에서 이미지 퀄리티를 100으로 해줘도 조금 떨어지네요 ㅜ

 

원본 스킨 코드입니다.

 

 


                    <a href="<?php echo $list[$i]['href'] ?>">
                    <?php
                    if ($list[$i]['is_notice']) { // 공지사항  ?>
                        <!-- strong style="width:<?php echo $board['bo_gallery_width'] ?>px;height:<?php echo $board['bo_gallery_height'] ?>px">공지</strong -->
                        <strong style="width:<?php echo $thumb_width ?>px;height:45px">알림</strong>
                    <?php } else {
                        // $thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height']);
                        $thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $thumb_width, $thumb_height); // 썸네일 크기를 위에서 선언한 크기사용
                        if($thumb['src']) {
                            // $img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="'.$board['bo_gallery_width'].'" height="'.$board['bo_gallery_height'].'">';
                            $img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="'.$thumb_width.'" height="'.$thumb_height.'">';
                        } else {
                            // $img_content = '<span style="width:'.$board['bo_gallery_width'].'px;height:'.$board['bo_gallery_height'].'px">no image</span>';
                            $img_content = '<img src="../../img/no_img.png">';
                        }
                        echo $img_content;
                    }
                     ?>
                    </a>

 


[링크1] [링크2]  두개보고 해봐도 잘 안되네요 ㅠ

 

도움 부탁 드립니다 ㅠ 


 

 

이 질문에 댓글 쓰기 :

답변 2

이렇게 해보세요. 게시판 설정에서 목록에서 파일 사용에 체크하시고.

 


<a href="<?php echo $list[$i]['href'] ?>">
<?php
$image = urlencode($list[$i][file][0][file]);
if (preg_match("/\.(gif|jpg|png)$/i", $image)) {
$img_0 = G5_DATA_URL.'/file/'.$bo_table.'/'.$image;
echo "<img src='$img_0'>";
}
?>
</a>
답변을 작성하시기 전에 로그인 해주세요.
전체 123,895 | RSS
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT