특정 게시판 이미지 클릭시 팝업 안되게 정보
특정 게시판 이미지 클릭시 팝업 안되게
본문
전체 게시판이 아닌 특정 게시판에 이미지 첨부시
view.skin.php 에서 확인시 클릭하면 팝업이 뜨면서 보이는데
이 걸 막고 싶습니다.
방법이 있는지요?
댓글 전체
view.skin.php 소스에서 팝업뜨는부분을 변경해야하는데 소스를 올려주셔야 해결될듯합니당
답변 고맙습니다.
저도 그건 아는데요 해당 소스가 common 으로 엮여서 들어가는거라
전체 게시판에 해당되는것 같아서 문의 했습니다.
특정 게시판만 a 태그를 막고자 하는데요 방법이 있을까요?
저도 그건 아는데요 해당 소스가 common 으로 엮여서 들어가는거라
전체 게시판에 해당되는것 같아서 문의 했습니다.
특정 게시판만 a 태그를 막고자 하는데요 방법이 있을까요?
기본 basic 스킨 하나만 쓰는거면 common.lib.php 에 view_file_link함수부분에
if($board[bo_table]!="게시판아이디"){
return "<img src='$g4[path]/data/file/$board[bo_table]/".urlencode($file)."' name='target_resize_image[]' onclick='image_window(this);' style='cursor:pointer;' title='$content'>";
}else{
return "<img src='$g4[path]/data/file/$board[bo_table]/".urlencode($file)."' name='target_resize_image[]' style='cursor:pointer;' title='$content'>";
}
//onclick='image_window(this);'만 게시판아이디로 구분해서 없애주면 될듯합니다
스킨에 직접 편집해도 된다면
그스킨의 view.skin.php소스에서
<?
// 파일 출력
for ($i=0; $i<=count($view[file]); $i++) {
if ($view[file][$i][view]){
if($board[bo_table]=="해당게시판아이디"){
$view[file][$i][view] = str_replace("onclick='image_window(this);'","",$view[file][$i][view]);
}
echo $view[file][$i][view] . "<p>";
}
}
?>
//온클릭부분만 없애두 될듯합니당 급조한거라 ^^;
if($board[bo_table]!="게시판아이디"){
return "<img src='$g4[path]/data/file/$board[bo_table]/".urlencode($file)."' name='target_resize_image[]' onclick='image_window(this);' style='cursor:pointer;' title='$content'>";
}else{
return "<img src='$g4[path]/data/file/$board[bo_table]/".urlencode($file)."' name='target_resize_image[]' style='cursor:pointer;' title='$content'>";
}
//onclick='image_window(this);'만 게시판아이디로 구분해서 없애주면 될듯합니다
스킨에 직접 편집해도 된다면
그스킨의 view.skin.php소스에서
<?
// 파일 출력
for ($i=0; $i<=count($view[file]); $i++) {
if ($view[file][$i][view]){
if($board[bo_table]=="해당게시판아이디"){
$view[file][$i][view] = str_replace("onclick='image_window(this);'","",$view[file][$i][view]);
}
echo $view[file][$i][view] . "<p>";
}
}
?>
//온클릭부분만 없애두 될듯합니당 급조한거라 ^^;
님 코드에 제가 약간 건들어서 수정했더니 잘 됩니다.
좋은 팁 주셔서 정말 감사드립니다.
좋은 팁 주셔서 정말 감사드립니다.
감사요