워터마크가 모든 게시판에 일괄 적용이 됩니다. 정보
워터마크가 모든 게시판에 일괄 적용이 됩니다.본문
워터마크가 모든 게시판에 일괄 적용이 됩니다.
모든 게시판에 일괄적용이 아닌 [게시판의 그룹]에 적용하고 싶습니다. 코드를 어떻게 수정해야 할까요;;
아래 코드는 워터마크 적용시 lib/common.lib.php에 삽입하는 코드입니다.
---
return "<img src=makeimg.php?photo=$g4[path]/data/file/$board[bo_table]/".urlencode($file)." name='target_resize_image[]' onclick='image_window(this);' style='cursor:pointer;' title='$content'>";
워터마크 구한 곳
http://sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=16170&sca=&sfl=wr_subject||wr_content&stx=png&sop=and&spt=-2298&page=1
모든 게시판에 일괄적용이 아닌 [게시판의 그룹]에 적용하고 싶습니다. 코드를 어떻게 수정해야 할까요;;
아래 코드는 워터마크 적용시 lib/common.lib.php에 삽입하는 코드입니다.
---
return "<img src=makeimg.php?photo=$g4[path]/data/file/$board[bo_table]/".urlencode($file)." name='target_resize_image[]' onclick='image_window(this);' style='cursor:pointer;' title='$content'>";
워터마크 구한 곳
http://sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=16170&sca=&sfl=wr_subject||wr_content&stx=png&sop=and&spt=-2298&page=1
댓글 전체
워터마크 넣을때 bo_table 구분으로 if문 해주시면 대겠는데요
if ($board[bo_table]==B11) {
return "<img src=makeimg.php?photo=$g4[path]/data/file/$board[bo_table]/".urlencode($file)." name='target_resize_image[]' onclick='image_window(this);' style='cursor:pointer;' title='$content'>";
}
elseif ($board[bo_table]==B12) {
return "<img src=makeimg.php?photo=$g4[path]/data/file/$board[bo_table]/".urlencode($file)." name='target_resize_image[]' onclick='image_window(this);' style='cursor:pointer;' title='$content'>";
}
elseif ($board[bo_table]==B13) {
return "<img src=makeimg.php?photo=$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=makeimg.php?photo=$g4[path]/data/file/$board[bo_table]/".urlencode($file)." name='target_resize_image[]' onclick='image_window(this);' style='cursor:pointer;' title='$content'>";
}
elseif ($board[bo_table]==B12) {
return "<img src=makeimg.php?photo=$g4[path]/data/file/$board[bo_table]/".urlencode($file)." name='target_resize_image[]' onclick='image_window(this);' style='cursor:pointer;' title='$content'>";
}
elseif ($board[bo_table]==B13) {
return "<img src=makeimg.php?photo=$g4[path]/data/file/$board[bo_table]/".urlencode($file)." name='target_resize_image[]' onclick='image_window(this);' style='cursor:pointer;' title='$content'>";
}
else {
}
/////
감사합니다.. 답변말씀듣고 로 해결했네요