전체목록 보이기에서 리스트는 뷰화면 위로 설정하기 정보
전체목록 보이기에서 리스트는 뷰화면 위로 설정하기
본문
질문게시판에 보니까.
bbs/board.php 파일 내용중에 아래와 같은 부분에서
if (!($board[bo_use_comment] && $cwin)) {
// 게시물 아이디가 있다면 게시물 보기를 INCLUDE
if ($wr_id)
include_once("./view.php");
// 전체목록보이기 사용이 "예" 또는 wr_id 값이 없다면 목록을 보임
//if ($board[bo_use_list_view] || empty($wr_id))
if ($member[mb_level] >= $board[bo_list_level] && $board[bo_use_list_view] || empty($wr_id))
{
if($bo_table=="group_qna")
{
include_once ("./list.group.php");
}
else
{
include_once ("./list.php");
}
}
include_once("./board_tail.php");
}
else
include_once("./view_comment.php");
아래의 두 부분을 바꾸면 리스트가 뷰화면 위로 위치한다는 답글이 있었습니다.
// 게시물 아이디가 있다면 게시물 보기를 INCLUDE
if ($wr_id)
include_once("./view.php");
와
// 전체목록보이기 사용이 "예" 또는 wr_id 값이 없다면 목록을 보임
//if ($board[bo_use_list_view] || empty($wr_id))
if ($member[mb_level] >= $board[bo_list_level] && $board[bo_use_list_view] || empty($wr_id))
{
if($bo_table=="group_qna")
{
include_once ("./list.group.php");
}
else
{
include_once ("./list.php");
}
}
그런데, 바꾸어도 동작을 하지 않아요.....;;
혹시 다른 부분도 수정을 해야 하나요?
bbs/board.php 파일 내용중에 아래와 같은 부분에서
if (!($board[bo_use_comment] && $cwin)) {
// 게시물 아이디가 있다면 게시물 보기를 INCLUDE
if ($wr_id)
include_once("./view.php");
// 전체목록보이기 사용이 "예" 또는 wr_id 값이 없다면 목록을 보임
//if ($board[bo_use_list_view] || empty($wr_id))
if ($member[mb_level] >= $board[bo_list_level] && $board[bo_use_list_view] || empty($wr_id))
{
if($bo_table=="group_qna")
{
include_once ("./list.group.php");
}
else
{
include_once ("./list.php");
}
}
include_once("./board_tail.php");
}
else
include_once("./view_comment.php");
아래의 두 부분을 바꾸면 리스트가 뷰화면 위로 위치한다는 답글이 있었습니다.
// 게시물 아이디가 있다면 게시물 보기를 INCLUDE
if ($wr_id)
include_once("./view.php");
와
// 전체목록보이기 사용이 "예" 또는 wr_id 값이 없다면 목록을 보임
//if ($board[bo_use_list_view] || empty($wr_id))
if ($member[mb_level] >= $board[bo_list_level] && $board[bo_use_list_view] || empty($wr_id))
{
if($bo_table=="group_qna")
{
include_once ("./list.group.php");
}
else
{
include_once ("./list.php");
}
}
그런데, 바꾸어도 동작을 하지 않아요.....;;
혹시 다른 부분도 수정을 해야 하나요?
( select a.* , ( select sum(co_count) as co_count from g4_qa_choose where mb_id=a.mb_id and bo_table = 'g4_qa' ) as q_co_count from `g4_write_g4_qa` a where wr_parent = '252743' and wr_8 != '' and wr_is_comment = 1 and CONVERT(wr_7, UNSIGNED) >= 5 group by wr_content having max(wr_7) order by CONVERT(wr_7, UNSIGNED) desc limit 3 )
1055 : Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'sir.a.wr_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
error file : /15sir/bbs/board.php