갤러리 공지 썸네일 출력 질문 드립니다.

갤러리 공지 썸네일 출력 질문 드립니다.

QA

갤러리 공지 썸네일 출력 질문 드립니다.

본문

dart님 갤러리 스킨을 사용중인데요.

 

공지체크를 하면 목록에서 썸네일이 안나오는데

 

나오게 하는 방법 없을까요?

 

왕초보다 보니 아무리해도 안되네요.

 

list.skin.php 일부분인데.. 아래 부분 손보면 될듯한데

 

감사합니다~

 


<?php } ?>
    <ul id="gall_ul">
        <?php for ($i=0; $i<count($list); $i++) {
            if($i>0 && ($i % $bo_gallery_cols == 0))
                $style = 'clear:both;';
            else
                $style = '';
            if ($i == 0) $k = 0;
            $k += 1;
            if ($k % $bo_gallery_cols == 0) $style .= "margin:0 !important;";
         ?>
        <li class="gall_li <?php if ($wr_id == $list[$i]['wr_id']) { ?>gall_now<?php } ?>" style="<?php echo $style ?>width:<?php echo $board['bo_gallery_width'] ?>px">
            <?php if ($is_checkbox) { ?>
            <label for="chk_wr_id_<?php echo $i ?>" class="sound_only"><?php echo $list[$i]['subject'] ?></label>
            <input type="checkbox" name="chk_wr_id[]" value="<?php echo $list[$i]['wr_id'] ?>" id="chk_wr_id_<?php echo $i ?>">
            <?php } ?>
            <span class="sound_only">
                <?php
                if ($wr_id == $list[$i]['wr_id'])
                    echo "<span class=\"bo_current\">열람중</span>";
                else
                    echo $list[$i]['num'];
                 ?>
            </span>
   <a href="<?php echo $list[$i]['href'] ?>">
    <div class="photo">
     <div class="heading"><span><?echo $list[$i]['subject'];?></span></div>
    
     <?php
     if ($list[$i]['is_notice']) { // 공지사항  ?>
      <strong style="width:<?php echo $board['bo_gallery_width'] ?>px;height:<?php echo $board['bo_gallery_height'] ?>px">공지</strong>
     <?php } else {
      $thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height']);
      if($thumb['src']) {
       $img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="'.$board['bo_gallery_width'].'" height="'.$board['bo_gallery_height'].'">';
      } else {
       $img_content = '<span style="width:'.$board['bo_gallery_width'].'px;height:'.$board['bo_gallery_height'].'px">no image</span>';
      }
      echo $img_content;
     }
      ?>
    
     <div class="caption"><span><?php echo cut_str(strip_tags($list[$i]['wr_content']),100);?></span></div>
    </div>
   </a>
        </li>
        <?php } ?>
        <?php if (count($list) == 0) { echo "<li class=\"empty_list\">게시물이 없습니다.</li>"; } ?>
    </ul>
    <?php if ($list_href || $is_checkbox || $write_href) { ?>
 

이 질문에 댓글 쓰기 :

답변 5

29번줄~41번줄에 나오는 부분을


     <?php
     if ($list[$i]['is_notice']) { // 공지사항  ?>
      <strong style="width:<?php echo $board['bo_gallery_width'] ?>px;height:<?php echo $board['bo_gallery_height'] ?>px">공지</strong>
     <?php
  }
  ?>
  <?php
      $thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height']);
      if($thumb['src']) {
       $img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="'.$board['bo_gallery_width'].'" height="'.$board['bo_gallery_height'].'">';
      } else {
       $img_content = '<span style="width:'.$board['bo_gallery_width'].'px;height:'.$board['bo_gallery_height'].'px">no image</span>';
      }
      echo $img_content;
      ?>

이렇게 수정한 걸로 적용해 보세요. 

      <?php


30      if ($list[$i]['is_notice']) { // 공지사항  ?>


31       <strong style="width:<?php echo $board['bo_gallery_width'] ?>px;height:<?php echo $board['bo_gallery_height'] ?>px">공지</strong>


32      <?php } else {


33       $thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height']);


34       if($thumb['src']) {


35        $img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="'.$board['bo_gallery_width'].'" height="'.$board['bo_gallery_height'].'">';


36       } else {


37        $img_content = '<span style="width:'.$board['bo_gallery_width'].'px;height:'.$board['bo_gallery_height'].'px">no image</span>';


38       }


39       echo $img_content;


40      }


41       ?>

 


이부분에서 보시면요 


30      if ($list[$i]['is_notice']) { // 공지사항  ?>


31       <strong style="width:<?php echo $board['bo_gallery_width'] ?>px;height:<?php echo $board['bo_gallery_height'] ?>px">공지</strong>


32      <?php } else {
문제 입니다

이미지 가 나오려면요
  echo $img_content; 의 안에 내용이있어야 되는데
  공지사항에는 없자나요 그러기때문에

 

        $thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height']);


34       if($thumb['src']) {


35        $img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="'.$board['bo_gallery_width'].'" height="'.$board['bo_gallery_height'].'">';


36       } else {


37        $img_content = '<span style="width:'.$board['bo_gallery_width'].'px;height:'.$board['bo_gallery_height'].'px">no image</span>';


38       }


39       echo $img_content;

이부분을 공지사항 안에 넣어야되는 부분이고 디자인이나 그런 부분은
전문가가 해야되는 부분으로

제작의뢰 게시판에 10~30만 으로 의뢰해보세요 

간단한 질문인듯 한데... 10~30만원은 좀 과한 듯 하네요.--
그리고 개인적으로 비용은 제작의뢰에서 말씀하시는 것이 좋지 않을까 보여집니다.
여기는 질문게시판이까요.

먼가 오해가 있는듯한데요

제가 쓴내용은 이런 것입니다

 

소스야 아래꺼 복사해서위로 올리면 된느 부분이지만

익스 화면에서 보는 css 디자인 부분을 말하는거죠

 

기본 게시판에서 공지 사항을 고친 다하면 줄의 정렬이 문제 가될꺼라 생각 한겁니다

그리고 소스 한줄이라도 아니 간단하다고생각하는 것은 port 님이 수준이 높은거죠

저걸 저리 고치는게문제가아니죠 고처서 일어나는 페이지 정렬및 css 부분이 문제인거죠

 

 

그리고 먼가 자구 제가 답변 다는 게 문제가 있는게 확실해보이네요 한두분도아니고,,

당분간은 답변 다는 일을 자제 하도록하겠습니다 충고 감사합니다 

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

회원로그인

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