회원 포인트 유효기간이 없는 상태에서 유효기간을 설정할경우 포인트 초기화 문제.
포인트 유효기간을 설정하지 않은 상태에서
나중에 포인트 유효기간을 설정할경우 회원들이 로그인을 하게되면
포인트가 초기화가 됩니다.
아래와 같이 수정하시면 문제가 해결됩니다.
/lib/common.lib.php 파일에서
get_expire_point 함수를 수정합니다.
[code]
$sql = " select sum(po_point - po_use_point) as sum_point
from {$g5['point_table']}
where mb_id = '$mb_id'
and po_expired = '0'
and po_expire_date <> '9999-12-31'
and po_expire_date < '".G5_TIME_YMD."' ";
를 아래와 같이 and po_expire_date <> '0000-00-00' 를 추가합니다.
$sql = " select sum(po_point - po_use_point) as sum_point
from {$g5['point_table']}
where mb_id = '$mb_id'
and po_expired = '0'
and po_expire_date <> '9999-12-31'
and po_expire_date <> '0000-00-00'
and po_expire_date < '".G5_TIME_YMD."' ";
[/code]
나중에 포인트 유효기간을 설정할경우 회원들이 로그인을 하게되면
포인트가 초기화가 됩니다.
아래와 같이 수정하시면 문제가 해결됩니다.
/lib/common.lib.php 파일에서
get_expire_point 함수를 수정합니다.
[code]
$sql = " select sum(po_point - po_use_point) as sum_point
from {$g5['point_table']}
where mb_id = '$mb_id'
and po_expired = '0'
and po_expire_date <> '9999-12-31'
and po_expire_date < '".G5_TIME_YMD."' ";
를 아래와 같이 and po_expire_date <> '0000-00-00' 를 추가합니다.
$sql = " select sum(po_point - po_use_point) as sum_point
from {$g5['point_table']}
where mb_id = '$mb_id'
and po_expired = '0'
and po_expire_date <> '9999-12-31'
and po_expire_date <> '0000-00-00'
and po_expire_date < '".G5_TIME_YMD."' ";
[/code]
게시판 목록
그누보드5 팁자료실
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 공지 | 3년 전 | 4434 | ||
| 354 | 10년 전 | 20336 | ||
| 353 | 10년 전 | 6528 | ||
| 352 | 10년 전 | 6718 | ||
| 351 | 10년 전 | 5804 | ||
| 350 | 10년 전 | 7652 | ||
| 349 | 10년 전 | 7239 | ||
| 348 |
아직도초짜
|
10년 전 | 10028 | |
| 347 | 10년 전 | 25040 | ||
| 346 | 10년 전 | 13981 | ||
| 345 | 10년 전 | 8123 | ||
| 344 | 10년 전 | 10088 | ||
| 343 | 10년 전 | 9032 | ||
| 342 | 10년 전 | 9606 | ||
| 341 | 10년 전 | 17782 | ||
| 340 | 10년 전 | 7911 | ||
| 339 |
|
10년 전 | 4837 | |
| 338 | 10년 전 | 7825 | ||
| 337 | 10년 전 | 8612 | ||
| 336 | 10년 전 | 15603 | ||
| 335 | 10년 전 | 7944 | ||
| 334 | 10년 전 | 10007 | ||
| 333 | 10년 전 | 11021 | ||
| 332 | 10년 전 | 7609 | ||
| 331 | 10년 전 | 6246 | ||
| 330 | 10년 전 | 12018 | ||
| 329 | 10년 전 | 8921 | ||
| 328 | 10년 전 | 7493 | ||
| 327 | 10년 전 | 10422 | ||
| 326 | 10년 전 | 8378 | ||
| 325 | 10년 전 | 17573 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기