[이윰] 출석부 선착순 포인트 올바르게 적용하기
페이지 정보
shadow2fox
2,799 2 2
2019.03.16 01:44:11
짧은주소
-
https://yadolee.com/tip/636 주소복사
본문
출석부 선착순 포인트 올바르게 적용하기
이윰에서 판매하는 시즌3 이하 출석부에는 관리자가 설정할 수 있는 선착순_상 포인트라는 항목으로 몇 명이상 출석 시 선착순 내 회원에게 설정한 특정 포인트를 랜덤으로 추가로 지급하는 메뉴인데 실제로는 그 포인트가 반영되지 않고 출석 리스트에 표현만 되고 있다.
그누보드5/eyoom/user_program/page/attendance.php를 열어 // 선착순상 포인트를 검색하여 다음과 같이 수정한다.
수정 전
최근까지 선착순 포인트가 반영되지 않음을 알지 못했었는데 꼼꼼한 익명(?)의 제보자께서 리포팅해 주셔서 해결할 수 있었다.
익명(?)의 제보자님께 감사의 말씀을 올린다.
그누보드5/eyoom/user_program/page/attendance.php를 열어 // 선착순상 포인트를 검색하여 다음과 같이 수정한다.
수정 전
// 선착순상 포인트
if($attendance['group_use'] == 'y' && $ranking == $attendance['group_cond'] && $attendance['group_cond'] > 1) {
$point['group'] = attendance_point($attendance['group_point']);
// 출석부에 포인트 등록
sql_query("update {$g5['eyoom_attendance']} set group_point='{$point['group']}' where ranking<'{$ranking}' and group_point=0 and atd_datetime like '".$date_day."%' ",false);
$res = sql_query("select atd_mb_id from {$g5['eyoom_attendance']} where ranking<'{$ranking}' and atd_datetime like '".$date_day."%'",false);
for($i=0;$row=sql_fetch_array($res);$i++) {
insert_point($member['mb_id'], $point['group'], "{$date_day} 출석체크 선착순상", '@attendance', '@group', "{$date_day}");
}
}
수정 후
// 선착순상 포인트
if($attendance['group_use'] == 'y' && $ranking == $attendance['group_cond'] && $attendance['group_cond'] > 1) {
$point['group'] = attendance_point($attendance['group_point']);
// 출석부에 포인트 등록
sql_query("update {$g5['eyoom_attendance']} set group_point='{$point['group']}' where ranking<'{$ranking}' and group_point=0 and atd_datetime like '".$date_day."%' ",false);
$res = sql_query("select atd_mb_id from {$g5['eyoom_attendance']} where ranking<'{$ranking}' and atd_datetime like '".$date_day."%'",false);
for($i=0;$row=sql_fetch_array($res);$i++) {
insert_point($row['atd_mb_id'], $point['group'], "{$date_day} 출석체크 선착순상", '@attendance', '@group', "{$date_day}");
}
insert_point($member['mb_id'], $point['group'], "{$date_day} 출석체크 선착순상", '@attendance', '@group', "{$date_day}");
}
최근까지 선착순 포인트가 반영되지 않음을 알지 못했었는데 꼼꼼한 익명(?)의 제보자께서 리포팅해 주셔서 해결할 수 있었다.
익명(?)의 제보자님께 감사의 말씀을 올린다.
추천인 2
레벨 149
경험치 3,343,659
Progress Bar 80.23%
- 가입일 : 2015-03-10 12:21:44
- 서명 : 인간에게 가장 큰 선물은
자기 자신에게 기회를 주는 것이다.
- 크리스 가드너, Chris Gardner -
- 자기소개 : There's never a shortcut to happiness.


댓글2
하늘구장님의 댓글
내사랑님의 댓글
축하합니다. 첫 댓글로 1경험치를 획득하였습니다.
축하합니다. 지뢰폭탄 제거로 8경험치를 획득하였습니다.