답변 2개 / 댓글 2개
자문자답이됐네요..
Copy
$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height']);$matches = get_editor_image($list[$i]['wr_content'], true);$img = $matches[1][0]; if($thumb['src']) { $img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="'.$board['bo_gallery_width'].'" height="'.$board['bo_gallery_height'].'">';}else if($img) {preg_match("/src=[\'\"]?([^>\'\"]+[^>\'\"]+)/i", $img, $m);$src = $m[1];$img_content = '<img src="'.$src.'" alt="'.$thumb['alt'].'" width="'.$board['bo_gallery_width'].'" height="'.$board['bo_gallery_height'].'">';}else{$img_content = '<img class="img" src="no.png"></span>';}
이렇게 했넹 ㅛㅎㅎㅎ
답변을 작성하려면 로그인이 필요합니다.
$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 = '<img class="img" src="no.png">';
}
echo $img_content;
[/code]
이렇게 하는대도 그렇더라구요 ㅠㅠㅠ