묻고답하기

1.7.4.2에서 updateVotedCount 부분이며 
아래 빨간 포인트 부분에서 1로 되어 있는걸 3으로 바꿨는데요 추천하면 1포인트만 올라가는데요 
추천 시 3포인트를 받을 수 있는 방법이 없을까요??
아래글들의 내용은 1.7.4.2에서는 없네요.. 

--------------------------------------------------

function updateVotedCount($document_srl, $point = 3)
{
if($point > 0) $failed_voted = 'failed_voted';
else $failed_voted = 'failed_blamed';
// Return fail if session already has information about votes
if($_SESSION['voted_document'][$document_srl])
{
return new Object(-1, $failed_voted);
}
// Get the original document
$oDocumentModel = getModel('document');
$oDocument = $oDocumentModel->getDocument($document_srl, false, false);
// Pass if the author's IP address is as same as visitor's.
if($oDocument->get('ipaddress') == $_SERVER['REMOTE_ADDR'])
{
$_SESSION['voted_document'][$document_srl] = true;
return new Object(-1, $failed_voted);
}

// Create a member model object
$oMemberModel = getModel('member');
$member_srl = $oMemberModel->getLoggedMemberSrl();

// Check if document's author is a member.
if($oDocument->get('member_srl'))
{
// Pass after registering a session if author's information is same as the currently logged-in user's.
if($member_srl && $member_srl == $oDocument->get('member_srl'))
{
$_SESSION['voted_document'][$document_srl] = true;
return new Object(-1, $failed_voted);
}
}

// Use member_srl for logged-in members and IP address for non-members.
$args = new stdClass;
if($member_srl)
{
$args->member_srl = $member_srl;
}
else
{
$args->ipaddress = $_SERVER['REMOTE_ADDR'];
}
$args->document_srl = $document_srl;
$output = executeQuery('document.getDocumentVotedLogInfo', $args);
// Pass after registering a session if log information has vote-up logs
if($output->data->count)
{
$_SESSION['voted_document'][$document_srl] = true;
return new Object(-1, $failed_voted);
}

// begin transaction
$oDB = DB::getInstance();
$oDB->begin();

// Update the voted count
if($point < 0)
{
$args->blamed_count = $oDocument->get('blamed_count') + $point;
$output = executeQuery('document.updateBlamedCount', $args);
}
else
{
$args->voted_count = $oDocument->get('voted_count') + $point;
$output = executeQuery('document.updateVotedCount', $args);
}
if(!$output->toBool()) return $output;
// Leave logs
$args->point = $point;
$output = executeQuery('document.insertDocumentVotedLog', $args);
if(!$output->toBool()) return $output;

$obj = new stdClass;
$obj->member_srl = $oDocument->get('member_srl');
$obj->module_srl = $oDocument->get('module_srl');
$obj->document_srl = $oDocument->get('document_srl');
$obj->update_target = ($point < 0) ? 'blamed_count' : 'voted_count';
$obj->point = $point;
$obj->before_point = ($point < 0) ? $oDocument->get('blamed_count') : $oDocument->get('voted_count');
$obj->after_point = ($point < 0) ? $args->blamed_count : $args->voted_count;
$trigger_output = ModuleHandler::triggerCall('document.updateVotedCount', 'after', $obj);
if(!$trigger_output->toBool())
{
$oDB->rollback();
return $trigger_output;
}

$oDB->commit();

$oCacheHandler = CacheHandler::getInstance('object');
if($oCacheHandler->isSupport())
{
//remove document item from cache
$cache_key = 'document_item:'. getNumberingPath($document_srl) . $document_srl;
$oCacheHandler->delete($cache_key);
}

// Leave in the session information
$_SESSION['voted_document'][$document_srl] = true;

// Return result
if($point > 0)
{
return new Object(0, 'success_voted');
}
else
{
return new Object(0, 'success_blamed');
}
}
글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
GwangHoon 회원가입 폼 삭제 (이메일)  
다크건즈 네이버 신디케이션에 대해서 질문이있습니다. [1] 2016.11.11 by 짜장고
인터21 한글도메인 문제 언제 해결되나요.  
차알스 게시판에서 첨부파일 자동저장에 대하여 [1] 2014.11.06 by sejin7940
최윤한 트위터나 페북처럼 메인페이지 한쪽에 회원가입폼을 위치시키고 싶은데요 [3] file 2014.11.06 by sejin7940
석전리바이브 xe 모바일 갤러리는없나요? [1] 2014.11.06 by 석전리바이브
본쥬 문의 드립니다...  
립샤 그냥 주소를 쳤을때도 ---/xe가 나오게할려면.. [2] 2014.11.06 by Double'U'
임채원임 슬라이드가 움직일때마다 사이트 배경이 바뀌게 하는법 [1] 2014.11.06 by Double'U'
goodady "모듈 이름은 영문+[영문+숫자+_] 만 가능합니다." 이 문제 좀 도와 주십시오. [9] file 2014.11.06 by Double'U'
dskurrkdfdr74 RSS 뉴스를 퍼오는데 이미지가 엑박으로 나옵니다. [1] file 2014.11.06 by sejin7940
양손어 첨부파일 갯수제한  
kornim 서브페이지에 404 not found로 접속이 안됩니다 [1] file 2014.11.06 by 휘즈
hshlalla 레이아웃과 게시판의 서로 안맞는경우 어떻게 해야하지요 file  
super0918 게시판 넓이가 달라집니다 [1] file 2014.11.06 by Kenta
마주르카 글쓰기에서 다른 게시판에 있는 데이터를 불러올 수 있나요? [4] file 2014.11.05 by 노에르
super0918 게시판에 mp3나 swf파일을 첨부하고 본문삽입했을때 [1] 2014.11.05 by 이즈야
처리낭군 'SketchBook5 SocialXE 댓글 위젯 스킨' 은 어디서 받을 수 있나요?  
Park''sTRADE IE에서 이미지 조절 애드온으로 모달 원본 보기 할 때 위치 문제  
튼구름 숫자아이디사용법