테스트 사이트 - 개발 중인 베타 버전입니다

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

아쿠아 9년 전 조회 6,566

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

 

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

 

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

 

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

 

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

 

감사합니다~

 

</p><p><?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']);</p><p>      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>';
      }</p><p>      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></p><p>    <?php if ($list_href || $is_checkbox || $write_href) { ?></p><p>
 

댓글을 작성하려면 로그인이 필요합니다.

답변 5개

채택된 답변
+20 포인트
p
9년 전

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

</p><p>     <?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;
      ?></p><p>

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

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

아쿠아
9년 전
감사합니다~ 잘 되네요 ^^

댓글을 작성하려면 로그인이 필요합니다.

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

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

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

도한 지금 질문자님께서 다행이 저정도로 만족하시니 다행이지만

 

가끔은 물에서 건저 주면 보따리 내놓으라는 분도있습니다 

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

먼가 오해가 있는듯한데요

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

 

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

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

 

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

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

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

 

 

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

      <?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만 으로 의뢰해보세요 

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

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

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인