플러그인 여분필드추가 플러그인
페이지 정보
![profile_image](https://apachezone.com/data/member_image/we/webmaster.gif?1613842532)
본문
그누보드 업데이트로 인하여 config.php 파일에 216번째줄의 define('G5_MYSQLI_USE', true); 를
define('G5_MYSQLI_USE', false); 로 수정 후 저장하면 에러가 발생하는 문제로 인하여 파일을 v2로 수정 후 업로드 합니다.
수정일 - 2021-02-21
예전에 그누보드4용 JS빌더에서 사용하던 플러그인을 그누보드 5.4에 맞추어 수정 한 버전 입니다.
각 게시판의 여분필드를 간단하게 추가 할 수 있습니다.
사용법은 압축파일에 첨부된 readme.txt 파일을 참조 하시기 바랍니다.
여분필드 사용은 해당 게시판 테이블에 여분필드를 생성 했다고 해서 게시판에서 바로 사용 할 수는 없습니다.
여분필드 추가 후 insert 와 update 부분에 추가한 여분 필드 값을 꼭 추가 입력 하셔야 합니다.
예: bbs/write_update.php
$sql = " insert into $write_table
set wr_num = '$wr_num',
wr_reply = '$wr_reply',
wr_comment = 0,
ca_name = '$ca_name',
wr_option = '$html,$secret,$mail',
wr_subject = '$wr_subject',
wr_content = '$wr_content',
wr_seo_title = '$wr_seo_title',
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 = '$wr_6',
wr_7 = '$wr_7',
wr_8 = '$wr_8',
wr_9 = '$wr_9',
wr_10 = '$wr_10' ";
여분필드를 5개 추가 했다면 아래와 같이 수정해 주셔야 합니다.
$sql = " insert into $write_table
set wr_num = '$wr_num',
wr_reply = '$wr_reply',
wr_comment = 0,
ca_name = '$ca_name',
wr_option = '$html,$secret,$mail',
wr_subject = '$wr_subject',
wr_content = '$wr_content',
wr_seo_title = '$wr_seo_title',
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 = '$wr_6',
wr_7 = '$wr_7',
wr_8 = '$wr_8',
wr_9 = '$wr_9',
wr_10 = '$wr_10',
wr_11 = '$wr_11',
wr_12 = '$wr_12',
wr_13 = '$wr_13',
wr_14 = '$wr_14',
wr_15 = '$wr_15' ";
첨부파일
-
g54-add_fields.v2.zip (2.9K)
22회 다운로드 | DATE : 2021-02-21 21:52:49
댓글목록
![profile_image](https://apachezone.com/img/no_profile.gif)
![profile_image](https://apachezone.com/data/member_image/ap/apache.gif?1664924092)
![profile_image](https://apachezone.com/img/no_profile.gif)
![profile_image](https://apachezone.com/data/member_image/ap/apache.gif?1664924092)
![profile_image](https://apachezone.com/img/no_profile.gif)
![profile_image](https://apachezone.com/data/member_image/ap/apache.gif?1664924092)
![profile_image](https://apachezone.com/data/member_image/ap/apache.gif?1664924092)
![profile_image](https://apachezone.com/img/no_profile.gif)
![profile_image](https://apachezone.com/data/member_image/ag/agasings.gif?1613854740)
![profile_image](https://apachezone.com/img/no_profile.gif)
![profile_image](https://apachezone.com/img/no_profile.gif)
![profile_image](https://apachezone.com/img/no_profile.gif)
![profile_image](https://apachezone.com/img/no_profile.gif)
![profile_image](https://apachezone.com/img/no_profile.gif)
![profile_image](https://apachezone.com/img/no_profile.gif)
![profile_image](https://apachezone.com/img/no_profile.gif)
![profile_image](https://apachezone.com/data/member_image/gb/gbtkdp.gif?1575935182)
![profile_image](https://apachezone.com/img/no_profile.gif)
![profile_image](https://apachezone.com/img/no_profile.gif)
![profile_image](https://apachezone.com/img/no_profile.gif)
![profile_image](https://apachezone.com/img/no_profile.gif)
![profile_image](https://apachezone.com/img/no_profile.gif)
![profile_image](https://apachezone.com/img/no_profile.gif)
![profile_image](https://apachezone.com/img/no_profile.gif)
![profile_image](https://apachezone.com/img/no_profile.gif)