안녕하세요 질문좀드리겠습니다
갤러리 리스트부분인데요
첨부파일 2번 이미지가 나오게 하고싶은데 어떻게 해야할까요 ㅠㅠ?
Copy
<?php
if ($list[$i]['is_notice']) { // 공지사항 ?>
<strong style="width:<?php echo $board['bo_mobile_gallery_width'] ?>px;height:<?php echo $board['bo_mobile_gallery_height'] ?>px">공지</strong>
<?php
} else {
$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_mobile_gallery_width'], $board['bo_mobile_gallery_height']);
if($thumb['src']) {
$img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" >';
} else {
$img_content = '<span class="no-img">no image</span>';
}
echo $img_content;
}
?>
|
답변 2개 / 댓글 3개
채택된 답변
+20 포인트
이렇게 넣어주시면 나올거에요.
Copy
<?php
$sql_bf = " select bf_file, bf_content from {$g5['board_file_table']}
where bo_table = '{$board[bo_table]}' and wr_id = '{$list[$i][wr_id]}' and bf_type between '1' and '3' order by bf_no limit 1, 1 ";
$row_bf = sql_fetch($sql_bf);
if($row_bf['bf_file']) {
$filename = $row_bf['bf_file'];
$filepath = G5_DATA_PATH.'/file/'.$board['bo_table'];
$alt = get_text($row_bf['bf_content']);
$tname = thumbnail($filename, $filepath, $filepath, $board['bo_mobile_gallery_width'], $board['bo_mobile_gallery_height']);
$src = G5_DATA_URL.'/file/'.$board['bo_table'].'/'.$tname;
echo '<img src="'.$src.'" alt="'.$alt.'" >';
}
?>
답변에 대한 댓글 3개
$tname = thumbnail($filename, $filepath, $filepath, $board['bo_mobile_gallery_width'], $board['bo_mobile_gallery_height']);
위 코드를 밑에 처럼 false를 추가해주세요.
$tname = thumbnail($filename, $filepath, $filepath, $board['bo_mobile_gallery_width'], $board['bo_mobile_gallery_height'], false);
위 코드를 밑에 처럼 false를 추가해주세요.
$tname = thumbnail($filename, $filepath, $filepath, $board['bo_mobile_gallery_width'], $board['bo_mobile_gallery_height'], false);
답변을 작성하려면 로그인이 필요합니다.
Warning: Missing argument 6 for thumbnail(), called in /www_root/mobile/skin/board/gallery/list.skin.php on line 132 and defined in /www_root/lib/thumbnail.lib.php on line 192
이런오류가나오네요