답변 2개 / 댓글 2개
채택된 답변
+20 포인트
Copy
$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height'], false, true);
if($thumb['src']) {
$img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" >';
} else {
$img_content = '<span class="no_image" style="'.$line_height_style.'">no image</span>';
}
echo $img_content;
위와 같이 하시면 됩니다.
$img_content 이 부분을 원하는 곳에 넣으면 보입니다.
맨위에
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
썸 라이브리도 추가해 줘야 합니다.
$board['bo_gallery_width'], $board['bo_gallery_height'] 이 부분은 원하는 넓이와 높이로 수정하면 됩니다.
답변에 대한 댓글 2개
답변을 작성하려면 로그인이 필요합니다.