최신글 이미지 출력이요~ 채택완료
기존 g4게시판을 g5로 변경했는데요.
스킨 받아서 g4에서 사용할때는 별 이상없이 잘나왔었거든요;;
g5로 바꾸고 언어셋도 utf-8로 바꿨는데... ㅠㅠ
최신글 이미지가 나오지 않내요..ㅠㅠ
엑박만 뜨구요;;
latest.skin.php파일은
if (!defined("_GNUBOARD_")) exit; //개별 페이지 접근 불가 include_once(G5_LIB_PATH.'/thumbnail.lib.php'); ?>
이렇게 되어 있는데요.
include_once(G5_LIB_PAHT.'/thumbnail.php'); 이소스 추가 했어요
답변 2개
그누5에서 스킨을 받아서 사용하시는 것이 편할것 같습니다만....^^
그나저나 그누5로 전환하고 나서, 파일도 제대로 옮기셨나요?
data/file/게시판 파일......
답변에 대한 댓글 3개
저도 초보인데.....ㅎㅎ
소스를 넣어보니 전부다 세로로 나오더라구요..
어데 손을 잘못 된건지 T_T
기본 basic을 사용하면 이미지는 안나오는건가요??
댓글을 작성하려면 로그인이 필요합니다.
저도 같은 작업을 하고 있는데요.
skin>latest>basic>latest.skin.php 를 아래와 같이 수정하니 이미지가 출력되네요.
</span></p><p> </p><p><span style="color: rgb(0, 0, 0); font-family: dotum; font-size: 9pt; line-height: 18px; background-color: rgb(255, 255, 255);"><?php for ($i=0; $i<count($list); $i++) { ?></span></p><p style="color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255);"><span style="font-size: 9pt; color: rgb(0, 0, 0);"> <li></span></p><p style="color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255);"><span style="font-size: 9pt; color: rgb(0, 0, 0);"> <?php</span></p><p style="color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255);"><span style="font-size: 9pt; color: rgb(0, 0, 0);"> //echo $list[$i]['icon_reply']." ";</span></p><p style="color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255);"><span style="font-size: 9pt; color: rgb(0, 0, 0);"> echo "<a href=\"".$list[$i]['href']."\">";</span></p><p style="color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255);"><span style="font-size: 9pt; color: rgb(0, 0, 0);"> if ($list[$i]['is_notice'])</span></p><p style="color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255);"><span style="font-size: 9pt; color: rgb(0, 0, 0);"> echo "<strong>".$list[$i]['subject']."</strong>";</span></p><p style="color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255);"><span style="font-size: 9pt; color: rgb(0, 0, 0);"> else</span></p><p style="color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255);"><span style="font-size: 9pt; color: rgb(0, 0, 0);"> echo $list[$i]['subject'];</span></p><p style="color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255);"> </p><p style="color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255);"><span style="font-size: 9pt; color: rgb(0, 0, 0);"> if ($list[$i]['comment_cnt'])</span></p><p style="color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255);"><span style="font-size: 9pt; color: rgb(0, 0, 0);"> echo $list[$i]['comment_cnt'];</span></p><p style="color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255);"> </p><p style="color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255);"><span style="color: rgb(255, 108, 0); font-size: 9pt;"></span> <span style="color: rgb(255, 108, 0); font-size: 9pt;"></span><span style="color: rgb(255, 108, 0); font-size: 9pt;">//아래 코드를 추가하면 이미지가 출력됩니다.</span></p><p style="color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255);"><span style="font-size: 9pt; line-height: 1.5; color: rgb(255, 108, 0);"></span> <span style="font-size: 9pt; line-height: 1.5; color: rgb(255, 108, 0);">$filee = get_file($bo_table, $list[$i]['wr_id']);</span><span class="Apple-tab-span" style="font-size: 9pt; line-height: 1.5; white-space: pre; color: rgb(255, 108, 0);"> </span></p><p style="color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255);"><span style="font-size: 9pt; color: rgb(255, 108, 0);"></span> <span style="font-size: 9pt; color: rgb(255, 108, 0);">echo "<img src='".$filee['0']['path']."/".$filee['0']['file']."'>"</span><span style="font-size: 9pt; color: rgb(255, 108, 0);">;</span></p><p style="color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255);"> </p><p style="color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255);"><span style="font-size: 9pt; color: rgb(0, 0, 0);"> echo "</a>";</span></p><p style="color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255);"> </p><p style="color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255);"><span style="font-size: 9pt; color: rgb(0, 0, 0);"> // if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }</span></p><p style="color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255);"><span style="font-size: 9pt; color: rgb(0, 0, 0);"> // if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }</span></p><p style="color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255);"> </p><p style="color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255);"><span style="font-size: 9pt; color: rgb(0, 0, 0);"> if (isset($list[$i]['icon_new'])) echo " " . $list[$i]['icon_new'];</span></p><p style="color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255);"><span style="font-size: 9pt; color: rgb(0, 0, 0);"> if (isset($list[$i]['icon_hot'])) echo " " . $list[$i]['icon_hot'];</span></p><p style="color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255);"><span style="font-size: 9pt; color: rgb(0, 0, 0);"> if (isset($list[$i]['icon_file'])) echo " " . $list[$i]['icon_file'];</span></p><p style="color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255);"><span style="font-size: 9pt; color: rgb(0, 0, 0);"> if (isset($list[$i]['icon_link'])) echo " " . $list[$i]['icon_link'];</span></p><p style="color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255);"><span style="font-size: 9pt; color: rgb(0, 0, 0);"> if (isset($list[$i]['icon_secret'])) echo " " . $list[$i]['icon_secret'];</span></p><p style="color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255);"><span style="font-size: 9pt; color: rgb(0, 0, 0);"> ?></span></p><p style="color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255);"><span style="font-size: 9pt; color: rgb(0, 0, 0);"> </li></span></p><p><span style="color: rgb(0, 0, 0); font-family: dotum; font-size: 9pt; line-height: 18px; background-color: rgb(255, 255, 255);"> <?php } ?></span> </p><p> </p><p><span style="font-size: 9pt; color: rgb(0, 0, 0);">
답변에 대한 댓글 1개
전 작성자하고 삭제하니 제대로 되었습니ㅏㄷ.
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
g5용 스킨으로 하니깐.. 가로로 안나오고 세로로만 출력이 되더라구요;;
그래서 g4에서 사용하던걸 사용해볼려고 끙끙싸매고 있어요;;
저는 초보니깐요..T_T