게시판 리스트에 덧글이 붙은 글은 옆에 숫자가 나옵니다.
숫자만 나오지 않고 숫자에 가로를 넣어서 나오게 하고싶습니다.
그누에서 기본으로 제공되는 basic 게시판입니다.

|
답변 3개 / 댓글 5개
채택된 답변
+20 포인트
ysnet
2015-10-19 (월) 13:07:42
/skin/board/basic/list.skin.php (또는 /theme/basic/skin/board/basic/list.skin.php)
<?php if ($list[$i]['comment_cnt']) { ?><span class="sound_only">댓글</span><?php echo $list[$i]['comment_cnt']; ?><span class="sound_only">개</span><?php } ?>
위 내용을 찾아서 아래처럼 수정하세요.
<?php if ($list[$i]['comment_cnt']) { ?><span class="sound_only">댓글</span>(<?php echo $list[$i]['comment_cnt']; ?>)<span class="sound_only">개</span><?php } ?>
답변에 대한 댓글 1개
᠋᠋᠋᠋익명닉네임
2015-10-19 (월) 11:57:41
lib/common.lib.php 에서 수정 가능하며, 게시물 리스트 불러오는 펀션값을 찾으신 후 수정하시면 됩니다.
답변에 대한 댓글 3개
star3840
2015-10-19 (월) 12:19:30
$list['comment_cnt'] = '';
if ($list['wr_comment'])
$list['comment_cnt'] = "<span class=\"cnt_cmt\">".$list['wr_comment']."</span>";
이부분 같은데요.. 어떻게 수정해야 하나요?
if ($list['wr_comment'])
$list['comment_cnt'] = "<span class=\"cnt_cmt\">".$list['wr_comment']."</span>";
이부분 같은데요.. 어떻게 수정해야 하나요?
익명닉네임
2015-10-19 (월) 12:40:04
거기서 ".$list['wr_comment']." 이값만 유지시키고 그사이에서 수정하시면됩니다.
star3840
2015-10-19 (월) 12:46:25
음.. 그.. 수정을 어떻게 수정해야 하나요.. ㅠㅠ 어떤 소스를 넣어야 하는지..
2015-10-19 (월) 11:56:06
가로를 넣는다는게 무슨뜻인가요?
답변에 대한 댓글 1개
답변을 작성하려면 로그인이 필요합니다.