묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
XE 기본 카운터에 기능 추가할 수 없나요?
2011.09.24 13:37
기본스킨에 문서와 댓글 카운터를 추가 했는데 나오지 않네요
틀린 방법인가요?
<dl class="widgetCounter">* 문서
<dt>{$lang->today} : {number_format($today_counter->document)}</dt>
<dt>{$lang->yesterday} : {number_format($yesterday_counter->document)}</dt>
<dt>{$lang->total} : {number_format($total->document->total)}</dt>
</dl>
<dl class="widgetCounter">* 댓글
<dt>{$lang->today} : {number_format($today_counter->comment)}</dt>
<dt>{$lang->yesterday} : {number_format($yesterday_counter->comment)}</dt>
<dt>{$lang->total} : {number_format($total_counter->comment)}</dt>
틀린 방법인가요?
<dl class="widgetCounter">* 문서
<dt>{$lang->today} : {number_format($today_counter->document)}</dt>
<dt>{$lang->yesterday} : {number_format($yesterday_counter->document)}</dt>
<dt>{$lang->total} : {number_format($total->document->total)}</dt>
</dl>
<dl class="widgetCounter">* 댓글
<dt>{$lang->today} : {number_format($today_counter->comment)}</dt>
<dt>{$lang->yesterday} : {number_format($yesterday_counter->comment)}</dt>
<dt>{$lang->total} : {number_format($total_counter->comment)}</dt>
태그 연관 글
- [2017/03/17] 묻고답하기 비밀글에 달린 비밀댓글이 모두에게 노출됩니다ㅠㅠ
- [2016/08/29] 묻고답하기 댓글 입력폼을 관리자만 볼수 있게 하고 싶습니다 *2
- [2016/06/20] 묻고답하기 댓글 수정을 못하게 하고싶습니다. *1
- [2015/08/11] 묻고답하기 게시판에서 댓글 에디터 입력창이 나타나지 않는 오류 *1
- [2015/07/29] 묻고답하기 게시판DX 모바일환경에서 댓글 열람 불가
{@
$today = date("Ymd000000");
$yesterday = date("Ymd000000", strtotime("-1 day"));
$oDB = &DB::getInstance();
$query = $oDB->_query('select count(*) as today from xe_documents where regdate >= '.$today);
$result = $oDB->_fetch($query);
}
오늘 : {$result->today?$result->today:'0'}<br />
{@
$query = $oDB->_query('select count(*) as yesterday from xe_documents where regdate >= '.$yesterday.' and regdate < '.$today);
$result = $oDB->_fetch($query);
}
어제 : {$result->yesterday?$result->yesterday:'0'}<br />
{@
$query = $oDB->_query('select count(*) as total from xe_documents');
$result = $oDB->_fetch($query);
}
전체 : {$result->total?$result->total:'0'}<br />
댓 글:<br />
{@
$query = $oDB->_query('select count(*) as today from xe_comments where regdate >= '.$today);
$result = $oDB->_fetch($query);
}
오늘 : {$result->today?$result->today:'0'}<br />
{@
$query = $oDB->_query('select count(*) as yesterday from xe_comments where regdate >= '.$yesterday.' and regdate < '.$today);
$result = $oDB->_fetch($query);
}
어제 : {$result->yesterday?$result->yesterday:'0'}<br />
{@
$query = $oDB->_query('select count(*) as total from xe_comments');
$result = $oDB->_fetch($query);
}
전체 : {$result->total?$result->total:'0'}