채택완료

자동이동을 자동복사로 질문 좀 드립니다.

2016-11-09 (수) 19:39:12 4,516

안녕하세요. 고수님들께 초보가 문의 좀 드립니다^^

아미나 보드를 쓰는데요.

현재 추천 설정에 따라 베스트 게시판으로 자동 이동이 가능하도록 되어 있는데, 이것을 자동 복사로 바꾸고 싶은데 어떤 부분을 건들어야 할지 모르겠네요.

그리고 혹시 추가로 자동 복사시, 원글에 "베스트 게시판으로 복사되었습니다." 댓글이 남겨지도록도 설정이 가능할까요?

Copy
// Auto Moveif ($amina['move'] && $amina['move_bo'] && !$view['is_notice']) {	$is_auto_move = false;	if (!$amina['move_term'] || $amina['move_term'] > (G5_SERVER_TIME - strtotime($write['wr_datetime']))/(60*60*24)) {		if ($amina['move_hit'] && $amina['move_hit'] <= $write['wr_hit']) { //hit			$is_auto_move = true;		} else if ($amina['move_cmt'] && $amina['move_cmt'] <= $write['wr_comment']) { //comment			$is_auto_move = true;		} else if (!$amina['move_good'] && $amina['move_cnt'] && $amina['move_cnt'] <= $write['wr_good']) { //good			$is_auto_move = true;		} else if ($amina['move_good'] == "1" && $amina['move_cnt'] && $amina['move_cnt'] <= $write['wr_nogood']) { //nogood			$is_auto_move = true;		} else if ($amina['move_good'] == "2" && $amina['move_cnt'] && $amina['move_cnt'] <= ($write['wr_good'] - $write['wr_nogood'])) { //good - nogood			$is_auto_move = true;		} else if ($amina['move_good'] == "3" && $amina['move_cnt'] && $amina['move_cnt'] <= ($write['wr_nogood'] - $write['wr_good'])) { //nogood - good			$is_auto_move = true;		} else if ($amina['move_star'] && $amina['move_score']) { //star			if(!$rtag['people']) $rtag['people'] = 0;			$move_score = 0;			if($rtag['people'] > 0) $move_score = $rtag['score'] / $rtag['people'];			$move_score = round($move_score,2);			if($rtag['people'] >= $amina['move_star'] && $move_score >= $amina['move_score']) $is_auto_move = true;		}		if($is_auto_move) {			amina_move($board, $wr_id, $amina['move_bo'], $amina['move_ca'], "move");		}    } }

|

답변 1개

채택된 답변
+20 포인트

위 소스에는 자동 이동 코드가 없고 이동시키는 함수 호출 부분이 보이네요

-->amina_move()

이 함수 소스를 수정해야겠습니다 

답변을 작성하려면 로그인이 필요합니다.