두 게시판 연동하는 방법 문의

두 게시판 연동하는 방법 문의

QA

두 게시판 연동하는 방법 문의

본문

https://sir.kr/qa/63804?stx=%EA%B2%8C%EC%8B%9C%ED%8C%90+%EB%8F%99%EC%8B%9C%EC%97%90+%EC%9E%91%EC%84%B1&sst=wr_num&unanswered=0&s_tag=%EA%B7%B8%EB%88%84%EB%B3%B4%EB%93%9C5

 

a 게시판와 aa 게시판을 연동하고 싶습니다. 그래서 여기 올려주신 소스로 작업해봤는데 연동이 아예 안되고 있습니다. write_update.skin.php 생성해서 넣는 것외에 따로 만져야 할 파일이 있을까요? 밑에는 제가 넣은 소스인데 제가 굉장히 초보라서 아시는 분은 자세히 답변주시면 감사하겠습니다. 

 

 

<?php 

if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가능

$bo_table = "aa"; //게시판테이블명

$copy_tables = = $g5['write_prefix'] . $bo_table;

$write_table = $copy_tables;

$wr_num = get_next_num($copy_tables); 

    $sql_copy = " insert into $copy_tables

                set wr_num = '$wr_num', 

                    wr_reply = '$wr_reply', 

                    wr_comment = 0, 

                    ca_name = '$ca_name', 

                    wr_option = 'html1', 

                    wr_subject = '$wr_subject', 

                    wr_content = '$wr_content', 

                    wr_link1 = '$wr_link1', 

                    wr_link2 = '$wr_link2', 

                    wr_link1_hit = 0, 

                    wr_link2_hit = 0, 

                    wr_hit = 0, 

                    wr_good = 0, 

                    wr_nogood = 0, 

                    mb_id = '$member[mb_id]', 

                    wr_password = '$wr_password', 

                    wr_name = '$wr_name', 

                    wr_email = '$wr_email', 

                    wr_homepage = '$wr_homepage', 

                    wr_datetime = '$g5[time_ymdhis]', 

                    wr_last = '$g5[time_ymdhis]', 

                    wr_ip = '$_SERVER[REMOTE_ADDR]', 

                    wr_1 = '$wr_1', 

                    wr_2 = '$wr_2', 

                    wr_3 = '$wr_3', 

                    wr_4 = '$wr_4', 

                    wr_5 = '$wr_5', 

                    wr_6 = '1', 

                    wr_7 = '$wr_7', 

                    wr_8 = '$wr_8', 

                    wr_9 = '$wr_9', 

                    wr_10 = '$wr_10' "; 

    sql_query($sql_copy); 

    //$wr_id = mysql_insert_id(); 

    // 부모 아이디에 UPDATE 

    sql_query(" update $write_table set wr_parent = '$wr_id' where wr_id = '$wr_id' "); 

    // 새글 INSERT 

    //sql_query(" insert into $g5[board_new_table] ( bo_table, wr_id, wr_parent, bn_datetime ) values ( '$bo_table', '$wr_id', '$wr_id', '$g5[time_ymdhis]' ) "); 

    sql_query(" insert into $g5[board_new_table] ( bo_table, wr_id, wr_parent, bn_datetime, mb_id, wr_is_comment, parent_mb_id, gr_id ) values ( '$bo_table', '$wr_id', '$wr_id', '$g5[time_ymdhis]', '$member[mb_id]', '0', '$parent_mb_id', '$gr_id' ) "); 

    // 게시글 1 증가 

    sql_query("update $g5[board_table] set bo_count_write = bo_count_write + 1 where bo_table = '$bo_table'"); 

alert("작성완료",$g5[path]);    

    ?>

이 질문에 댓글 쓰기 :

답변 2

답변을 작성하시기 전에 로그인 해주세요.
전체 123,644 | RSS
QA 내용 검색

회원로그인

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