dart님 갤러리 스킨을 사용중인데요.
공지체크를 하면 목록에서 썸네일이 안나오는데
나오게 하는 방법 없을까요?
왕초보다 보니 아무리해도 안되네요.
list.skin.php 일부분인데.. 아래 부분 손보면 될듯한데
감사합니다~
<?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']); 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; } ?> <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> <?php if ($list_href || $is_checkbox || $write_href) { ?>
답변 5개 / 댓글 2개
29번줄~41번줄에 나오는 부분을
<?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; ?>
이렇게 수정한 걸로 적용해 보세요.
<?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만 으로 의뢰해보세요
답변을 작성하려면 로그인이 필요합니다.