테스트 사이트 - 개발 중인 베타 버전입니다

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

이하 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");
?>

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 4개

오 대단하시군요!
좋은 팁을 많이 올려 주시면 고맙겟습니다.

^^;;
감사합니다. 잘쓸께요.
전왜 아무변화가 없을까요...ㅡ.ㅜ

게시판 목록

그누4 플러그인

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