<?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>
<?php } else {
$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;
}
?>
공지사항을 체크했는데 썸네일은 안나오고 공지사항 텍스트만 나오고 있습니다.
<strong style="width:<?php echo $board['bo_gallery_width'] ?>px;height:<?php echo $board['bo_gallery_height'] ?>px">공지</strong>
이걸로 나오고 있는것같은데 첨부파일 1로 이미지 출력하는 방법은 없을까요?
답변 1개 / 댓글 1개
윗 부분 여기하고..
if ($list[$i]['is_notice']) { // 공지사항 ?>
<strong style="width:<?php echo $board['bo_gallery_width'] ?>px;height:<?php echo $board['bo_gallery_height'] ?>px">공지</strong>
<?php } else {
맨 아래 중괄호 } 여기도 삭제
http://gnustudy.com/bbs/board.php?bo_table=skin_board&wr_id=68
답변에 대한 댓글 1개
답변을 작성하려면 로그인이 필요합니다.
저도 그 게시글 찾아서 올릴려고했는데 답변주셨네요 감사합니다 ^^