이전 목록 다음
미채택 완료

이미지 썸네일

2015-10-01 (목) 14:08:36 4,520

   <ul class="gall_con">

                <li class="gall_href">

                    <a href="<?php echo $list[$i]['href'] ?>">

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

                    }

                     ?>

갤러리 게시판에 올렸을때 view 사진 크기는 그대로 하고

list에서 보일때 사진이 300x300 사이즈로 보이게 하고 싶습니다.. 제가 잘 설명을 못해서 그러는데

이부분을 수정해야 되는거 같은데. 300x300보다 큰 사이즈의 사진을 올리게 되면

list에서 보이는 사진이 잘려서 출력되요... 도와주시면 감사합니다..

잘 이해가 안되시면 댓글 달아주시면 다시 설명을 드려볼게요 ㅠ

답변 1개 / 댓글 2개

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

답변에 대한 댓글 2개

안되네요..ㅠㅠ 무슨뜻 인지 설명 부탁드릴수있을까요?
$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height']);
이것을

$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height'], false, false);
이렇게 수정

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