에디터로 등록된 이미지 리스트에 나오게 하려면 어찌하나요?
본문
첨부파일로 등록된 이미지는 리스트에 출력이 되는데..
에디터로 등록된 이미지는 출력이 되지 않습니다.
방법이 어찌 되나요?
아직 G5버전에 공개된 스킨이 없어서.. 질문 드립니다.
답변 2
상단에는
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
해주시기 바라며
<?php
$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height']);
if($thumb['src']) {
$img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="'.$board['bo_gallery_width'].'" height="'.$board['bo_gallery_height'].'">';
} else {
$img_content = '<span style="width:'.$board['bo_gallery_width'].'px;height:'.$board['bo_gallery_height'].'px">no image</span>';
}
echo $img_content;
?>
해결되었습니다 감사합니다..