글쓰기 복권 -포인트값이 안들어갑니다. > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

글쓰기 복권 -포인트값이 안들어갑니다. 정보

글쓰기 복권 -포인트값이 안들어갑니다.

첨부파일

bok2.zip (6.0K) 5회 다운로드 2011-01-07 19:35:45

본문

글을 쓰면  이벤트 복권이 나와서 글쓰기 포인트에 복권포인트도 함께 지급을 하는데요.
이게 오늘 보니까 위 처럼 이벤트 복권포인트가 기록만되지 총 포인트에 +되질 않네요.


해당글만 체크해서 삭제하면 그제서야 복권 포인트가 총포인트에 + 됩니다.
복권스킨을 그젠가 다운받은거 같은데 오늘 아무리 찾아봐도 원본이 안보입니다.;;

----------------------------- 해당파일이 먼질 모르겠어서 압축파일도 올렸습니다.

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("./_common.php");
include_once ("./bok_config.php");



echo $top_body;
?>
<script language="javascript">
<!--
function LockF5(){
if (event.keyCode == 116) {
event.keyCode = 0;
return false;
}
}
document.onkeydown = LockF5;
//-->
</script>

<script>
function hide(layr){
eval(layr).style.visibility = "hidden" ;
}
</script>
<body bgcolor="#ffffff" marginwidth="0" marginheight="0" topmargin="0" onload="return false;" oncontextmenu="return false" ondragstart="return false" onselectstart="return false">

<script>
for (i=62; i<=86; i++){
  for (j=24; j<=34; j++){
    var no = "";
no += i;
no += "_";
no += j;
    var txt = "<div id=aa"+no+" style='VISIBILITY:show; POSITION:absolute; background-color:#bbbbbb; left:"+eval(i*6)+"px; top:"+eval(j*6)+"px; width:6px; height:6px;'  xonmouseover=hide\('aa"+no+"'\)>";
    //var txt = "<div id=cap"+i+j+" style='VISIBILITY:show; POSITION:absolute; background-color:silver; left:"+eval(i*5)+"px; top:"+eval(j*5)+"px'>";
    document.write(txt);
    document.write("<img src='blank.gif' width=5 height=5  onmouseover=hide\('aa"+no+"'\) xborder=1>");
    //document.write(no);
    document.write("</div>");
  }
}
</script>
<center>
<table width=90% style='border:1x solid #777777'>
<tr>
<td align=center>
<table width=120><tr><td >

&nbsp;1등 : <?=$bok1?> 점<br>
&nbsp;2등 : <?=$bok2?> 점<br>
&nbsp;3등 : <?=$bok3?> 점<br>
&nbsp;4등 : <?=$bok4?> 점<br>
&nbsp;5등 : <?=$bok5?> 점<br>
&nbsp;6등 : <?=$bok6?> 점<br>
&nbsp;7등 : <?=$bok7?>점<br>
</td>
</tr></table>

</td>
<td>
<br>
<center>
<table cellpadding='0' cellspacing='0' width="380" height="180">
<tr>                <td align="right" background="./img/bok.jpg" width="358" height=180>

            <table cellpadding="0" cellspacing="0" width="138">
                <tr>
                    <td width="9" height="48">&nbsp;</td>
                    <td width="92" height="48">&nbsp;</td>
                    <td width="37" height="48">&nbsp;</td>
                </tr>
                <tr>
                    <td width="9" height="48">&nbsp;</td>
                    <td align="center" width="92" height="48">

<font size="5" color="red"><b><?=$po_point?></b></font><font size="2" color="red"><b> 점</b></font>

</td>
                    <td width="37" height="48">&nbsp;</td>
                </tr>
            </table>
</td></tr></table>

<form name="bok" method="post" action="javascript:bok_check(bok);" enctype="multipart/form-data" style="margin:0px;">
<input type=hidden name=po_rel_table value="<?=$bo_table?>">
<input type=hidden name=po_rel_id    value="<?=$wr_id?>">
<input type=hidden name=po_content  value="<?=$bo_table?>&nbsp;<?=$wr_id?>&nbsp;글쓰기 즉석복권">
<input type=hidden name=po_rel_action    value="쓰기">
<input type=hidden name=po_point value="<?=$po_point?>">

<br>

<span style="font-size:9pt;">
회색의 네모칸을 지우면 결과를 볼 수 있습니다.<br>
포인트 수령확인은 로그인창 포인트에서 확인하세요.<br>
쓰신글을 삭제하면 복권포인트는 삭제됩니다.
</span><br>
</center>
</td>
</tr>
</table> <br>
<INPUT type=image id="btn_submit" src="./img/ok_btn.gif" border=0 accesskey='s'>
</from>

</center>
<script language="javascript">

function bok_check(f)
{

  f.action = "./bok.php";
 f.submit();
opener.location.reload("../bbs/board.php?bo_table=<?=$bo_table?>&wr_id=<?=$wr_id?>");

window.close();
}
</script>

------------------------------------------------------------
글쓰기시 넘어가는 point 말고 다른거로 설정을 해야하는건지...
어디를 수정해야 글포인트와 함께 총 포인트에 증가하나요?

댓글 전체

bok.php 에서 DB 에 더하기만 하는 듯 하네요
db point 에 더하고 회원 데이터에 더한 갓을 저장해주는
구조인데 그 기능이 묶여있는게 insert_point()
bok.php 입니다.
==================================================

<?
include_once("./_common.php");


if($po_point == '꽝'){


}else{
  $sql = " insert into $g4[point_table]
                set mb_id = '$member[mb_id]',
                    po_datetime = '$g4[time_ymdhis]',
                    po_content = '$po_content',
        po_point = '$po_point',
                    po_rel_table = '$po_rel_table',
                    po_rel_id = '$po_rel_id',
                    po_rel_action = '$po_rel_action' ";
    sql_query($sql);

    $po_id = mysql_insert_id();
}

?>

==================================================
여기에 insert_point() 에 관한게 추가되면 되나요?
$po_id = mysql_insert_id();

insert_point($member[mb_id], $board[bo_download_point], "$board[bo_subject] $wr_id 파일 다운로드", $bo_table, $wr_id, "다운로드");

이런 함수가 들어가야 합니다...
적절히 수정하세요..
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT