최신글에 이미지없을때 noimage표시되게하려면

매출이 오르면 내리는 수수료! 지금 수수료센터에서 전자결제(PG)수수료 비교견적 신청해 보세요!
최신글에 이미지없을때 noimage표시되게하려면

QA

최신글에 이미지없을때 noimage표시되게하려면

본문

​​최신글에 이미지없을때 noimage표시되게하려면

어떻게 하나여?

그누에 빠졌습니당~^^ㅋ 

 

이 질문에 댓글 쓰기 :

답변 3

 

수정전

$file = "<img src='".$list[$i][file][0][path] .'/'. $list[$i][file][0][file]."' align=absmiddle width=\"91\" height=\"60\">";
} else {
$file="";

 

수정후

$file = "<img src='".$list[$i][file][0][path] .'/'. $list[$i][file][0][file]."' align=absmiddle width=\"91\" height=\"60\">";
} else {
$file="<img src='".$latest_skin_path."/img/noimg.gif' border=0>";
}

 

noing.gif 만들어 주시구요

 

최신글 스킨인가요?

/skin/latest/latest.skin.php 파일인데 그누보드4 최신글 스킨중에 갤러리 형식으로 다운 받아서

소스를 적용해야겠네요 

갤러리형 최신글스킨 사용중입니다.
latest.skin.php내용이구여~
ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

?>

<style>
.member, .guest {
font-size:11px;
        font-family:돋움;
font-weight:normal;
color:#333333;
}
</style>
<table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr style=cursor:hand; onclick=location.href="<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>" onmouseover="this.style.backgroundColor='#FBFBFF';return true;" onMouseOut="this.style.backgroundColor='';return true;">
    <td width="27" height="31"><img src="<?=$latest_skin_path?>/img/board_title_left.gif" width="29" height="31"></td>
    <td background="<?=$latest_skin_path?>/img/board_title_bg.gif" style='padding-top:3px;padding-left:3px;' width="800"><font style='font-family:돋움; font-size:9pt; color:#696969;'><strong><?=$board[bo_subject]?></strong></font></td>
    <td width="124" align="right" background="<?=$latest_skin_path?>/img/board_title_bg.gif"><img src="<?=$latest_skin_path?>/img/board_more.gif" width="30" height="15" border="0" align="right"></td>
    <td width="29"><p align="right"><img src="<?=$latest_skin_path?>/img/board_title_right.gif" width="29" height="31"></td></p>
</tr>
</table>
<table width="90%" cellpadding=0 cellspacing=0 border="0">
        <td></td>
        <td></td>
<?
for ($i=0; $i<count($list); $i++) {

$list[$i]['content']=eregi_replace("&nbsp;"," ",$list[$i]['wr_content']);

if($list[$i][file][0][file]) {
$file = "<img src='".$list[$i][file][0][path] .'/'. $list[$i][file][0][file]."' align=absmiddle width=\"91\" height=\"60\">";
} else {
$file="";
}

$time_arr=explode(" ",$list[$i]["datetime3"]);
$time_arr1=explode("-",$time_arr[0]);

$year=$time_arr1[0];
$month=$time_arr1[1];
$day=$time_arr1[2];
?>
    </tr>
<tr>
<td style="padding:0 10px 0 0" width="84" height="36" rowspan="2">
<a href="<?=$list[$i]['href']?>" title="<?=$list[$i]['subject']?>"><?=$file?></a></td>
<td style="padding:0 10px 0 0" width="312" height="18">
            <p><a href=' <?=$list[$i]['href']?>' style='font-family:돋움;color:#285386;font-size:15px;line-height:15px;font-weight:bold;letter-spacing:-1px;'><B><?=$list[$i]['subject']?></B></a></p>
</td>
</tr>
<tr>
<td style="padding:0 10px 0 0" width="312" height="18"><a href="<?=$list[$i]['href']?>"><span style='color:#666666;'><?=conv_subject($list[$i]['content'], 50, $cutopt="...")?></span></a></td>
</tr>
<?if($i!=count($list)-1) { ?>
<tr>
<td height="18" width="94">
            <p>&nbsp;</p>
</td>
<td height="18" width="150"><img src="<?=$latest_skin_path?>/img/line_1.gif" border="0" align="absmiddle"></td>
</tr>
<? } ?>
<? } ?>

<? if (count($list) == 0) { ?><tr><td align=center height="18" width="94">
            <p></p>
</td>
<td align=center height="18" width="322"><font color=#6A6A6A>게시물이 없습니다.</font></td>
</tr><? } ?>

</table>

답변을 작성하시기 전에 로그인 해주세요.
전체 22
QA 내용 검색

회원로그인

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