스킨자료실의 news_board 의 읽기문제 해결방법좀 부탁합니다...? > 그누3질답

그누3질답

스킨자료실의 news_board 의 읽기문제 해결방법좀 부탁합니다...? 정보

그누보드 스킨자료실의 news_board 의 읽기문제 해결방법좀 부탁합니다...?

첨부파일

gbview.skin.php (7.1K) 3회 다운로드 2005-01-06 00:47:06

본문

스킨자료실의 뉴스보드 게시판이 php4에서 5로 바뀌후부터 이미지가 들어간 게시물은 읽기를 못합니다.

gbview.skin.php 를 기본 게시판을로 바꾸면 보이는데 news_board의 gbview.skin.php은 안보이네요..
오류가 있다면 찾아보겠는데.. 아예 사이트를 찾을수 없다고 나옵니다.

리스트 --> http://notex.co.kr/?doc=bbs/gnuboard.php&bo_table=faq
이미지가 들어간 view  --> http://notex.co.kr/?doc=bbs/gnuboard.php&bo_table=faq&wr_id=43
이미지가 안들어간  view  --> http://notex.co.kr/?doc=bbs/gnuboard.php&bo_table=faq&wr_id=36

------------------------원본 소스입니다. ---------------------------------------------

<!-- 원글 내용 -->
<table width=<?=$width?> border=0 align=center cellpadding=0 cellspacing=0>
<tr><td>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr><td height=1 width=100% background="<?=$board_skin?>/line.gif"></td></tr>
<tr>
<td align=left width='' height=50 style=font-size:18pt;color=00008B> <?=$subject?></td>
</tr>

</table>
</td></tr>
<tr><td height=1 width=100%></td></tr>

<tr>
    <td>
        <table cellpadding=3 cellspacing=1 width=100% height=100%>
        <tr>
            <td width=33% align=right style=font-size:12pt;color=gray>&nbsp;<?=$write[wr_datetime]?>[<?=$name?>]기자</td>



        </table>
    </td>
</tr>
<tr><td height=5 width=100% background="<?=$board_skin?>/line.gif"></td></tr>
<tr>
    <td>
        <table width=100% cellpadding=5>
        <tr>
            <td style='word-break:break-all;' class='lh' height=100>

<? 
for ($i=1; $i<=$cfg[file_count]; $i++) {
$file[$i][source] = $file[$i][aview] = "";
$wr_file = $write["wr_file".$i];
if ($wr_file) {
$size = getimagesize("./data/file/$bo_table/$wr_file");
$file[$i]->source_width  = $size[0];
$file[$i]->source_height = $size[1];
if($size[0] > 380) {
$file[$i][aview] = "<center><table border=0 cellpadding=0 cellspacing=0 ><tr><td>".view_file_link($write["wr_file".$i])."</td></tr></table></center>";
} else {
$file[$i][aview] = "<table border=0 cellpadding=0 cellspacing=0 align=left><tr><td>".view_file_link($write["wr_file".$i])."</td></tr></table>"; }
}
}
for ($i=1; $i<=$cfg[file_count]; $i++) {
                  if ($file[$i][aview]) { echo $file[$i][aview]; }
}
?>
               

                <!-- 내용 출력 -->
                <span class=content><?=$content?></span>

                <? if ($board[bo_use_signature]) { echo $signature; } // 서명 출력 ?>

                <!-- 테러 태그 방지용 -->
                </xml></xmp><a href=""></a><a href=''></a>
            </td>


        </tr>
        </table>
    </td>
</tr>
</table>
<table>
<tr align=right>
<? if ($is_good) { echo "<td colspan=3>&nbsp;기사 추천 : $write[wr_good]</td>"; } ?>
        <? if ($is_nogood) { echo "<td colspan=3>&nbsp;기사 비추천 : $write[wr_nogood]</td>"; } ?>
</tr>
<table>
<br>


<? if ($is_comment) { ?>
    <!-- 코멘트 내용 -->
    <? for ($i=0; $i<count($list); $i++) { ?>
    <a name='c<?=$list[$i][wr_id]?>'></a>

    <table width=<?=$width?> border=0 align=center cellpadding=0 cellspacing=0>
    <tr>
        <td height=25 bgcolor=#F1F1F1>&nbsp;&nbsp;<?=$list[$i][name]?>&nbsp;(<?=$list[$i][ip]?>)</td>
        <td align=right bgcolor=#F1F1F1><?=$list[$i][datetime]?>&nbsp;<? if ($list[$i][is_del]) { echo "{$list[$i][del_href]}<img src='$board_skin/com_del.gif' border=0 width=9 height=9 align=absmiddle></a>&nbsp;"; } ?></td>
    </tr>
    <tr>
        <td colspan=2 valign=top>
            <table width=100% cellpadding=7 cellspacing=0>
            <tr>
                <td style='word-break:break-all; text-align:justify;' class='lh tt'><?=$list[$i][content]?></td>
<td>
    <? if ($good_href) { echo "<a href=\"$good_href\"><img src='$board_skin/good.gif' border=0 alt='추천' align=absmiddle></a>"; } ?>
        <? if ($nogood_href) { echo "<a href=\"$nogood_href\"><img src='$board_skin/nogood.gif' border=0 alt='비추천' align=absmiddle></a>"; } ?>

</td>
            </tr>
            </table>
        </td>
    </tr>

    </table>
    <? } // for ?>

    <? if ($is_comment_write) { ?>
    <!-- 코멘트 쓰기 -->
<br>
    <table width=<?=$width?> align=center cellpadding=5 cellspacing=0 border=0>
<tr bgcolor=#f0f0f0 height=20><center><font size=3>독자 여러분의 의견을 남겨주세요.</font></center></tr>
<tr bgcolor=#FFFFFF height=2></tr>
    <form name=fgbview method=post action='./?doc=bbs/gbupdate.php'>
    <input type=hidden name=w        value='c'>
    <input type=hidden name=bo_table value='<?=$bo_table?>'>
    <input type=hidden name=sselect  value='<?=$sselect?>'>
    <input type=hidden name=stext    value='<?=$stext?>'>
    <input type=hidden name=wr_id    value='<?=$wr_id?>'>
    <input type=hidden name=page    value='<?=$page?>'>
    <input type=hidden name=section  value='<?=$section?>'>
<tr bgcolor=#F3F3F3>
        <td>
            <table width=150 height=30 border=0 cellpadding=3 cellspacing=0>
<tr>
                <td width=80>&nbsp;&nbsp;이름</td><td><?=$c_name?></td>
            <? if ($is_guest) { ?>
            </tr>
            <tr>
                <td>&nbsp;&nbsp;비밀번호&nbsp;</td>
                <td><input type=password name=wr_passwd size=10 class=input required itemname='비밀번호'>&nbsp;</td>
            <? } ?>
            </tr>
            </table>
        </td>
        <td width=70%><textarea name=wr_content rows=9 style='width:100%; line-height:100%;' required itemname='내용' class=textarea></textarea></td>
<td width=66><input type=image src='<?="$board_skin/btncomment.gif"?>' border=0 width=66 height=63 align=absmiddle></td>
        <td><a href='javascript:textarea_size(document.fgbview.wr_content, -5)'><img src='<?=$board_skin?>/icon_up.gif' border=0 align=absmiddle width=24 height=29></a> <a href='javascript:textarea_size(document.fgbview.wr_content, 5)'><img src='<?=$board_skin?>/icon_down.gif' border=0 align=absmiddle width=24 height=29></a></td>
    </tr>
    </form>
    </table><br>
    <? } // if ?>
<? } // if ?>


<!-- 링크 -->
<table width=<?=$width?> align=center border=0 cellpadding=0 cellspacing=0>
<tr>
    <td width=75% height=35>
        <? if ($search_href) { echo "<a href=\"$search_href\"><img src='$board_skin/searchlist.gif' border=0 alt='검색목록' align=absmiddle></a>"; } ?>
        <? echo "<a href=\"$list_href\"><img src='$board_skin/list.gif' border=0 alt='목록' align=absmiddle></a>"; ?>

        <? if ($write_href) { echo "<a href=\"$write_href\"><img src='$board_skin/write.gif' border=0 alt='글쓰기' align=absmiddle></a>"; } ?>
        <? if ($reply_href) { echo "<a href=\"$reply_href\"><img src='$board_skin/reply.gif' border=0 alt='답변' align=absmiddle></a>"; } ?>

        <? if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin/edit.gif' border=0 alt='수정' align=absmiddle></a>"; } ?>
        <? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin/delete.gif' border=0 alt='삭제' align=absmiddle></a>"; } ?>


        <? if ($copy_href) { echo "<a href=\"$copy_href\"><img src='$board_skin/copy.gif' border=0 alt='복사' align=absmiddle></a>"; } ?>
        <? if ($move_href) { echo "<a href=\"$move_href\"><img src='$board_skin/move.gif' border=0 alt='이동' align=absmiddle></a>"; } ?>
    </td>
    <td width=25% align=right>
        <? if ($prev_href) { echo "<a href=\"$prev_href\" title=\"$prev_wr_subject\"><img src='$board_skin/prev.gif' border=0 alt='이전글' align=absmiddle></a>"; } ?>
        <? if ($next_href) { echo "<a href=\"$next_href\" title=\"$next_wr_subject\"><img src='$board_skin/next.gif' border=0 alt='다음글' align=absmiddle></a>"; } ?>
    </td>
</tr>
</table>

부탁드립니다.. 이게시판을 수정해서 쓴곳이 좀 되는데... 어쩔바를 모르겠습니다...

댓글 전체

이건 gbview.skin.php 의 문제라기 보다.
php 버전에 따른 문제인것 같은데요
그냥 소스만 봐서는 알기 쉽지 않을것 같군요.
혹시 php4와 5의 특성을 정확히 인지하고 계신 분이라면 모를까..
bbs/gbview.php의 문제인지, gbview.skin.php의 문제인지 프로그램에 디버깅을 걸어놓고
어디서 걸리는지 하나하나 추적해야 원인을 찾을수 있을것 같습니다.

그리고 어디서 문제가 발생했는지 찾았다면
그 부분이 php4와 5의 차이점을 체크하셔서 php5에 맞도록 수정하셔야 일이 해결되것 같군요.
전체 9,564
그누3질답 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT