mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-25 21:32:51 +09:00
Merge #939 댓글에 대한 추천, 비추천시 증감할 포인트 별도 설정 기능 및 포인트 변동 구현 by sejin7940
* pr/939: Update point.admin.controller.php Update module_config.html Update point.view.php Update point.admin.controller.php Update point_module_config.html Update point.controller.php Update config.html Update point.class.php Conflicts: modules/point/point.admin.controller.php modules/point/point.class.php
This commit is contained in:
commit
a215c41503
7 changed files with 88 additions and 10 deletions
|
|
@ -50,6 +50,8 @@ class pointAdminController extends point
|
|||
$config->download_file = (int)$args->download_file;
|
||||
$config->voted = (int)$args->voted;
|
||||
$config->blamed = (int)$args->blamed;
|
||||
$config->voted_comment = (int)$args->voted_comment;
|
||||
$config->blamed_comment = (int)$args->blamed_comment;
|
||||
// The highest level
|
||||
$config->max_level = $args->max_level;
|
||||
if($config->max_level>1000) $config->max_level = 1000;
|
||||
|
|
@ -62,10 +64,10 @@ class pointAdminController extends point
|
|||
// Check if reading a document is not allowed
|
||||
if($args->disable_read_document == 'Y') $config->disable_read_document = 'Y';
|
||||
else $config->disable_read_document = 'N';
|
||||
|
||||
|
||||
$oMemberModel = getModel('member');
|
||||
$group_list = $oMemberModel->getGroups();
|
||||
|
||||
|
||||
// Per-level group configurations
|
||||
foreach($group_list as $group)
|
||||
{
|
||||
|
|
@ -132,7 +134,7 @@ class pointAdminController extends point
|
|||
{
|
||||
$args = Context::getRequestVars();
|
||||
|
||||
$configTypeList = array('insert_document', 'insert_comment', 'upload_file', 'download_file', 'read_document', 'voted', 'blamed');
|
||||
$configTypeList = array('insert_document', 'insert_comment', 'upload_file', 'download_file', 'read_document', 'voted', 'blamed', 'voted_comment', 'blamed_comment');
|
||||
foreach($configTypeList AS $config)
|
||||
{
|
||||
if(is_array($args->{$config}))
|
||||
|
|
@ -186,6 +188,8 @@ class pointAdminController extends point
|
|||
$config['read_document'] = (int)Context::get('read_document');
|
||||
$config['voted'] = (int)Context::get('voted');
|
||||
$config['blamed'] = (int)Context::get('blamed');
|
||||
$config['voted_comment'] = (int)Context::get('voted_comment');
|
||||
$config['blamed_comment'] = (int)Context::get('blamed_comment');
|
||||
$oModuleController->insertModulePartConfig('point', $srl, $config);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue