갤러리 이미지가 없을 경우 노이미지 뛰울려면??
갤러리 이미지가 없을 경우 노이미지 뛰울려면??(최신글스킨입니다)
어떻게 해야되나요? 아시는 분 좀 알려주세요~~
아래에 소스 첨부합니다 ^^
<?
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 바로가기
기존 게시물은 열람만 가능합니다.
기존 게시물은 열람만 가능합니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 66434 | 11년 전 | 2820 | ||
| 66433 |
|
11년 전 | 3593 | |
| 66432 |
열라뽕똬이
|
11년 전 | 2065 | |
| 66431 |
겸손1935
|
11년 전 | 4981 | |
| 66430 |
hyeyun
|
11년 전 | 3164 | |
| 66429 | 11년 전 | 2076 | ||
| 66428 | 11년 전 | 2814 | ||
| 66427 | 11년 전 | 3898 | ||
| 66426 | 11년 전 | 2583 | ||
| 66425 |
스카이바디
|
11년 전 | 3184 | |
| 66424 |
|
11년 전 | 2287 | |
| 66423 | 11년 전 | 3188 | ||
| 66422 | 11년 전 | 2531 | ||
| 66421 | 11년 전 | 1943 | ||
| 66420 |
해피마인드
|
11년 전 | 3698 | |
| 66419 |
겸손1935
|
11년 전 | 2161 | |
| 66418 | 11년 전 | 3072 | ||
| 66417 | 11년 전 | 3058 | ||
| 66416 |
|
11년 전 | 4558 | |
| 66415 | 11년 전 | 5150 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기