게시물 보기에서 이미지 클릭이 안되게 하기 정보
게시물 보기에서 이미지 클릭이 안되게 하기본문
질문답변에서 검색해 봐서 적용해 봤는데 소용이 없더라고요....
배추스킨인데...
글 내용에 있는 이미지(업로드 이미지, 외부이미지 모두)에서 마우스 왼쪽 클릭으로 새창으로 뜨는 것이 아예 안되게 하는 방법이 있나요?
// 파일 출력
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]);
댓글 전체
$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]);
}
를 지워보세요
[비전문적인글]