[질문] 최신글 표시할 때 비회원에게 목록권한이 10인것도 표시되네요 정보
[질문] 최신글 표시할 때 비회원에게 목록권한이 10인것도 표시되네요본문
안녕하세요
제목그대로 작동합니다.
세팅을 찾을수가 없네요.. 혹시 소스를 직접 고쳐야 하나요?
답변 부탁드릴게요~
제목그대로 작동합니다.
세팅을 찾을수가 없네요.. 혹시 소스를 직접 고쳐야 하나요?
답변 부탁드릴게요~
댓글 전체
제가 알기론 소스를 수정해야 되는걸로 압니다;;
latest.lib.php 안에 latest 함수를 하나 더 만들어서
global $member; 와 global $board; 를 꼭 추가해주고
$member[mb_level] 와 $board[목록권한필드]로 조건주면 될듯합니다..
latest.lib.php 안에 latest 함수를 하나 더 만들어서
global $member; 와 global $board; 를 꼭 추가해주고
$member[mb_level] 와 $board[목록권한필드]로 조건주면 될듯합니다..
아아 답변 감사합니다.
수정했어요~
new.php
$sql_common = " from $g4[board_new_table] a, $g4[board_table] b, $g4[group_table] c
where a.bo_table = b.bo_table and b.gr_id = c.gr_id and b.bo_use_search = '1' and bo_list_level <= '$member[mb_level]'";
group.php
$sql = " select bo_table, bo_subject from $g4[board_table]
where gr_id = '$gr_id'
and bo_use_search = '1'
and bo_list_level <= '$member[mb_level]'
order by bo_table ";
index.php
$sql = " select bo_table, bo_subject from $g4[board_table]
where bo_list_level <= '$member[mb_level]' order by gr_id, bo_table ";
수정했어요~
new.php
$sql_common = " from $g4[board_new_table] a, $g4[board_table] b, $g4[group_table] c
where a.bo_table = b.bo_table and b.gr_id = c.gr_id and b.bo_use_search = '1' and bo_list_level <= '$member[mb_level]'";
group.php
$sql = " select bo_table, bo_subject from $g4[board_table]
where gr_id = '$gr_id'
and bo_use_search = '1'
and bo_list_level <= '$member[mb_level]'
order by bo_table ";
index.php
$sql = " select bo_table, bo_subject from $g4[board_table]
where bo_list_level <= '$member[mb_level]' order by gr_id, bo_table ";