묻고답하기

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 남기남
야옹이맨 제로보드 창 바깥부분에 배너 위치하고싶으면 어떻게해야 하나요? [3] file 2014.11.07 by 키스투엑스이
lord 한글도메인을 사용중인데...요청합니다. [3] 2014.11.07 by 키스투엑스이
차니나라 ID/비밀번호 찾기가 안돼요 [3] 2014.11.07 by 최윤한
은바가지 게시판의 제목에 그림 등록시 가운데 오게 하는 방법???? [2] file 2014.11.07 by 키스투엑스이
zeneger The requested URL /xe/testy was not found on this server.도와주세요. [2] 2014.11.07 by 키스투엑스이
dubu 누리고 결제알림 질문 드려봅니다. [1] 2014.11.07 by 키스투엑스이
경구 특정 그룹 회원아이디를 리스트로 쭉 뽑을수있는 기능이나 모듈이있을까요? [2] 2014.11.07 by 경구
꺄올 XE설치.. [1] file 2014.11.07 by HSJI
상큼하게 1.7.4.2 에서 추천 하면 추천인도 포인트 받기 방법  
일단놓고말해 이미지슬라이더 질문입니다. 상단제목 슬라이드 사라짐문제  
아형여옹 닉네임 바꿔는요 이전 닉네임도 변경되게 하는 방법 [2] 2014.11.07 by 아형여옹
부산민지아빠 content 확장 위젯에서 카테고리 번호 가져올려고 합니다.  
모해 ftp에 파일은 올려져있으나 404 에러가 뜨는경우.. [2] 2014.11.07 by 모해
꾸링 웹에서 실행문을 보내면 웹페이지를 꺼도 서버는 계속 작동하나요??  
립샤 scm music 플레이어 스킨이요 file  
김형진354 유머커뮤니티 홍보는 어디서하는게좋은가요..??  
똑디 회원디비 이전시 member_srl 값을 유지하는 방법? [1] 2014.11.06 by 똑디
제로이드 게시물에 이미지 첨부시 이미지파일명 안뜨게 하기 [1] 2014.11.06 by 키스투엑스이
Pirate XE 자료 제작 질문 [2] 2014.11.06 by Pirate
초보중초보중초보 안녕하세요~ getURL에 대해 설명 좀 해주세요ㅠㅠ [5] 2014.11.06 by Double'U'
드림교회 교회 홈페이지에 동영상 게시판을 붙이고 싶습니다. [3] 2014.11.06 by Double'U'
김정권입니다 게시판 쓰기버튼 문의 드립니다 [3] 2014.11.06 by Double'U'
hwan81 메뉴만 따로 사용할 수 있을까요? [1] 2014.11.06 by Double'U'
도로테비 익명 게시판에서 운영자만 닉네임이 나오도록 할 수 있나요? [4] 2014.11.06 by sejin7940
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 석전리바이브