겔러리 스킨 리스트 섬네일 출력 방법

겔러리 스킨 리스트 섬네일 출력 방법

QA

겔러리 스킨 리스트 섬네일 출력 방법

답변 1

본문

겔러리 스킨에서 리스트에 섬네일이 출력되잖아요.

 

그런데 첨부파일 첫번째 이미지 말고 두번째 첨부파일이 출력되게 하고 싶은데 어디를 어떻게 수정해야 하는거죠.

 

방법이 없나요?

이 질문에 댓글 쓰기 :

답변 1

그누보드5인 경우 아래 처럼 해보세요.

/lib/thumbnail.lib.php 파일을 수정합니다.

 

$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 "; 

위의 소스 부분을 찾아서 아래 처럼 수정하세요.

​​

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 ";

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 28
© SIRSOFT
현재 페이지 제일 처음으로