공지에 관하여

안녕하세요
전 그누보드 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 질문답변

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

+
제목 글쓴이 날짜 조회
19년 전 조회 1,263
19년 전 조회 1,333
19년 전 조회 1,173
19년 전 조회 1,347
19년 전 조회 1,577
현호
19년 전 조회 1,480
19년 전 조회 1,438
19년 전 조회 1,607
19년 전 조회 1,705
19년 전 조회 1,546
19년 전 조회 1,036
19년 전 조회 1,404
19년 전 조회 1,587
19년 전 조회 1,639
19년 전 조회 1,496
19년 전 조회 1,632
19년 전 조회 1,532
19년 전 조회 1,443
19년 전 조회 1,075
19년 전 조회 1,103