카테고리 옵션 질문입니다. 정보
카테고리 옵션 질문입니다.본문
카테고리를 쓰도록 설정하면
공지가 반드시 나오는데
이걸 삭제하려면 어디로 가야하나요?
function get_category_option($bo_table='')
{
global $g4, $board;
/*
$sql = " select bo_category_list from $g4[board_table] where bo_table = '$bo_table' ";
$row = sql_fetch($sql);
$arr = explode("|", $row[bo_category_list]); // 구분자가 , 로 되어 있음
*/
$arr = explode("|", $board[bo_category_list]); // 구분자가 , 로 되어 있음
$str = "";
for ($i=0; $i<count($arr); $i++)
if (trim($arr[$i]))
$str .= "<option value='$arr[$i]'>$arr[$i]</option>\n";
return $str;
}
이 함수는 아닌거같아서요;;;
공지가 반드시 나오는데
이걸 삭제하려면 어디로 가야하나요?
function get_category_option($bo_table='')
{
global $g4, $board;
/*
$sql = " select bo_category_list from $g4[board_table] where bo_table = '$bo_table' ";
$row = sql_fetch($sql);
$arr = explode("|", $row[bo_category_list]); // 구분자가 , 로 되어 있음
*/
$arr = explode("|", $board[bo_category_list]); // 구분자가 , 로 되어 있음
$str = "";
for ($i=0; $i<count($arr); $i++)
if (trim($arr[$i]))
$str .= "<option value='$arr[$i]'>$arr[$i]</option>\n";
return $str;
}
이 함수는 아닌거같아서요;;;
작성자에 의해 채택됐습니다.
관리자 일때만 나올껄요...
write.skin하단분에 보면 스크립트 있습니다...관리자일때 공지 나오게...
write.skin하단분에 보면 스크립트 있습니다...관리자일때 공지 나오게...
댓글 전체
작성자에 의해 채택됐습니다.
관리자 일때만 나올껄요...
write.skin하단분에 보면 스크립트 있습니다...관리자일때 공지 나오게...
write.skin하단분에 보면 스크립트 있습니다...관리자일때 공지 나오게...
감사합니다 해결했습니다.
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 ($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 = '공지';
}";
}
?>
감사합니다.