댓글 갯수 출력할 때 (3) 이런 괄호 없애는 방법쫌 알려주세요~~
본문
게시판 리스트에서 댓글갯수 불러올 때 사진처럼 숫자앞뒤로 괄호 ( ) 가 붙는데요.
이거 괄호 없애는 방법 쫌 알려주세요~~~!!
관련코드 입니다!!
if ($list[$i][comment_cnt])
echo "<a href=\"{$list[$i][comment_href]}\"><p> {$list[$i][comment_cnt]} </p></a>";
답변 1
lib/common.lib.php 292라인
if ($list['wr_comment'])
$list['comment_cnt'] = "($list[wr_comment])";
위 부분을 아래와 같이 수정하세요
if ($list['wr_comment'])
$list['comment_cnt'] = "$list[wr_comment]";
답변을 작성하시기 전에 로그인 해주세요.