최신글(갤러리) 스킨 보면
$thumb = get_list_thumbnail($bo_table, $list[$i]['wr_id'], $thumb_width, $thumb_height, false, true);
if($thumb['src']) {
$img = $thumb['src'];
} else {
$img = G5_IMG_URL.'/no_img.png';
$thumb['alt'] = '이미지가 없습니다.';
}
$img_content = '<img src="'.$img.'" alt="'.$thumb['alt'].'" >';
이런식으로 썸네일을 만들어서 보여주는데요
사정상
썸네일이 아니고 원본을 보여주고 싶습니다.
어떻게 해야할까요?
|
답변 1개
채택된 답변
+20 포인트
2주 전
https://sir.kr/boards/g5_skin/63959
<?php
for ($i=0; $i<$list_count; $i++) {
$thumb = get_list_thumbnail($bo_table, $list[$i]['wr_id'], $thumb_width, $thumb_height, false, true);
if($thumb['src']) {
$img = $thumb['src'];
} else {
$img = G5_IMG_URL.'/no_img.png';
$thumb['alt'] = '이미지가 없습니다.';
}
$sql_chl = " select * from {$g5['board_file_table']}
where bo_table = '$bo_table' and wr_id = '".$list[$i]['wr_id']."' order by bf_no limit 0, 1 ";
$row_chl= sql_fetch($sql_chl);
$img= G5_DATA_URL.'/file/'.$bo_table.'/'.$row_chl['bf_file'];
$t_alt=$row_chl['bf_content'];
$img_content = '<img src="'.$img.'" alt="'.$t_alt.'" >';
// $img_content = '<img src="'.$img.'" alt="'.$thumb['alt'].'" >';
$wr_href = get_pretty_url($bo_table, $list[$i]['wr_id']);
?>
<?php
for ($i=0; $i<$list_count; $i++) {
$thumb = get_list_thumbnail($bo_table, $list[$i]['wr_id'], $thumb_width, $thumb_height, false, true);
if($thumb['src']) {
$img = $thumb['src'];
} else {
$img = G5_IMG_URL.'/no_img.png';
$thumb['alt'] = '이미지가 없습니다.';
}
$sql_chl = " select * from {$g5['board_file_table']}
where bo_table = '$bo_table' and wr_id = '".$list[$i]['wr_id']."' order by bf_no limit 0, 1 ";
$row_chl= sql_fetch($sql_chl);
$img= G5_DATA_URL.'/file/'.$bo_table.'/'.$row_chl['bf_file'];
$t_alt=$row_chl['bf_content'];
$img_content = '<img src="'.$img.'" alt="'.$t_alt.'" >';
// $img_content = '<img src="'.$img.'" alt="'.$thumb['alt'].'" >';
$wr_href = get_pretty_url($bo_table, $list[$i]['wr_id']);
?>
답변을 작성하려면 로그인이 필요합니다.