채택완료
게시판 목록에서 썸네일이 아닌 이미지 원본을 쓰고 싶은데 ㅜ
목록에서 썸네일이 아닌 첨부파일1의 원본 이미지를 쓰고 싶습니다 .. 화질저하 문제로 ㅜ
config에서 이미지 퀄리티를 100으로 해줘도 조금 떨어지네요 ㅜ
원본 스킨 코드입니다.
Copy
<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>
도움 부탁 드립니다 ㅠ
|
답변 2개 / 댓글 1개
채택된 답변
+20 포인트
2015-03-03 (화) 11:35:54
이렇게 해보세요. 게시판 설정에서 목록에서 파일 사용에 체크하시고.
Copy
<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>
답변에 대한 댓글 1개
2015-03-17 (화) 15:02:42
유용한 정보 감사합니다.
답변을 작성하려면 로그인이 필요합니다.