팁] 클럽에서 게시판설정중 일부 변경 가능하게 > 그누4 플러그인

그누4 플러그인

그누보드에는 여러가지 기능 추가가 쉽도록 제작 되었습니다.
플러그인의 저작권은 해당 플러그인 제작자님께 있으며, 그누보드의 저작권과 다를 수 있습니다.
플러그인 다운로드시 좋아요와 감사의 코멘트를 남기시면 제작자에게 큰 힘이됩니다. ^^y

팁] 클럽에서 게시판설정중 일부 변경 가능하게 정보

팁] 클럽에서 게시판설정중 일부 변경 가능하게

본문

이하 cm_main.php

<?
include_once "./_common.php";
.
.
중략
.
.
  <tr>
    <td width="130" bgcolor="#f7f7f7" class="gmenu">게시판 스킨</td>
    <td class="list"><select name="cb_board_skin">
      <?
        $arr = get_club_skin_dir("board");
        for ($i=0; $i<count($arr); $i++) {
            echo "<option value='$arr[$i]'>$arr[$i]</option>\n";
        }
      ?>
        </select></td>
  </tr>
    <tr bgcolor="#eeeeee">
    <td height="1" colspan="4"></td>
  </tr>
  <tr>
    <td width="130" bgcolor="#f7f7f7" class="gmenu">글쓴이 사이드뷰</td>
    <td class="list"><input type=checkbox name=bo_use_sideview value='1' <?=$board[bo_use_sideview]?'checked':'';?>>사용 (글쓴이 클릭시 나오는 레이어 메뉴)</td>
  </tr>

    <tr bgcolor="#eeeeee">
    <td height="1" colspan="4"></td>
  </tr>
  <tr>
    <td width="130" bgcolor="#f7f7f7" class="gmenu">파일 설명 사용</td>
    <td class="list"><input type=checkbox name=bo_use_file_content value='1' <?=$board[bo_use_file_content]?'checked':'';?>>사용</td>
</tr>

    <tr bgcolor="#eeeeee">
    <td height="1" colspan="4"></td>
  </tr>
  <tr>
    <td width="130" bgcolor="#f7f7f7" class="gmenu">이름(실명) 사용</td>
    <td class="list"><input type=checkbox name=bo_use_name value='1' <?=$board[bo_use_name]?'checked':'';?>>사용 (체크해제시 별명 출력)</td>
</tr>

    <tr bgcolor="#eeeeee">
    <td height="1" colspan="4"></td>
  </tr>
  <tr>
    <td width="130" bgcolor="#f7f7f7" class="gmenu">서명보이기사용</td>
    <td class="list"><input type=checkbox name=bo_use_signature value='1' <?=$board[bo_use_signature]?'checked':'';?>>사용</td>
</tr>

    <tr bgcolor="#eeeeee">
    <td height="1" colspan="4"></td>
  </tr>
  <tr>
    <td width="130" bgcolor="#f7f7f7" class="gmenu">추천 사용</td>
    <td class="list"><input type=checkbox name=bo_use_good value='1' <?=$board[bo_use_good]?'checked':'';?>>사용</td>
</tr>
    <tr bgcolor="#eeeeee">
    <td height="1" colspan="4"></td>
  </tr>
  <tr>
    <td width="130" bgcolor="#f7f7f7" class="gmenu">비추천 사용</td>
    <td class="list"><input type=checkbox name=bo_use_nogood value='1' <?=$board[bo_use_nogood]?'checked':'';?>>사용</td>
</tr>


  <tr bgcolor="#CCCCCC">
    <td height="2" colspan="4"></td>
  </tr>

  <tr align="right">
    <td style="padding:5px 10px 5px 10px;" colspan="4"><input name="imageField" type="image" src="images/btn_ok_1.gif" width="41" height="21" border="0"></td>
  </tr>
</table>
</form>
<br><br><br><br><br><br>
<script language="JavaScript" type="text/JavaScript">
    f = document.fcmmain;
   
    <?
    if ($cb[cb_latest_use] == "N") {
        echo "f.cb_latest_use[1].checked = true;\n";
    }
    ?>
    f.cb_latest_rows.value = "<?=$cb[cb_latest_rows]?>";
    f.cb_latest_cols[<?=$cb[cb_latest_cols]-1?>].checked = true;
   
    f.cb_latest_skin.value      = "<?=$cb[cb_latest_skin]?>";
    f.cb_board_skin.value      = "<?=$cb[cb_board_skin]?>";
    f.cb_coverstory_skin.value  = "<?=$cb[cb_coverstory_skin]?>";
</script>
<?
include "$g4[path]/tail.sub.php";
?>


이하 cm_main_update.php

<?
include_once "./_common.php";

if (!$cb[0]) {
    error_msg("해당 클럽이 존재하지 않습니다.");
}

$cm = get_club_member($cb[cb_id], $member[mb_id]);

if (!$is_admin) {
$is_manager = is_manager();
if (!$is_manager) {
    error_msg("스텝권한 이상만 접근 가능합니다.");
}
}

$sql = " update $nc[tbl_club]
            set cb_latest_use = '$cb_latest_use',
                cb_latest_rows = '$cb_latest_rows',
                cb_latest_cols = '$cb_latest_cols',
                cb_board_skin = '$cb_board_skin',
                cb_latest_skin = '$cb_latest_skin',
                cb_coverstory_skin = '$cb_coverstory_skin',
                cb_latest_len = '$cb_latest_len'
          where cb_id = '$cb_id' ";
$result = mysql_query($sql);

$sql2 = " update g4_board
            set bo_use_sideview = '$bo_use_sideview',
                bo_use_file_content = '$bo_use_file_content',
                bo_use_name = '$bo_use_name',
                bo_use_signature = '$bo_use_signature',
                bo_use_good = '$bo_use_good',
                bo_use_nogood = '$bo_use_nogood'
          where bo_table = '$cb_id' ";
$result2 = mysql_query($sql2);



frame_url("./club_manager.php?doc=$doc&cb_id=$cb_id");
?>
추천
0

댓글 전체

전체 3,524 |RSS
그누4 플러그인 내용 검색

회원로그인

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