이미지를 올리지 않았을시 noimage.gif 이미지가 보이게 하려면...... > 그누3질답

그누3질답

이미지를 올리지 않았을시 noimage.gif 이미지가 보이게 하려면...... 정보

그누보드 이미지를 올리지 않았을시 noimage.gif 이미지가 보이게 하려면......

본문

아래는 이미지게시판 gblist_main.skin.php 파일소스입니다... 이미지를 올리지 않았을시 noimage.gif 이미지가 보이게 하려고 합니다.
그런데 아래와 같이 해도 noimage.gif 가 보이지 않습니다..
<참고 인트로 화면은 상,하 두개로 프레임이 나눠져 있으며 프레임 구성은 top.html(상) ,head.php(본문)으로 되어있습니다>
이제까지 세분이 답해주셨지만 머리가 박인 관계로 해결을 보지 못했습니다.... ㅋ~ㅇ ㅡ ㄱ

<? if (!file_exists($file1_image)) { $file1_image = "$board_skin/noimage.gif"; } ?>
<tr align=center class=list<?=$odd?> onMouseOver=this.style.backgroundColor='#6497B8' onMouseOut=this.style.backgroundColor=''>
    <?=$show_chkdelete_begin?><td width=20 bgcolor=#192B37><input type=checkbox name=chk_wr_id[] value='<?=$chk_wr_id?>'></td><?=$show_chkdelete_end?>
    <td width=120  height=90 align=center bgcolor=#192B37><?=$a_list_link?><img src='<?=$file1_image?>' width=100 height=80 border=1 style='border-color:777777;'></a></td>
    <td align=left valign=top bgcolor=#192B37>
        <span style='height:20px;'></span>
            <?=$reply?> <?=$icon_reply?> <?=$icon_new?>
            <?=$a_list_link?><b><?=$subject?></b></a>

            <span style='font-size:8pt;'>
<?=$commentcnt?></span> <?=$icon_hot?> <?=$icon_battle?> <?=$icon_secret?>
            <br>
        <span style='height:20px;'></span>
        <span style='line-height:150%;'><?=cut_str(strip_tags($content),200,"…")?></span>
    </td>
    <td height=2 width=120 align=right bgcolor=#192B37>
        <span style='line-height:150%;'>
        <?=$mb_icon?><?=$name?>&nbsp;&nbsp;<br>
        조회 : <?=number_format($hit)?>&nbsp;&nbsp;<br>
        추천 : <?=$good?>&nbsp;&nbsp;<br>
        [<?=$datetime?>]&nbsp;&nbsp;<br>
        </span>
<td height=2 bgcolor=#192B37></td>
    </td>
<tr>
    <td height=2 background=<?=$board_skin?>/line_width.gif></td>
</tr>

댓글 전체

이 소스자체에는 문제가 없는거 같습니다.
제가 그대로 복사해서 사용해봤는데, 저는 이상없네요..
의도하시는게 스킨자료실처럼 게시판리스트에서 noimage 이미지가 보이게 하시려는거죠?
본문에는 noimage가 나오지는 않습니다...
noimage.gif가 해당스킨디렉토리내에 없는건 아니신지요? (그럴리는 없겟지만..)
gblist.php 209 라인에..

    $file1_image = "";
    $file2_image = "";
    if (@preg_match($cfg[image_extension], $file1)) { $file1_image = $gnu_path . 'data/file/' . "$bo_table/$file1"; }
    if (@preg_match($cfg[image_extension], $file2)) { $file2_image = $gnu_path . 'data/file/' . "$bo_table/$file2"; }
밑에
if (!file_exists($file1_image)) { $file1_image = "$board_skin/noimage.gif"; }
추가해서도 해보셨나요?
전체 9,564
그누3질답 내용 검색

회원로그인

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