겔러리 게시판 관련 문의 드립니다.

겔러리 게시판 관련 문의 드립니다.

QA

겔러리 게시판 관련 문의 드립니다.

본문

gaonnoori.org

여기에 보시면 우리들마당에 가온누리사진 여기에 사진들이 있는데 안나타나는 현상 입니다.

왜그러는지 궁금 합니다.

일단 list_skin.php 소스 파일을 올려 드립니다,

보시고 말씀 좀 부탁 드리겠씁니다.

감사합니다.

<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH.'/thumbnail.lib.php');

?>
<link rel="stylesheet" href="<?=$board_skin_url?>/style.css">

<div role="main" class="main" >

 <div id="board_01_list">
  
   <!--board tap시작-->
   <div id="board_tap_wrp">
  <div class="board_tap pb-xl">
   <?
    // 분류 사용 여부
    $is_category = false;
    $category_option = '';
    if ($board['bo_use_category']) {
     $is_category = true;
     $category_href = G5_BBS_URL.'/board.php?bo_table='.$bo_table;

     $category_option .= '<li onclick="location.href=\''.$category_href.'\'"><a href="#"';
     if ($sca=='')
      $category_option .= ' class="active"';
     $category_option .= '>전체</a></li>';

     $categories = explode('|', $board['bo_category_list']); // 구분자가 , 로 되어 있음
     for ($i=0; $i<count($categories); $i++) {
      $category = trim($categories[$i]);
      if ($category=='') continue;
      $category_option .= '<li onclick="location.href=\''.$category_href."&sca=".urlencode($category).'\'"><a href="#"';
      $category_msg = '';
      if ($category==$sca) { // 현재 선택된 카테고리라면
       $category_option .= '  class="active"';
      }
      $category_option .= '>'.$category_msg.$category.'</a></li>';
     }
    }
   ?>
   <ul class="nav nav-pills sort-source" data-sort-id="portfolio" data-option-key="filter" data-plugin-options='{"layoutMode": "fitRows", "filter": "*"}'>
    <?php echo $category_option ?>
   </ul>
  </div>
   </div>
   <!--//board tap 끝-->
  
   <!--board_01_list idx1 시작-->
   <div id="board_wrap">
  
  
  <!--board top시작-->
  <div class="board_top">
   <span class="left text-md">총 게시물 <?php echo number_format($total_count) ?> 개, 페이지 <?php echo $page ?></span>
   <span class="right text-right">
    <?php if ($rss_href || $write_href) { ?>
     <?php if ($rss_href) { ?><a href="<?php echo $rss_href ?>" class="btn btn-quaternary btn-basic"><span>RSS</span></a><?php } ?>
     <?php if ($admin_href) { ?><a href="<?php echo $admin_href ?>" class="btn btn-secondary btn-master"><span>관리자</span></a><?php } ?>
     <?php if ($write_href) { ?><a href="<?php echo $write_href ?>" class="btn btn-quaternary btn-basic"><span>글쓰기</span></a><?php } ?>
    <?php } ?>
   </span>
  </div>
  <!--//board top 끝-->
  
  
  <!--board list-->
  <form name="fboardlist" id="fboardlist" action="./board_list_update.php" onsubmit="return fboardlist_submit(this);" method="post">
  <input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
  <input type="hidden" name="sfl" value="<?php echo $sfl ?>">
  <input type="hidden" name="stx" value="<?php echo $stx ?>">
  <input type="hidden" name="spt" value="<?php echo $spt ?>">
  <input type="hidden" name="sca" value="<?php echo $sca ?>">
  <input type="hidden" name="sst" value="<?php echo $sst ?>">
  <input type="hidden" name="sod" value="<?php echo $sod ?>">
  <input type="hidden" name="page" value="<?php echo $page ?>">
  <input type="hidden" name="sw" value="">
  <section class="panel mb-none">
   <div class="panel-body pl-none pr-none">

    <?php if ($is_checkbox) { ?>
    <div id="gall_allchk">
     <input type="checkbox" id="chkall" onclick="if (this.checked) all_checked(true); else all_checked(false);">
     <label for="chkall" style="display: block; margin-left: 30px; padding-top: 5px;">현재 페이지 게시물 전체 선택 </label>
    </div>
    <?php } ?>

    <!--Gallery 갤러리-->
    <div class="mb-md">
     <div class="sort-destination-loader sort-destination-loader-showing">
      <ul class="portfolio-list sort-destination" data-sort-id="portfolio">
       <!--1-->
       <?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;";
        ?>
        <?php
       if($is_admin){
        $notice_class = "notice_img_admin";
       }else{
        $notice_class = "notice_img";
       }
       if ($list[$i]['is_notice']) // 공지사항
        echo '<img class="'.$notice_class.'" src="'.$board_skin_url.'/img/notice.png" alt="공지사항"/>';
        if ($wr_id == $list[$i]['wr_id']){
         echo "<span class=\"bo_current\">열람중</span>";
        }
       else if ($wr_id == $list[$i]['wr_id'])
        echo "<span class=\"bo_current\">열람중</span>";
       else
        /*echo $list[$i]['num'];*/
        ?>
       <li class="col-md-4 isotope-item mb-xlg">
        <a href="<?php echo $list[$i]['href'] ?>">
         <span class="thumb-info thumb-info-centered-info">
          <span class="thumb-info-wrapper">
            <?php if ($is_checkbox) { ?>
            <label for="chk_wr_id_<?php echo $i ?>" class="sr-only"><?php echo $list[$i]['subject'] ?></label>
            <input type="checkbox" name="chk_wr_id[]" class="gallery_check" value="<?php echo $list[$i]['wr_id'] ?>" id="chk_wr_id_<?php echo $i ?>" style="left:0;">
            <?php } ?>
            <span class="post-icon-area">
            <?php
            if (isset($list[$i]['icon_new'])) echo $list[$i]['icon_new'];
            if (isset($list[$i]['icon_hot'])) echo $list[$i]['icon_hot'];
            ?>
            </span>
            <?
            $thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height']);

            if($thumb['ori']) {
             $img_content = '<span class="image-wrp"><img src="'.$thumb['ori'].'" alt="'.$thumb['alt'].'" width="'.$board['bo_gallery_width'].'" height="'.$board['bo_gallery_height'].'" class="img-responsive"></span>';
            } else {
             $img_content = '<div class="text-center no-image-wrp image-wrp"><span class="no-image-con">no image</span></div>';
            }

            echo $img_content;
           ?>

          </span>
         </span>
        </a>
        <span class="portfolio_subject_name">
         <h2 class="mt-md mb-none text-lg">
          <?php
          // echo $list[$i]['icon_reply']; 갤러리는 reply 를 사용 안 할 것 같습니다. - 지운아빠 2013-03-04
          if ($is_category && $list[$i]['ca_name']) {
           ?>
          <a href="<?php echo $list[$i]['ca_name_href'] ?>" class="bo_cate_link"><?php echo $list[$i]['ca_name'] ?></a>
          <?php } ?>
          <a href="<?php echo $list[$i]['href'] ?>" class="font-weight-light">
           <?php echo $list[$i]['subject'] ?>
           <?php if ($list[$i]['comment_cnt']) { ?><span class="cnt_cmt">(</span><?php echo $list[$i]['comment_cnt']; ?><span class="cnt_cmt">)</span><?php } ?>
          </a>
         </h2>
         <ul class="mb-none mt-md item_meta clearfix" style="list-style:none; padding:0; margin:0;">
          <li class=""><i class="fa fa-user"></i> <?php echo $list[$i]['name'] ?></li>
          <li class=""><i class="fa fa-calendar"></i> <?php echo $list[$i]['datetime2'] ?></li>
          <li class=""><i class="fa fa-eye"></i> 조회수 <?php echo $list[$i]['wr_hit'] ?></li>
          <?php if ($is_good) { ?><li class=""><i class="fa fa-thumbs-o-up"></i> 추천 <?php echo $list[$i]['wr_good'] ?></li><?php } ?>
          <?php if ($is_nogood) { ?><li class=""><i class="fa fa-thumbs-o-down"></i> 비추천 <?php echo $list[$i]['wr_nogood'] ?></li><?php } ?>
         </ul>
        </span>
       </li>
       <?php } ?>
       <?php if (count($list) == 0) { echo "<li class=\"empty_list p-lg text-center\">게시물이 없습니다.</li>"; } ?>
      </ul>
     </div>
    </div>
    <!--//Gallery 갤러리 끝-->
   </div>
   
   <!--board_btn_wrp-->
   <?php if ($list_href || $is_checkbox || $write_href) { ?>
   <div class="board_btn_wrp mt-md clearfix">
    <!--left-->
    <span class="btn_left">
     <?php if ($is_checkbox) { ?>
     <button class="btn btn-quaternary btn-basic" type="submit" name="btn_submit" value="선택삭제" onclick="document.pressed=this.value"><span>선택삭제</span></button>
     <button class="btn btn-quaternary btn-basic" type="submit" name="btn_submit" value="선택복사" onclick="document.pressed=this.value"><span>선택복사</span></button>
     <button class="btn btn-quaternary btn-basic" type="submit" name="btn_submit" value="선택이동" onclick="document.pressed=this.value"><span>선택이동</span></button>
     <?php } ?>
    </span>
    <!--right-->
    <span class="btn_right">
     <?php if ($list_href || $write_href) { ?>
      <?php if ($list_href) { ?><a href="<?php echo $list_href ?>" class="btn btn-quaternary btn-basic"><span>목록</span></a><?php } ?>
      <?php if ($write_href) { ?><a href="<?php echo $write_href ?>" class="btn btn-quaternary btn-basic"><span>글쓰기</span></a><?php } ?>
     <?php } ?>
    </span>
   </div>
   <?php } ?>
   <!--//board_btn_wrp끝-->
  </section>
  </form>
  <!--//board list-->
  
  <!--board_pagin_wrp-->
  <div class="board_pagin_wrp text-center clearfix mb-xl">
   <?php
    $write_pages = get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, './board.php?bo_table='.$bo_table.'&'.$qstr.'&page=');
    echo $write_pages;
   ?>
  </div>
  <!--//board_pagin_wrp끝-->
  
  <!--board_search_wrp-->
  <div class="board_sch_wrp mt-xs ml-none mr-none">
   <fieldset id="board_sch">
    <legend class="sr-only">게시물 검색</legend>
    <form name="fsearch" method="get">
    <input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
    <input type="hidden" name="sca" value="<?php echo $sca ?>">
    <input type="hidden" name="sop" value="and">
     <label for="board_sch_target" class="sr-only">검색대상</label>
     <select name="sfl" id="sfl"  id="board_sch_target">
      <option value="wr_subject"<?php echo get_selected($sfl, 'wr_subject', true); ?>>제목</option>
      <option value="wr_content"<?php echo get_selected($sfl, 'wr_content'); ?>>내용</option>
      <option value="wr_subject||wr_content"<?php echo get_selected($sfl, 'wr_subject||wr_content'); ?>>제목+내용</option>
      <option value="mb_id,1"<?php echo get_selected($sfl, 'mb_id,1'); ?>>회원아이디</option>
      <option value="mb_id,0"<?php echo get_selected($sfl, 'mb_id,0'); ?>>회원아이디(코)</option>
      <option value="wr_name,1"<?php echo get_selected($sfl, 'wr_name,1'); ?>>글쓴이</option>
      <option value="wr_name,0"<?php echo get_selected($sfl, 'wr_name,0'); ?>>글쓴이(코)</option>
     </select>
     <label for="board_sch_word" class="sr-only">검색어</label>
     <input type="text" name="stx" value="<?php echo stripslashes($stx) ?>" required id="stx" class="frm_input" maxlength="20">
     <input type="submit" class="btn_right btn btn-quaternary sch_btn m-none" value="검색 ">
    </form>
   </fieldset>
  </div>
  <!--//board_search_wrp-->
  
   </div>
   <!--//board_01_list 끝-->
 </div>
 
</div>

<?php if ($is_checkbox) { ?>
<script>
function all_checked(sw) {
    var f = document.fboardlist;

    for (var i=0; i<f.length; i++) {
        if (f.elements[i].name == "chk_wr_id[]")
            f.elements[i].checked = sw;
    }
}

function fboardlist_submit(f) {
    var chk_count = 0;

    for (var i=0; i<f.length; i++) {
        if (f.elements[i].name == "chk_wr_id[]" && f.elements[i].checked)
            chk_count++;
    }

    if (!chk_count) {
        alert(document.pressed + "할 게시물을 하나 이상 선택하세요.");
        return false;
    }

    if(document.pressed == "선택복사") {
        select_copy("copy");
        return;
    }

    if(document.pressed == "선택이동") {
        select_copy("move");
        return;
    }

    if(document.pressed == "선택삭제") {
        if (!confirm("선택한 게시물을 정말 삭제하시겠습니까?\n\n한번 삭제한 자료는 복구할 수 없습니다\n\n답변글이 있는 게시글을 선택하신 경우\n답변글도 선택하셔야 게시글이 삭제됩니다."))
            return false;

        f.removeAttribute("target");
        f.action = "./board_list_update.php";
    }

    return true;
}

// 선택한 게시물 복사 및 이동
function select_copy(sw) {
    var f = document.fboardlist;

    if (sw == "copy")
        str = "복사";
    else
        str = "이동";

    var sub_win = window.open("", "move", "left=50, top=50, width=500, height=550, scrollbars=1");

    f.sw.value = sw;
    f.target = "move";
    f.action = "./move.php";
    f.submit();
}
</script>
<?php } ?>
<!-- } 게시판 목록 끝 --> 

이 질문에 댓글 쓰기 :

답변 2

스타일에서 .sort-destination-loader 의 overflow: hidden 제거해보셔요.

일단 위와 같은 상태에서 보여집니다.

 

플러그인 사용하시면서 스타일이 꼬였거나 스크립트 로드가 완료되지 못했거나 스크립트 로딩이 완료되었을때 추가되는 특정 액션이 작동하지 않았거나 등의 이유이겠지요.

  

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

회원로그인

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