최신글 | 갤러리 게시판 목록 썸네일 2번째 첨부이미지 보여지게 하기
페이지 정보
작성자 YJNet 작성일14-10-31 11:09 조회18,454회 댓글0건본문
/lib/thumbnail.lib.php 파일을 수정 - get_list_thumbnail() 함수
$sql = " select bf_file, bf_content from {$g5['board_file_table']}
where bo_table = '$bo_table' and wr_id = '$wr_id' and bf_type between '1' and '3' order by bf_no limit 0, 1 ";
where bo_table = '$bo_table' and wr_id = '$wr_id' and bf_type between '1' and '3' order by bf_no limit 0, 1 ";
위의 소스 부분을 찾아서 아래 처럼 수정하세요.
if($bo_table=="freeboard") // 2번째 첨부파일 이미지가 보여지게 할 게시판명 입력
$sql = " select bf_file, bf_content from {$g5['board_file_table']}
where bo_table = '$bo_table' and wr_id = '$wr_id' and bf_type between '1' and '3' order by bf_no limit 1, 1 ";
else
$sql = " select bf_file, bf_content from {$g5['board_file_table']}
where bo_table = '$bo_table' and wr_id = '$wr_id' and bf_type between '1' and '3' order by bf_no limit 0, 1 ";
$sql = " select bf_file, bf_content from {$g5['board_file_table']}
where bo_table = '$bo_table' and wr_id = '$wr_id' and bf_type between '1' and '3' order by bf_no limit 1, 1 ";
else
$sql = " select bf_file, bf_content from {$g5['board_file_table']}
where bo_table = '$bo_table' and wr_id = '$wr_id' and bf_type between '1' and '3' order by bf_no limit 0, 1 ";
댓글목록
등록된 댓글이 없습니다.