갤러리 이미지가 없을 경우 노이미지 뛰울려면??
갤러리 이미지가 없을 경우 노이미지 뛰울려면??(최신글스킨입니다)
어떻게 해야되나요? 아시는 분 좀 알려주세요~~
아래에 소스 첨부합니다 ^^
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table cellpadding="0" cellspacing="0" width="100%" background="<?=$latest_skin_path?>/img/subject_bg.gif">
<tr>
<td>
<table cellpadding="5" cellspacing="0" width="100%" border="0">
<tr height="35">
<td style="padding-left:10;">
<a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><font color="#ffffff" ><b><?=$board[bo_subject]?></b></font></a>
</td>
<td align="right"><span style="font-size: 10px; color: #FFFFFF; font-family:dotum; letter-spacing:-1;"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'> <font color="#ffffff"><b>MORE</a></span> </td>
</tr>
</table>
</td>
</tr>
</table>
<div style="width:100%; border:3px solid #ff9f9f;">
<table align="center" cellpadding="0" cellspacing="0" width="100%" border="0">
<?
for ($i=0; $i<count($list); $i++) {
if( $i %5 == 0) echo '<tr>';
$list[$i]['content']=eregi_replace(" "," ",$list[$i]['content']);
if($list[$i][file][0][file]) {
$file = "<img src='".$list[$i][file][0][path] .'/'. $list[$i][file][0][file]."' align=absmiddle width=\"128\" height=\"89\">";
} else {
$file="";
}
?>
<td align=center>
<table width="139px">
<tr>
<td width="139" height="89" style="border:2px solid #DDDDDD"><a href="<?=$list[$i]['href']?>"><?=$file?></a></td>
</tr>
<tr>
<td><span style='color:#666666'><B><a href="<?=$list[$i]['href']?>"><?=$list[$i]['subject']?></B></a></td>
</tr>
<tr>
<td><a href=\"{$list[$i][comment_href]}\"><span class='comment'></span></a>
<font color=#4b4b4b><?=cut_str(strip_tags($list[$i][wr_content]),35,"…")?></span></a></td>
</tr>
</table>
</td>
<?if($i!=count($list)-1) { ?>
<td><img src="<?=$latest_skin_path?>/img/line_1.gif" border="0" align="absmiddle"></td>
<? } ?>
<? } ?>
</tr>
<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>
</table>
어떻게 해야되나요? 아시는 분 좀 알려주세요~~
아래에 소스 첨부합니다 ^^
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table cellpadding="0" cellspacing="0" width="100%" background="<?=$latest_skin_path?>/img/subject_bg.gif">
<tr>
<td>
<table cellpadding="5" cellspacing="0" width="100%" border="0">
<tr height="35">
<td style="padding-left:10;">
<a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><font color="#ffffff" ><b><?=$board[bo_subject]?></b></font></a>
</td>
<td align="right"><span style="font-size: 10px; color: #FFFFFF; font-family:dotum; letter-spacing:-1;"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'> <font color="#ffffff"><b>MORE</a></span> </td>
</tr>
</table>
</td>
</tr>
</table>
<div style="width:100%; border:3px solid #ff9f9f;">
<table align="center" cellpadding="0" cellspacing="0" width="100%" border="0">
<?
for ($i=0; $i<count($list); $i++) {
if( $i %5 == 0) echo '<tr>';
$list[$i]['content']=eregi_replace(" "," ",$list[$i]['content']);
if($list[$i][file][0][file]) {
$file = "<img src='".$list[$i][file][0][path] .'/'. $list[$i][file][0][file]."' align=absmiddle width=\"128\" height=\"89\">";
} else {
$file="";
}
?>
<td align=center>
<table width="139px">
<tr>
<td width="139" height="89" style="border:2px solid #DDDDDD"><a href="<?=$list[$i]['href']?>"><?=$file?></a></td>
</tr>
<tr>
<td><span style='color:#666666'><B><a href="<?=$list[$i]['href']?>"><?=$list[$i]['subject']?></B></a></td>
</tr>
<tr>
<td><a href=\"{$list[$i][comment_href]}\"><span class='comment'></span></a>
<font color=#4b4b4b><?=cut_str(strip_tags($list[$i][wr_content]),35,"…")?></span></a></td>
</tr>
</table>
</td>
<?if($i!=count($list)-1) { ?>
<td><img src="<?=$latest_skin_path?>/img/line_1.gif" border="0" align="absmiddle"></td>
<? } ?>
<? } ?>
</tr>
<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>
</table>
댓글 2개
14년 전
if($list[$i][file][0][file]) {
$file = "<img src='".$list[$i][file][0][path] .'/'. $list[$i][file][0][file]."' align=absmiddle width=\"128\" height=\"89\">";
} else {
$file="여기에 노이미지 파일 ";
}
$file = "<img src='".$list[$i][file][0][path] .'/'. $list[$i][file][0][file]."' align=absmiddle width=\"128\" height=\"89\">";
} else {
$file="여기에 노이미지 파일 ";
}
헌이0308
14년 전
올래님 감사합니다~~~
게시판 목록
그누4 질문답변
그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.
기존 게시물은 열람만 가능합니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 66554 | 11년 전 | 17733 | ||
| 66553 | 11년 전 | 12554 | ||
| 66552 |
alexseo
|
11년 전 | 10188 | |
| 66551 | 11년 전 | 10923 | ||
| 66550 | 11년 전 | 10494 | ||
| 66549 | 11년 전 | 11846 | ||
| 66548 | 11년 전 | 15029 | ||
| 66547 |
스타크루즈
|
11년 전 | 11493 | |
| 66546 |
kimch
|
11년 전 | 11599 | |
| 66545 | 11년 전 | 11423 | ||
| 66544 | 11년 전 | 12271 | ||
| 66543 |
별을기다리며
|
11년 전 | 14432 | |
| 66542 |
별을기다리며
|
11년 전 | 11924 | |
| 66541 | 11년 전 | 9692 | ||
| 66540 | 11년 전 | 10566 | ||
| 66539 | 11년 전 | 16399 | ||
| 66538 | 11년 전 | 10451 | ||
| 66537 | 11년 전 | 9134 | ||
| 66536 | 11년 전 | 10574 | ||
| 66535 |
alexseo
|
11년 전 | 5590 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기