채택완료

질문드립니다.

 

겔러리 스킨이용하고있는데요

글쓰기에서 첫번째 파일 추가는 리스트에서 썸네일이 안보이게 가능할까요 

 

뷰페이지는

 

 for ($i=1; $i<=count($view['link']); $i++) {

 

이렇게하면 첫번째 이미지는 건너뛰게 되는데요 

 

리스트에서는 어떻게 작성해야하나요

<?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;";

         ?> 

|

답변 1개

채택된 답변
+20 포인트

/lib/thumbnail.lib.php

중에서  

 


Copy
// 게시글리스트 썸네일 생성function get_list_thumbnail($bo_table, $wr_id, $thumb_width, $thumb_height, $is_create=false, $is_crop=true, $crop_mode='center', $is_sharpen=false, $um_value='80/0.5/3'){    global $g5, $config;    $filename = $alt = "";    $edt = false;    $sql = " select bf_file, bf_content from {$g5['board_file_table']}                where bo_table = '$bo_table' and wr_id = '$wr_id' and bf_type between '1' and '3' order by bf_no limit 0, 1 ";    $row = sql_fetch($sql);
 



Copy
// 게시글리스트 썸네일 생성function get_list_thumbnail($bo_table, $wr_id, $thumb_width, $thumb_height, $is_create=false, $is_crop=true, $crop_mode='center', $is_sharpen=false, $um_value='80/0.5/3'){    global $g5, $config;    $filename = $alt = "";    $edt = false;    $sql = " select bf_file, bf_content from {$g5['board_file_table']}                where bo_table = '$bo_table' and wr_id = '$wr_id' and bf_type between '1' and '3' order by bf_no limit 1, 1 ";    $row = sql_fetch($sql);
 

로 변경하세요. 

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

🐛 버그신고