지

공지에 관하여

안녕하세요
전 그누보드 4 utf-8버전을 사용하고 있는데요
기본스킨  = 베이직 스킨에서 공지사항은 최고 관리자만 쓸수있게 되어 있는데
이것을 8등급 이상인 사람이 공지사항을 쓸수 있게 하고 싶습니다.
어떻게 하면 될까요?
 
도움을 청해 봅니다...

댓글 2개

bbs/write.php
---------------------------------------------------------------------------------------------------------------------------------
$is_notice = false;
if ($is_admin && $w != "r")
{
$is_notice = true;

if ($w == "u")
{
// 답변 수정시 공지 체크 없음
if ($write[wr_reply])
$is_notice = false;
else
{
$notice_checked = "";
//if (preg_match("/^".$wr_id."/m", trim($board[bo_notice])))
//if (preg_match("/[^0-9]{0,1}{$wr_id}[\r]{0,1}/",$board[bo_notice]))
if (in_array((int)$wr_id, $notice_array))
$notice_checked = "checked";
}
}
}
---------------------------------------------------------------------------------------------------------------------------------
을 이렇게 수정
---------------------------------------------------------------------------------------------------------------------------------
$is_notice = false;
if ($member[mb_level] >= 8 && $w != "r")
{
$is_notice = true;

if ($w == "u")
{
// 답변 수정시 공지 체크 없음
if ($write[wr_reply])
$is_notice = false;
else
{
$notice_checked = "";
//if (preg_match("/^".$wr_id."/m", trim($board[bo_notice])))
//if (preg_match("/[^0-9]{0,1}{$wr_id}[\r]{0,1}/",$board[bo_notice]))
if (in_array((int)$wr_id, $notice_array))
$notice_checked = "checked";
}
}
}
---------------------------------------------------------------------------------------------------------------------------------


skin/board/basic/write.skin.php
---------------------------------------------------------------------------------------------------------------------------------
<?
// 관리자라면 분류 선택에 '공지' 옵션을 추가함
if ($is_admin)
{
echo "
if (typeof(document.fwrite.ca_name) != 'undefined')
{
document.fwrite.ca_name.options.length += 1;
document.fwrite.ca_name.options[document.fwrite.ca_name.options.length-1].value = '공지';
document.fwrite.ca_name.options[document.fwrite.ca_name.options.length-1].text = '공지';
}";
}
?>
-----------------------------------------------------------------------------------------------------------------------------
을 이렇게 수정...
-----------------------------------------------------------------------------------------------------------------------------
<?
// 관리자라면 분류 선택에 '공지' 옵션을 추가함
if ($member[mb_level] >= 8)
{
echo "
if (typeof(document.fwrite.ca_name) != 'undefined')
{
document.fwrite.ca_name.options.length += 1;
document.fwrite.ca_name.options[document.fwrite.ca_name.options.length-1].value = '공지';
document.fwrite.ca_name.options[document.fwrite.ca_name.options.length-1].text = '공지';
}";
}
?>
-----------------------------------------------------------------------------------------------------------------------------
그런데 이렇게 하면 모든게시판에 레벨8이상이 공지권한을 가지게 됨으로 목적에 따라 게시판관리권한을 통해 공지권한을 제어하는편이 낫지 않을까 생각됩니다...
시그너스님 답변 감사 합니다...
행복한 하루 즐건 하루 되시길........
댓글을 작성하시려면 로그인이 필요합니다.

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
06-08-23 조회 1,327
06-08-23 조회 1,416
06-08-23 조회 1,251
06-08-23 조회 1,415
06-08-23 조회 1,644
현현호
06-08-23 조회 1,546
06-08-23 조회 1,510
06-08-23 조회 1,681
06-08-23 조회 1,775
06-08-23 조회 1,615
06-08-23 조회 1,109
06-08-23 조회 1,489
06-08-23 조회 1,663
06-08-23 조회 1,728
06-08-23 조회 1,579
06-08-22 조회 1,731
06-08-22 조회 1,614
06-08-22 조회 1,512
06-08-22 조회 1,155
06-08-22 조회 1,181