채택완료

그누보드5 개발이 다 안된건가요?

2016-01-24 (일) 21:08:55 6,006

그누보드5 개발이 다 안된건가요?

게시판 글쓰기 폼 입력필드를 옵션 조정할 수 있는 것들이 없네요...

소스 상에서는 옵션 조절하면 브라우징 처리 될 수 있게 되어있는데

관리자 쪽에선 전혀 없네요

Copy
<?php if ($is_name) { ?>        <tr>            <th scope="row"><label for="wr_name">이름<strong class="sound_only">필수</strong></label></th>            <td><input type="text" name="wr_name" value="<?php echo $name ?>" id="wr_name" required class="frm_input required" size="10" maxlength="20"></td>        </tr>        <?php } ?>        <?php if ($is_password) { ?>        <tr>            <th scope="row"><label for="wr_password">비밀번호<strong class="sound_only">필수</strong></label></th>            <td><input type="password" name="wr_password" id="wr_password" <?php echo $password_required ?> class="frm_input <?php echo $password_required ?>" maxlength="20"></td>        </tr>        <?php } ?>        <?php if ($is_email) { ?>        <tr>            <th scope="row"><label for="wr_email">이메일</label></th>            <td><input type="text" name="wr_email" value="<?php echo $email ?>" id="wr_email" class="frm_input email" size="50" maxlength="100"></td>        </tr>        <?php } ?>        <?php if ($is_homepage) { ?>        <tr>            <th scope="row"><label for="wr_homepage">홈페이지</label></th>            <td><input type="text" name="wr_homepage" value="<?php echo $homepage ?>" id="wr_homepage" class="frm_input" size="50"></td>        </tr>        <?php } ?>        <?php if ($option) { ?>        <tr>            <th scope="row">옵션</th>            <td><?php echo $option ?></td>        </tr>        <?php } ?>

관리자에서 게시판 관리 부분 입니다.

09ca5aca28b5adddc7d7b760589f0da2_1453637272_2516.jpg 

여분필드 이용해서 직접 하나하나씩 처리를 해야하는지..? 

답변 2개 / 댓글 5개

채택된 답변
+20 포인트

어떤 옵션을 말씀하시는지요?

소스상으로는

Copy
$is_name     = false;$is_password = false;$is_email    = false;$is_homepage = false;if ($is_guest || ($is_admin && $w == 'u' && $member['mb_id'] != $write['mb_id'])) {    $is_name = true;    $is_password = true;    $is_email = true;    $is_homepage = true;}

이렇게 되어 있습니다만..

답변에 대한 댓글 5개

관리자 모드에서 아닌 코드상에서 상태변경을 해줘야 하는건가요?
코드 위치 좀 알려주세요 ㅠㅠ
bbs/write.php 파일의 250 행 쯤에 있습니다.
g4 에서는 관리자에서 조정이 되었었는데 g5에서는 코드에서 수정해줘야 하나봐요?
write 스킨 상단에

$is_name = true;
$is_password = true;
$is_email = true;
$is_homepage = true;

이런 식으로 변수값을 설정해 줘도 될 것 같습니다만..


사실, 별로 고민을 해 본 적은 없는데요.. ^^
필요없는 부분은 소스에서 빼버리는 식으로 처리하기 때문에.
2016-01-25 (월) 14:09:15

베타 딱지를 뗀지가 한참되는데...

질문의 제목이 좀 과하네요.

답변을 작성하려면 로그인이 필요합니다.