답변 2개
bbs/write_update.php에
// 새글 INSERT sql_query(" insert into {$g5['board_new_table']} ( bo_table, wr_id, wr_parent, bn_datetime, mb_id ) values ( '{$bo_table}', '{$wr_id}', '{$wr_id}', '".G5_TIME_YMDHIS."', '{$member['mb_id']}' ) ");
여기를
if( $bo_table=='a게시판')
sql_query(" insert into {$g5['board_new_table']} ( bo_table, wr_id, wr_parent, bn_datetime, mb_id ) values ( '{$bo_table}', '{$wr_id}', '{$wr_id}', '".G5_TIME_YMDHIS."', '' ) ");
else
sql_query(" insert into {$g5['board_new_table']} ( bo_table, wr_id, wr_parent, bn_datetime, mb_id ) values ( '{$bo_table}', '{$wr_id}', '{$wr_id}', '".G5_TIME_YMDHIS."', '{$member['mb_id']}' ) ");
답변에 대한 댓글 1개
댓글을 작성하려면 로그인이 필요합니다.
extend/user.config.php
</p>
<p>function hook_write_update_after($board, $wr_id, $w, $qstr, $redirect_url) {
global $g5;</p>
<p> if ($board['bo_table'] == 'a 게시판') {</p>
<p> return;</p>
<p> }
sql_query(" update {$g5['board_new_table']} set mb_id = '', as_video = '' where bo_table = '{$board['bo_table']}' and wr_id = '{$wr_id}' and wr_parent = '{$wr_id}' ");
}
add_event('write_update_after', 'hook_write_update_after', G5_HOOK_DEFAULT_PRIORITY, 5);</p>
<p>
답변에 대한 댓글 1개
감사합니다.
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
감사합니다