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

질문드립니다. 채택완료

아이템모아 10년 전 조회 2,766

 

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

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

 

뷰페이지는

 

 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 포인트
10년 전

/lib/thumbnail.lib.php

중에서  

 


// 게시글리스트 썸네일 생성
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);</p><p>
 



// 게시글리스트 썸네일 생성
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);</p><p>
 

로 변경하세요. 

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

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

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

로그인