최신 게시물 웹진형태 이미지 엑박뜸
본문
게시판 웹진 형태로 만들려고 강좌보고
latest.skin.php을 수정 내용보고 그대로 따라했는데
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
$thumb_width=120; //썸네일 가로사이즈
$thumb_height=100; //썸네일 세로사이즈
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$latest_skin_url.'/style.css">', 0);
?>
<table width="350" border="0" cellspacing="0" cellpadding="0">
<?php for ($i=0; $i<count($list); $i++) {
$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $thumb_width, $thumb_height);
if($thumb['src']) {
$img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="'.$thumb_width.'" height="'.$thumb_height.'">';
} else {
$img_content = '<img src="'.$latest_skin_url.'/img/noimage.gif" width="'.$thumb_width.'" height="'.$thumb_height.'">';
}
?>
<tr>
<td width="<?php echo $thumb_width ?>">
<a href="<?php echo $list[$i]['href'] ?>"><?php echo $img_content ?></a>
</td>
<td valign="top" style="padding:3px 10px">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<?php
echo "<a href=\"".$list[$i]['href']."\">";
echo "<strong>".$list[$i]['subject']."</strong>";
echo "</a>";
if (isset($list[$i]['icon_new'])) echo " " . $list[$i]['icon_new'];
?>
</td>
</tr>
<tr>
<td style="padding-top:8px;line-height:1.4em">
<?php echo cut_str(strip_tags($list[$i]['wr_content']), 110, "..."); ?>
</td>
</tr>
</table>
</td>
<tr>
<td colspan="2" height="10"></td>
</tr>
</tr>
<?php } ?>
<?php if (count($list) == 0) { //게시물이 없을 때 ?>
<tr><td height="50" colspan="2">등록된 게시물이 없습니다.</td></tr>
<?php } ?>
</table>
뭘 봐야되는건지 모르겠네요
왜 저는 사진이 엑박이 뜰까요?
글쓸때 파일첨부로 사진 올려봤거든요
근데 저렇게 하면 최신게시물에 목록형태로
사진이 나와야되는데 전 엑박만 뜨네요.
물론 제목 클릭해서 안에 들어가서는 사진은뜨고요
어디를 봐야 알수있을까여?
사진은 제 컴퓨터에 있는 파일 아무거나 올려봤는데 그 사진을 또 서버에 올려야되는건가요?;;
|
답변 3
$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $thumb_width, $thumb_height);
여기를 이렇게 수정해보세요.
$thumb = get_list_thumbnail($bo_table, $list[$i]['wr_id'], $thumb_width, $thumb_height);
$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $thumb_width, $thumb_height);
를
$thumb = get_list_thumbnail($bo_table, $list[$i]['wr_id'], $thumb_width, $thumb_height);
이렇게 한번 해보세여
어제 다른기본적인 것도 바로 안바뀌더니
오늘은 계속 안되네요..
아무래도 파일질라 부터 제대로 알아보고 해봐야겠습니다
뭐가 문젠지 알려주신것도 엑박만 뜨네요
다시 좀더 공부하고 나서 여쭤야겠어요
도움 감사합니다~