글쓰기시 10포인트를 얻는다면 이 게시판에 글을 쓰시면 +10포인트 획득 이라고 출력하고싶은데요. 설정된 10 이라는 숫자를 게시판 페이지에서 출력 할 수 있는 코드가 있을까요? 감사합니다.
혹시 이거 해보셨나요?
{@
$oModuleModel = getModel('module');
$module_config = $oModuleModel->getModulePartConfig('point', $module_info->module_srl);
}
<pre>{print_r($module_config, true)}</pre>
해보니까, 저는 결과값이 이렇게 나오는군요 :)
Array
(
[insert_document] => 10
[insert_comment] => 5
[upload_file] => 5
[download_file] => -5
[read_document] => 0
[voted] => 0
[blamed] => 0
[voted_comment] => 0
[blamed_comment] => 0
)
따라서 글쓰기 획득 포인트는 $module_config->insert_document가 되겠네요