최근게시물 질문입니다 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

최근게시물 질문입니다 정보

최근게시물 질문입니다

본문

첨부된 사진 보시면 아시겠지만 보시는바와같이

글제목이 있고 코멘트갯수가 있고 new 파일이 출력되잖아요?

근데 저 코멘트 갯수 출력을 (갯수) 이렇게 말고 +갯수

ex) (8)  ->  +8

이렇게 변경하고 싶은데 혹시 방법이 없을까요?ㅠㅠㅠ

그리고 코멘트갯수 글씨체와 색상도 변경하고 싶습니다..

--------------소스입니다----------------

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 네이버 http://html.nhndesign.com/?mid=ui_pattern_list 참고
// 리메이크: Terrorboy
?>
<link rel="stylesheet" href="<?=$latest_skin_path?>/latest.css" type="text/css" />

<!--ui object -->
<div class="section_ul">
<h2><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><?=$board[bo_subject]?></a></h2>
<ul>

<?
  for ($i=0; $i<count($list); $i++) {
    // 최근 게시물 시간 정렬 수정
    $list[$i]['wr_datetime'] = date("Y.m.d", time($list[$i]['wr_datetime']));
?>
<li>
<span class="bu"></span>
<a href="<?=$list[$i]['href']?>"><?=$list[$i]['subject']?></a>
<a href="<?=$list[$i]['comment_href']?>" class="comment"><?=$list[$i]['comment_cnt']?></a><? echo " " . $list[$i][icon_new]; ?>
<span class="time"><?=$list[$i]['wr_datetime']?></span>
</li>
<? } ?>
<? if (count($list) == 0) { ?>
<li><div class="none">최근 게시물이 없습니다.</div></li>
<? } ?>

</ul>
<a class="more" href="<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>">
더보기</a> </div>
<!--//ui object -->
  • 복사

댓글 전체

css가 없네용

<a href="<?=$list[$i]['comment_href']?>" class="comment"><?=$list[$i]['comment_cnt']?></a><? echo " " . $list[$i][icon_new]; ?>

class="comment" 지워버리고

+<?=$list[$i]['comment_cnt']?>

이렇게 하면 될거같기도 한대용
아 죄송합니다

lib/common.lib.php 에서

291번째 쯤

    $list['comment_cnt'] = "";
    if ($list['wr_comment'])
        $list['comment_cnt'] = "($list[wr_comment])";

이부분을

    $list['comment_cnt'] = "";
    if ($list['wr_comment'])
        $list['comment_cnt'] = "+$list[wr_comment]";

수정해보세요 해보진 안앗네용
© SIRSOFT
현재 페이지 제일 처음으로