최근 갤러리 2줄이상 출력할 방법 여쭙니다.. > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

최근 갤러리 2줄이상 출력할 방법 여쭙니다.. 정보

최근 갤러리 2줄이상 출력할 방법 여쭙니다..

본문

그누독스빌더 쓰구 있구요..
이미지만 노출시키려고 제목/내용 부분은 주석처리 했습니다.
2줄이상 노출시키려면 어떻게 수정봐야 할까요..
빌더나 스킨이 다르다보니 다른분들 질문팁 봐도 적용하기가 애매하네요.

목적은 가로 이미지 7개씩 2줄 이상 입니다.

======================================index 에 사용한 호출문===========================
<div id="notice_block">
<?php // 메인 슬라이더 아랫쪽에 섬네일 4개와 내용을 출력하는 최신글 부분입니다. ?>
<?php echo latest("default_notice",g1b1,7,80)?>
</div>
======================================================================================

================최근글 스킨 내용=======================================================
<table cellpadding=0 cellspacing=0 border=0 align=center ><tr>
<?
for ($i=0; $i<count($list); $i++) {
?>
<?
// 이미지 체크
$image = $list[$i][file][0][file]; //원본
    $ori="$g4[path]/data/file/$bo_table/" . $image;
    $ext = strtolower(substr(strrchr($ori,"."), 1)); //확장자
   
    // 이미지가 있다면.
if ($ext=="gif"||$ext=="jpg"||$ext=="jpeg"||$ext=="png"||$ext=="bmp"||$ext=="tif"||$ext=="tiff") {



$list_img_path = "../data/file/".$bo_table."/".$list[$i][file][0][file];  // 섬네일을 생성하기 위한 별도 경로 - phpThumb.php 파일위치로부터 상대경로

if ($list_img_path){
$thumbimg = $g4[path]."/phpThumb/phpThumb.php?src={$list_img_path}&amp;w={$cwidth}&amp;h={$cheight}&amp;zc=c&amp;q=100";
}
} else{
$thumbimg = $g4[path]."/phpThumb/phpThumb.php?src=../skin/latest/default_notice/img/noimg.png&amp;w={$cwidth}&amp;h={$cheight}&amp;zc=c&amp;q=100";
}
?>
<!-- 사진 간격 0px -->
<td style=" width:132px;  word-break:break-all;  <? if($i!=0){ echo "padding-left:0px;";}?> " valign=top ><div style=" background-color:#ffffff; border:1px solid #ffffff; padding:0px; text-align:center; line-height:0px; "><a href="<?=$list[$i]['href'];?>"><img src="<?=$thumbimg;?>" border=0  width="<?=$cwidth;?>" height="<?=$cheight;?>"></a></div>
<!-- 제목 내용 날짜 속성 시작 -->
<!--
<div class='main_notice_subject'>

<a href="<?=$list[$i]['href'];?>"><strong><?=$list[$i]['subject']?></strong></a>

<? if ($list[$i]['comment_cnt']){
echo " <a href=\"{$list[$i]['comment_href']}\"><span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'>{$list[$i]['comment_cnt']}</span></a>";
}
echo " " . $list[$i]['icon_new'];
  //          echo " " . $list[$i]['icon_file'];
    //        echo " " . $list[$i]['icon_link'];
      //      echo " " . $list[$i]['icon_hot'];
        //    echo " " . $list[$i]['icon_secret'];
?>
</div>

<div class="main_notice_content" >
<?

echo cut_str(strip_tags($list[$i][wr_content]),130) ; //cut_str(nl2br($list[$i][wr_content]),$options,"");
?>
</div>
<div class="main_notice_date"><?=$list[$i][datetime];?> </div>
</td>
--><!-- 제목 내용 날짜 속성 끝 -->
<?
if (count($list) == 0) {
echo "<div height=50 align='center'><font color=#6A6A6A>게시물이 없습니다.</a></div>";
}
?>
<? } ?>
</tr></table>

댓글 전체

for ($i=0; $i<count($list); $i+2) {
로 해주시고 div 안에 이미지 두개 넣으시구요
첫번째는 [$i] 두번째 이미지는 [$i+1]
이미지 체크도 [$]랑 [$i+1]이랑 두번 체크 하셔야 되요~
전체 66,558 |RSS
그누4 질문답변 내용 검색

회원로그인

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