g

워터마크가 모든 게시판에 일괄 적용이 됩니다.

워터마크가 모든 게시판에 일괄 적용이 됩니다.
모든 게시판에 일괄적용이 아닌 [게시판의 그룹]에 적용하고 싶습니다. 코드를 어떻게 수정해야 할까요;;

아래 코드는 워터마크 적용시 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
|

댓글 2개

워터마크 넣을때 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 {
}

/////
감사합니다.. 답변말씀듣고 로 해결했네요
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
13년 전 조회 1,293
13년 전 조회 1,588
13년 전 조회 1,571
13년 전 조회 1,598
13년 전 조회 1,639
13년 전 조회 1,639
13년 전 조회 1,021
13년 전 조회 1,549
13년 전 조회 1,823
13년 전 조회 1,619
13년 전 조회 1,577
13년 전 조회 2,034
13년 전 조회 1,602
13년 전 조회 985
13년 전 조회 840
13년 전 조회 1,478
13년 전 조회 1,184
13년 전 조회 1,090
13년 전 조회 1,632
13년 전 조회 1,396