미션출석부 게시판 연동하기 정보
미션출석부 게시판 연동하기
관련링크
본문
2.1.0 버젼부터 연동함수가 변경되었습니다.
이전 버젼을 사용하는 회원님들은 붉은색 코드로 변경해주시고,
신규 설치의 경우, 붉은색 코드를 해당 파일에 삽입해주세요.
댓글쓰기
이전 버젼을 사용하는 회원님들은 붉은색 코드로 변경해주시고,
신규 설치의 경우, 붉은색 코드를 해당 파일에 삽입해주세요.
댓글쓰기
bbs/write_comment_update.php 200줄 부근
// 포인트 부여
insert_point($member[mb_id], $board[bo_comment_point], "$board[bo_subject] {$wr_id}-{$comment_id} 코멘트쓰기", $bo_table, $comment_id, '코멘트');
/*************** 미션출석부 연동 ***************/
// 출석부 lib 파일호출
include_once("$g4[path]/jy.plugin/jy.config.php");
include_once("$jy[lib_path]/attend.lib.php");
// 미션 카운트 증가
$row = sql_fetch(" select gr_id from $g4[board_table] where bo_table = '$bo_table' ");
complete_mission("bbs", "c", $row[gr_id], $bo_table);
/***********************************************/
// 메일발송 사용
if ($config[cf_email_use] && $board[bo_use_email])
글쓰기
bbs/write_update.php 350줄 부근
// 쓰기 포인트 부여
if ($w == '')
{
if ($notice)
{
$bo_notice = $wr_id . "\n" . $board[bo_notice];
sql_query(" update $g4[board_table] set bo_notice = '$bo_notice' where bo_table = '$bo_table' ");
}
insert_point($member[mb_id], $board[bo_write_point], "$board[bo_subject] $wr_id 글쓰기", $bo_table, $wr_id, '쓰기');
/*************** 미션출석부 연동 ***************/
// 출석부 lib 파일호출
include_once("$g4[path]/jy.plugin/jy.config.php");
include_once("$jy[lib_path]/attend.lib.php");
// 미션 카운트 증가
$row = sql_fetch(" select gr_id from $g4[board_table] where bo_table = '$bo_table' ");
complete_mission("bbs", "w", $row[gr_id], $bo_table);
/***********************************************/
}
else
글읽기
bbs/board.php 144줄 부근
$g4[title] = "$group[gr_subject] > $board[bo_subject] > " . strip_tags(conv_subject($write[wr_subject], 255));
/*************** 미션출석부 연동 ***************/
// 출석부 lib 파일호출
include_once("$g4[path]/jy.plugin/jy.config.php");
include_once("$jy[lib_path]/attend.lib.php");
// 미션 카운트 증가
$row = sql_fetch(" select gr_id from $g4[board_table] where bo_table = '$bo_table' ");
complete_mission("bbs", "r", $row[gr_id], $bo_table);
/***********************************************/
}
else
추천
0
0
댓글 전체