테스트 사이트 - 개발 중인 베타 버전입니다

최근게시물 질문입니다

· 12년 전 · 949 · 5
123123.PNG
첨부된 사진 보시면 아시겠지만 보시는바와같이

글제목이 있고 코멘트갯수가 있고 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 -->

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 5개

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']?>

이렇게 하면 될거같기도 한대용
안되네요... +(8) 이런식으로 뜨네요ㅠㅠ

CSS 엔

.section_ul .comment{font-size:11px;padding-left:5px}

라고만 잡혀있습니다
폰트 크기와 색상은 알아서 찾아서 변경하였습니다..ㅠㅠ

(8) -> +8 이렇게 바꿀수 있는 방법만 알려주시면 감사하겠습니다 ㅠㅠㅠ
아 죄송합니다

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]";

수정해보세요 해보진 안앗네용
너무너무 감사합니다!!!!! 잘됬네요!!

게시글 목록

번호 제목
284508
284499
284492
284490
284484
284481
284478
284476
284474
284472
284470
284458
284457
284454
284453
284447
284446
284444
284441
284440