게시물 보기에서 이미지 클릭이 안되게 하기 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

게시물 보기에서 이미지 클릭이 안되게 하기 정보

게시물 보기에서 이미지 클릭이 안되게 하기

본문

질문답변에서 검색해 봐서 적용해 봤는데 소용이 없더라고요....

배추스킨인데...
글 내용에 있는 이미지(업로드 이미지, 외부이미지 모두)에서 마우스 왼쪽 클릭으로 새창으로 뜨는 것이 아예 안되게 하는 방법이 있나요?


// 파일 출력
ob_start();
for ($i=0; $i<=$view[file][count]; $i++) {
    if ($mw_basic[cf_img_1_noview] && $i==0) continue;
    if ($view[file][$i][view]) {
        if ($board[bo_image_width] < $view[file][$i][image_width]) { // 이미지 크기 조절
            $img_width = $board[bo_image_width];
        } else {
            $img_width = $view[file][$i][image_width];
        }
        $view[file][$i][view] = str_replace("<img", "<img width=\"{$img_width}\"", $view[file][$i][view]);

 if ($mw_basic[cf_exif]) {
     $view[file][$i][view] = str_replace("image_window(this)", "show_exif($i, this, event)", $view[file][$i][view]);
     $view[file][$i][view] = str_replace("title=''", "title='클릭하면 메타데이터를 보실 수 있습니다.'", $view[file][$i][view]);
 } else {
     $view[file][$i][view] = str_replace("onclick='image_window(this);'",
  "onclick='mw_image_window(this, {$view[file][$i][image_width]}, {$view[file][$i][image_height]});'", $view[file][$i][view]);
     // 제나빌더용 (그누보드 원본수정으로 인해 따옴표' 가 없음;)
     $view[file][$i][view] = str_replace("onclick=image_window(this);",
  "onclick='mw_image_window(this, {$view[file][$i][image_width]}, {$view[file][$i][image_height]});'", $view[file][$i][view]);
 }
        echo $view[file][$i][view] . "<br/><br/>";
    }
}
$file_viewer = ob_get_contents();
ob_end_clean();

$view[rich_content] = preg_replace("/{이미지\:([0-9]+)[:]?([^}]*)}/ie", "view_image(\$view, '\\1', '\\2')", $view[content]);

댓글 전체

if ($mw_basic[cf_exif]) {
    $view[file][$i][view] = str_replace("image_window(this)", "show_exif($i, this, event)", $view[file][$i][view]);
    $view[file][$i][view] = str_replace("title=''", "title='클릭하면 메타데이터를 보실 수 있습니다.'", $view[file][$i][view]);
 } else {
    $view[file][$i][view] = str_replace("onclick='image_window(this);'",
  "onclick='mw_image_window(this, {$view[file][$i][image_width]}, {$view[file][$i][image_height]});'", $view[file][$i][view]);
    // 제나빌더용 (그누보드 원본수정으로 인해 따옴표' 가 없음;)
    $view[file][$i][view] = str_replace("onclick=image_window(this);",
  "onclick='mw_image_window(this, {$view[file][$i][image_width]}, {$view[file][$i][image_height]});'", $view[file][$i][view]);
 }

를 지워보세요
[비전문적인글]
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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