게시판 추가 설정의 문서, 댓글 사용/미사용 설정 가져오기
게시판 추가 설정의 문서, 댓글의 추천/비추천 사용 여부를 가져오는 소스입니다.
$oModuleModel = getModel('module');
$document_config = $oModuleModel->getModulePartConfig('document', $module_info->module_srl);
if ($document_config->use_vote_up == 'Y') 문서에서_추천을_사용할_때();
if ($document_config->use_vote_down == 'Y') 문서에서_비추천을_사용할_때();
$document_config = $oModuleModel->getModulePartConfig('document', $module_info->module_srl);
if ($document_config->use_vote_up == 'Y') 문서에서_추천을_사용할_때();
if ($document_config->use_vote_down == 'Y') 문서에서_비추천을_사용할_때();
$oModuleModel = getModel('module');
$comment_config = $oModuleModel->getModulePartConfig('comment', $module_info->module_srl);
if ($comment_config->use_vote_up == 'Y') 댓글에서_추천을_사용할_때();
if ($comment_config->use_vote_down == 'Y') 댓글에서_비추천을_사용할_때();
$comment_config = $oModuleModel->getModulePartConfig('comment', $module_info->module_srl);
if ($comment_config->use_vote_up == 'Y') 댓글에서_추천을_사용할_때();
if ($comment_config->use_vote_down == 'Y') 댓글에서_비추천을_사용할_때();
코미
Lv. 3
예전 닉네임은 '윈컴이'입니다.
댓글 2
저도 저 기능이 궁금했어요.
어떻게 활용되고 있는지 적용해서 사용하는 사이트가 궁금합니다.