댓글 랜덤 포인트 애드온 사용중인데
이렇게 수정하고 싶습니다.. 폰트어썸 사용, 획득 포인트 문구 컬러 수정
초보라그런지.. 그냥 코드 넣었더니 에러가 뜨네요; 부탁드릴게용 ㅠ_ㅠ
if($rand_no == 1) {
$oPointModel = &getModel('point');
$point = $oPointModel->getPoint($member_srl);
$oPointController = &getController('point');
$oPointController->setPoint($member_srl, $rand_point, 'add');
if($rand_point==$min_point) $comment_plus ="아쉽네요! 최저 ";
if($rand_point==$max_point) $comment_plus ="와우! 최고 ";
$content_ori = Context::get('content');
Context::set('content', $content_ori."<br><br>축하드립니다. ".$comment_plus."포인트 ".$rand_point."점을 받으셨습니다.");
}
}
?>
min_point랑 max_point가 딱 떨어지는 숫자인가요?
예를 들어서 1 또는 2 이런 식으로요 == 연산자는 같은 값이라는 의미입니다.
폰트어썸을 적용하시려면 우선적으로 폰트어썸 파일들이 서버에 업로드되어 있어야 합니다.
Context::set('content', $content_ori."<i class="fa fa-gift" aria-hidden="true"></i>축하합니다! ".$comment_plus." 행운 포인트 ".$rand_point."점을 획득하셨습니다.");
content_ori는 어떤 값이 들어가는지 확인이 안 되네요.