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

숫자크기 문의드립니다. 채택완료

천년만년 4년 전 조회 2,726

예) 자유게시판 23/4 

 

이런 식으로 출력되게 하는 팁입니다.

--------------------------------------------------

그런데...적용해보니... 23/4 이부분 글자크기가

4~5 정도 되는거같습니다.글자릴 키울수 없을까요??

------------------------------------------------

 

 

아래 소스를 extend/extend.lib.php에 올립니다.

</strong></p>

<p><?</p>

<p>// 전체글/오늘글</p>

<p>function total_today($bo_table, $fcolor) /// $fcolor는 글자색깔</p>

<p>{</p>

<p>    global $g4;</p>

<p> </p>

<p>$intime = date("Y-m-d H:i:s", time() - (int)(60 * 60 * 24)); </p>

<p> </p>

<p>$sqlCnum = " select count(*) as Cnum from {$g4['write_prefix']}{$bo_table} where wr_is_comment = 0 "; </p>

<p>$rowCnum = sql_fetch($sqlCnum);</p>

<p>$sqlCnumT = " select count(*) as CnumT from {$g4['write_prefix']}{$bo_table} where wr_is_comment = 0 and wr_datetime >= '$intime'";</p>

<p>$rowCnumT = sql_fetch($sqlCnumT);</p>

<p> </p>

<p>    ob_start();</p>

<p> </p>

<p>echo " <span style='font-size:7pt;color:{$fcolor};'>";</p>

<p>echo $rowCnum[Cnum];</p>

<p>if ($rowCnumT[CnumT] > 0) echo "/".$rowCnumT[CnumT];</p>

<p>echo "</span>";</p>

<p> </p>

<p>    $content = ob_get_contents();</p>

<p>    ob_end_clean();</p>

<p> </p>

<p>    return $content;</p>

<p> </p>

<p>}</p>

<p> </p>

<p>// 전체글/오늘글_카테고리</p>

<p>function total_todayCate($bo_table, $ca_name, $fcolor) ///$fcolor는 글자색깔</p>

<p>{</p>

<p>    global $g4;</p>

<p> </p>

<p>$intime = date("Y-m-d H:i:s", time() - (int)(60 * 60 * 24)); </p>

<p>$C = $ca_name;</p>

<p> </p>

<p>$sqlCnumC = " select count(*) as CnumC from {$g4['write_prefix']}{$bo_table} where wr_is_comment = 0 and ca_name = '$ca_name' "; </p>

<p>$rowCnumC = sql_fetch($sqlCnumC);</p>

<p>$sqlCnumTC = " select count(*) as CnumTC from {$g4['write_prefix']}{$bo_table} where wr_is_comment = 0 and ca_name = '$ca_name' and wr_datetime >= '$intime' ";</p>

<p>$rowCnumTC = sql_fetch($sqlCnumTC);</p>

<p> </p>

<p>    ob_start();</p>

<p> </p>

<p>echo " <span style='font-size:7pt;color:{$fcolor};'>";</p>

<p>echo $rowCnumC[CnumC];</p>

<p>if ($rowCnumTC[CnumTC] > 0) echo "/".$rowCnumTC[CnumTC];</p>

<p>echo "</span>";</p>

<p> </p>

<p>    $content = ob_get_contents();</p>

<p>    ob_end_clean();</p>

<p> </p>

<p>    return $content;</p>

<p> </p>

<p>}</p>

<p>?></p>

<p><strong>

 

-----------------------------------------------------------

 

 

<?

echo total_today("게시판명", "#6699ff"); //게시판 제목 옆에. 게시글 전체 해당

?>

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

답변 1개

채택된 답변
+20 포인트

echo " <span style='font-size:7pt;color:{$fcolor};'>";

 

여기 아닌가요?

 

font-size: 요기 숫자를 키우시면 될것 같은데요

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

천년만년
4년 전
감사합니다..^^;;

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

답변을 작성하려면 로그인이 필요합니다.

로그인