뷰게시판 이미지 클릭

뷰게시판 이미지 클릭

QA

뷰게시판 이미지 클릭

본문

lib/thumbnail.lib.php 파일 내용

 

            if ($width) {

                $thumb_tag = '<img src="'.G5_URL.str_replace($filename, $thumb_file, $data_path).'" alt="'.$alt.'" width="'.$width.'" height="'.$height.'"/>';

            } else {

                $thumb_tag = '<img src="'.G5_URL.str_replace($filename, $thumb_file, $data_path).'" alt="'.$alt.'"/><br><img src="돋보기이미지.gif"/>';

            }

 

이렇게 수정해서 봤는데....

전체게시판에적용이 되더라구요....

 

혹시 특정게시판에만 돋보기 이미지만 적용했으면 하는데...혹시팁좀 알려주세요...

 

ㅜ.ㅜ

 

이 질문에 댓글 쓰기 :

답변 2

올려주신 부분 함수 내용 첫 부분에서 global 에 $bo_table​ 을 추가하고..

 

// 게시글보기 썸네일 생성

function get_view_thumbnail($contents, $thumb_width=0)

{

    global $board, $config, $bo_table

 

 

$thumb_tag = '<img src="'.G5_URL.str_replace($filename, $thumb_file, $data_path).'" alt="'.$alt.'"/><br><img src="돋보기이미지.gif"/>';

 

이 줄만 이렇게 수정해보세요.

 

if ($bo_table == '게시판ID') {

    $thumb_tag = '<img src="'.G5_URL.str_replace($filename, $thumb_file, $data_path).'" alt="'.$alt.'"/><br><img src="돋보기이미지.gif"/>';

} else {

    $thumb_tag = '<img src="'.G5_URL.str_replace($filename, $thumb_file, $data_path).'" alt="'.$alt.'"/>';

}

스킨을 복사해서 다른 이름으로 바꾸고
그 스킨에만 위와 같이 수정하고 연결하면 되겠지요.
답변을 작성하시기 전에 로그인 해주세요.
전체 124,057 | RSS
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT