채택완료

이미지 아래 설명

스마트 에디터로 글을 쓰면서 이미지를 첨부하고 그 아래 이미지 설명을 달았는데 최신글에서 이미지 설명이 보이지 않게 하려면 어떻게 해야하나요 

초보가 해결하려니 쉽지가 않습니다. 고수님들 꼭 좀 도와주십시요. 

|

답변 2개 / 댓글 2개

채택된 답변
+20 포인트

//$wr_subject = cut_str(strip_tags($list[$i]['wr_content']), 110); //글자수 자르기 

앞에 주석을 붙혀 숨기면 됩니다.

답변에 대한 댓글 1개

최신글에 내용이 출력된다구요?

썸네일이나 제목만 출력될 터인데...

내용도 출력되는 웹진형 최신글 스킨을 사용하신 것이라면

해당 스킨의 출처를 알려주세요.

답변에 대한 댓글 1개

web_group 이라는 웹진 스타일 최신글 스킨을 사용하고 있습니다.



소스는 아래와 같습니다.



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

include_once(G5_LIB_PATH.'/thumbnail.lib.php');
$thumb_width = 258; //썸네일 가로 사이즈
$thumb_height = 152; //썸네일 세로 사이즈

// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$latest_skin_url.'/style.css">', 0);
?>
<div class="lat_web">
<!--<h2><?php echo $gr_subject; ?></h2>-->
<ul>
<?php
for ($i=0; $i<count($list); $i++) {
$thumb = get_list_thumbnail($list[$i]['bo_table'], $list[$i]['wr_id'], $thumb_width, $thumb_height);
if($thumb['src']) {
$img = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="'.$thumb_width.'" height="'.$thumb_height.'">';
}
$wr_subject = cut_str(strip_tags($list[$i]['wr_content']), 110); //글자수 자르기
?>
<li>
<?php if($thumb['src']) { ?>
<div class="wimg">
<a href="<?php echo $list[$i]['href']; ?>"><?php echo $img; ?></a>
</div>
<?php } ?>
<div class="wcontent" style="<?php if($thumb['src']) { ?>margin-left:<?php echo $thumb_width+12; ?>px;min-height:<?php echo $thumb_height; ?>px<?php } ?>">
<p class="s_date"><strong><a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $list[$i]['bo_table'] ?>"><?php echo $list[$i]['bo_subject']; ?></a></strong></p><p></p>
<p class="s_subject"><a href="<?php echo $list[$i]['href']; ?>"><?php echo $list[$i]['subject']; ?></a> <?php if (isset($list[$i]['icon_new'])) echo " " . $list[$i]['icon_new']; ?></p>
<p class="s_memo"><?php echo $wr_subject; ?></p>
<!-- <p class="s_date"><?php echo $list[$i]['wr_name']; ?> <?php echo $list[$i]['datetime']; ?></p> -->
</div>
</li>
<?php } ?>
<?php if (count($list) == 0) { //게시물이 없을 때 ?>
<li>게시물이 없습니다.</li>
<?php } ?>
</ul>
</div>

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