묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
로그인위젯 쪽지함 갯수출력
2015.07.26 09:22
{@ $m_args->receiver_srl = $logged_info->member_srl; $m_output = executeQuery('widgets.login_info.getUnreadMessages', $m_args); }
<p class="wrap_Messages"><span>{$lang->Messages}: <strong><a href="{getUrl('act','dispMemberMessages','mid', $layout_info->fbmember_info,'member_srl',$logged_info->member_srl)}"> <!--@if($m_output->data->count != 0)-->{$m_output->data->count}<!--@else-->0<!--@end--> {$lang->MessagesCount}</a></strong></span></p>
위의 방식대로는 1.8.x 에서 갯수가 잘 출력되는데 1.7.x 에서는 항상 카운트가 0으로 고정이네요 해결책좀 부탁드립니다 ㅠㅠ
{@
$oPointModel = &getModel('point');
$oModuleModel = &getModel('module');
$config = $oModuleModel->getModuleConfig('point');
$point = $oPointModel->getPoint($logged_info->member_srl);
$level = $oPointModel->getLevel($point, $config->level_step);
$nextpoint = $config->level_step[$level+1];
$prepoint = $config->level_step[$level];
$percent = round(($point-$prepoint)/($nextpoint-$prepoint)*100, 2);
}
<!--@if(count($output->data))-->{count($output->data)}<!--@else-->0<!--@end-->
저는 이렇게 했는데 이건 어떠신가요??