g

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

· 2012-03-01 (목) 11:28:06 · 1703 · 2
워터마크가 모든 게시판에 일괄 적용이 됩니다.
모든 게시판에 일괄적용이 아닌 [게시판의 그룹]에 적용하고 싶습니다. 코드를 어떻게 수정해야 할까요;;

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

66,531건

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

+
제목 글쓴이 날짜 조회
12-03-01 조회 1,860
12-03-01 조회 1,580
12-03-01 조회 1,679
12-03-01 조회 1,789
12-03-01 조회 2,287
12-03-01 조회 1,546
12-03-01 조회 1,381
12-03-01 조회 1,671
12-03-01 조회 1,643
12-03-01 조회 1,673
12-03-01 조회 1,728
12-03-01 조회 1,722
12-03-01 조회 1,112
12-03-01 조회 1,634
12-03-01 조회 1,894
12-03-01 조회 1,704
12-03-01 조회 1,658
12-03-01 조회 2,104
12-03-01 조회 1,667
12-03-01 조회 1,056