&

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

 
· 22년 전 · 665 · 2
아래는 이미지게시판 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>
|

댓글 2개

이 소스자체에는 문제가 없는거 같습니다.
제가 그대로 복사해서 사용해봤는데, 저는 이상없네요..
의도하시는게 스킨자료실처럼 게시판리스트에서 noimage 이미지가 보이게 하시려는거죠?
본문에는 noimage가 나오지는 않습니다...
noimage.gif가 해당스킨디렉토리내에 없는건 아니신지요? (그럴리는 없겟지만..)
MMando
22년 전
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"; }
추가해서도 해보셨나요?
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누3질답

+
제목 글쓴이 날짜 조회
22년 전 조회 590
22년 전 조회 655
22년 전 조회 594
22년 전 조회 637
22년 전 조회 588
22년 전 조회 647
22년 전 조회 559
22년 전 조회 677
22년 전 조회 619
&&nbsp;
22년 전 조회 666
22년 전 조회 1,292
MMando
22년 전 조회 813
22년 전 조회 662
&&nbsp;
22년 전 조회 677
22년 전 조회 742
배부른꿀꿀이
22년 전 조회 682
22년 전 조회 723
22년 전 조회 657
22년 전 조회 852
&&nbsp;
22년 전 조회 837
🐛 버그신고