{@
$oPointModel = &getModel('point');
$point = $oPointModel->getPoint($logged_info->member_srl);
$oModuleModel = &getModel('module');
$config = $oModuleModel->getModuleConfig('point');
$level = $oPointModel->getLevel($point, $config->level_step);
}
<img src="{sprintf('%smodules/point/icons/%s/%d.gif', Context::getRequestUri(), $config->level_icon, $level)}" />
레벨만 표시해주고 싶은 경우
{$level}
{@ $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); } <li>가입일 : {zdate($logged_info->regdate, "Y년 m월 d일 (H시 d분)")}</li> <li>마지막접속 : {zdate($logged_info->last_login, "Y년 m월 d일 (H시 d분)")} </li> <li> 포인트 : {$point}<!--@if($nextpoint!=0)-->/{$nextpoint} ({$percent}%)<!--@endif--> / 레벨: {$level} <span class="member_{$logged_info->member_srl}"></span> </li>
2. 경험치 시스템
경험치 모듈을 사용하고 계시다면 아래 코드를 활용해보세요!
{@ // experience $oExpModel = &getModel("experience"); $exp = $oExpModel->getExperience($logged_info->member_srl); $oModuleModel = &getModel("module"); $config = $oModuleModel->getModuleConfig("experience"); $level = $oExpModel->getLevel($exp, $config->level_step); } {$exp}경험치/{$level}레벨