d

[1:1,마이페이지]작성자와 관리자만 목록보기

http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=44109&sca=&sfl=wr_subject&stx=%C6%FB%B8%DE%C0%CF&sop=and

이 스킨을 쓰고 있는데, 이것을 작성자와 관리자만 볼수 있는 일명 1:1게시판으로 변경하려고 합니다..

어떤 파일에 어떤 내용을 추가/수정 해야할까요?

부탁드리겠습니다.. 정말 며칠째 이걸로 머리싸매는지.....ㅠㅠ

|

댓글 8개

게시판 관리에서 글 보기 레벨을 10으로 해두세요.
아니면 무조건 비밀글 작성으로 수정하시든지요 ㅎ
전부 그렇게 되어있습니다. 관리설정에서 할것이 아닌데요..
열심히 일한 당신 "떠나라"

잠시 휴식을 갖는것도 좋은 아이디어 창출에 도움이 된답니다.
그러고 싶어요.. 차라리 돈이라도 많이 벌면..ㅠ
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=26021&sca=&sfl=wr_subject&stx=%B8%B6%C0%CC%C6%E4%C0%CC%C1%F6&sop=and

이 스킨이 1:1 게시판 스킨인데요 요스킨을 서로 조합해보면 어떨까요?
위에 사용하시는 스킨과 이스킨의 list.skin.php 파일을 비교해보시면서 수정하시면 되실껏 같네요 ^^
리스트에 관리자와 자신이 쓴글 보이게 하면 됩니다. 리스트에 붙여주세요



//##########################################################################################
if(!$is_admin) { // 관리자가 아닐경우 자기가 작성한 글만 보이도록 한다.

// 분류 선택 또는 검색어가 있다면
if ($sca || $stx)
{
$sql_search = get_sql_search($sca, $sfl, $stx, $sop);

// 가장 작은 번호를 얻어서 변수에 저장 (하단의 페이징에서 사용)
$sql = " select MIN(wr_num) as min_wr_num from $write_table ";
$row = sql_fetch($sql);
$min_spt = $row[min_wr_num];

if (!$spt) $spt = $min_spt;

//$sql_search .= " and (wr_num between '".$spt."' and '".($spt + $config[cf_search_part])."') ";
$sql_search .= " and mb_id = '$member[mb_id]' and wr_is_comment = 0 and (wr_num between '".$spt."' and '".($spt + $config[cf_search_part])."') ";

// 원글만 얻는다. (코멘트의 내용도 검색하기 위함)
$sql = " select distinct wr_parent from $write_table where $sql_search ";
$result = sql_query($sql);
$total_count = mysql_num_rows($result);
}
else
{
$sql_search = "";

// 게시판의 글 수
//$sql = " select count(*) as cnt from $g4[write_prefix]$bo_table where wr_is_comment = 0 ";
$sql = " select count(*) as cnt from $g4[write_prefix]$bo_table where mb_id = '$member[mb_id]' and wr_is_comment = 0 ";
$row = sql_fetch($sql);
$total_count = $row[cnt];

//$total_count = $board[bo_count_write];
}

$total_page = ceil($total_count / $board[bo_page_rows]); // 전체 페이지 계산
if (!$page) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $board[bo_page_rows]; // 시작 열을 구함

if ($board[bo_gallery_cols])
$td_width = (int)(100 / $board[bo_gallery_cols]);

// 정렬
if (!$sst)
{
$sst = "wr_num, wr_reply";
$sod = "";
}
$sql_order = " order by $sst $sod ";

if ($sca || $stx)
{
$sql = " select distinct wr_parent from $write_table where $sql_search $sql_order limit $from_record, $board[bo_page_rows] ";
}
else
{
//$sql = " select * from $write_table where wr_is_comment = 0 $sql_order limit $from_record, $board[bo_page_rows] ";
$sql = " select * from $write_table where mb_id = '$member[mb_id]' and wr_is_comment = 0 $sql_order limit $from_record, $board[bo_page_rows] ";
}
$result = sql_query($sql);

$list = array();
$i = 0;

if (!$sca && !$stx)
{
$arr_notice = split("\n", trim($board[bo_notice]));
for ($k=0; $k<count($arr_notice); $k++)
{
$row = sql_fetch(" select * from $write_table where wr_id = '$arr_notice[$k]' ");
if (!$row[wr_id])
continue;

$list[$i] = get_list($row, $board, $board_skin_path, $board[bo_subject_len]);
$list[$i][is_notice] = true;

$i++;
}
}

$k = 0;

while ($row = sql_fetch_array($result))
{
// 검색일 경우 wr_id만 얻었으므로 다시 한행을 얻는다
if ($sca || $stx)
$row = sql_fetch(" select * from $write_table where wr_id = '$row[wr_parent]' ");

$list[$i] = get_list($row, $board, $board_skin_path, $board[bo_subject_len]);
if (strstr($sfl, "subject"))
$list[$i][subject] = search_font($stx, $list[$i][subject]);
$list[$i][is_notice] = false;
$list[$i][num] = number_format($total_count - ($page - 1) * $board[bo_page_rows] - $k);

$i++;
$k++;
}

$write_pages = get_paging($config[cf_write_pages], $page, $total_page, "./board.php?bo_table=$bo_table".$qstr."&page=");

} // if(!$is_admin) // 관리자가 아닐경우 자기가 작성한 글만 보이도록 한다.
//##########################################################################################
STLC님의 팁이 제가 올려드린 스킨주소의 리스트에 있는 부분이네요 ^^
도움이 되셧길 바랍니다^^
답변해주신 분들 너무 고맙습니다.. 근데 이건 이미 해봤던건데..ㅠ 제가 링크 걸었던 소스와 잘 안맞나봐요~
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
16년 전 조회 1,544
16년 전 조회 1,507
16년 전 조회 1,664
16년 전 조회 1,521
16년 전 조회 1,055
16년 전 조회 775
16년 전 조회 1,622
16년 전 조회 830
16년 전 조회 950
16년 전 조회 1,764
16년 전 조회 2,508
16년 전 조회 1,242
16년 전 조회 2,429
16년 전 조회 964
16년 전 조회 960
16년 전 조회 935
16년 전 조회 1,521
16년 전 조회 986
16년 전 조회 1,344
16년 전 조회 1,025