목록에서 코멘트 숫자를 둘러싼 괄호를 다른걸로 바꾸고 싶을때......... 정보
그누보드 목록에서 코멘트 숫자를 둘러싼 괄호를 다른걸로 바꾸고 싶을때.........
본문
현재,
예를들어 코멘트가 6개라면 코멘트숫자가 (6) 이런식으로 나오는데, 이걸 [6] 이런식으로 바꾸고 싶습니다.
아래는 bbs/gblist.php 파일의 일부입니다.
$list[$i][commentcnt] = "";
if ($row[wr_commentcnt]) {
$list[$i][commentcnt] = "($row[wr_commentcnt])";
}
제가 위 부분을 아무리 뜯어 고쳐봐도 그대로 나오는데 이 파일을 수정하는게 아닌가요?
예를들어 코멘트가 6개라면 코멘트숫자가 (6) 이런식으로 나오는데, 이걸 [6] 이런식으로 바꾸고 싶습니다.
아래는 bbs/gblist.php 파일의 일부입니다.
$list[$i][commentcnt] = "";
if ($row[wr_commentcnt]) {
$list[$i][commentcnt] = "($row[wr_commentcnt])";
}
제가 위 부분을 아무리 뜯어 고쳐봐도 그대로 나오는데 이 파일을 수정하는게 아닌가요?
댓글 전체
<? if ($list[$i][commentcnt){?><span style='font-size:8pt;'>[<?=$list[$i][commentcnt]?>]</span><?}?>
이렇게 처리하면 안될까요?
이렇게 처리하면 안될까요?
해결했습니다.
분명 아까는 안됐는데.................
$list[$i][commentcnt] = "($row[wr_commentcnt])";
=>
$list[$i][commentcnt] = "[$row[wr_commentcnt]]";
이렇게 했더니 됐습니다.
왜 아까는 안됐지?
해결해서 기쁩니다. 하하하!
분명 아까는 안됐는데.................
$list[$i][commentcnt] = "($row[wr_commentcnt])";
=>
$list[$i][commentcnt] = "[$row[wr_commentcnt]]";
이렇게 했더니 됐습니다.
왜 아까는 안됐지?
해결해서 기쁩니다. 하하하!
만도님 답변 감사합니다.
하지만 그렇게 하면 코멘트가 없는 제목에도 [] 표시가 나와버립니다. ㅠ.ㅠ
하지만 그렇게 하면 코멘트가 없는 제목에도 [] 표시가 나와버립니다. ㅠ.ㅠ
$list[$i][commentcnt] = "";
if ($row[wr_commentcnt]) {
$list[$i][commentcnt] = "($row[wr_commentcnt])";<== $list[$i][commentcnt] = "$row[wr_commentcnt]";
이렇게 괄호릏 없애고요...
스킨파일에서요.. 코멘트 들어가는 부분..
<span style='font-size:8pt;'>[<?=$list[$i][commentcnt]?>]</span> 이렇게 해보셔요
if ($row[wr_commentcnt]) {
$list[$i][commentcnt] = "($row[wr_commentcnt])";<== $list[$i][commentcnt] = "$row[wr_commentcnt]";
이렇게 괄호릏 없애고요...
스킨파일에서요.. 코멘트 들어가는 부분..
<span style='font-size:8pt;'>[<?=$list[$i][commentcnt]?>]</span> 이렇게 해보셔요