포인트 내역의 글을 어디서 고치나요? 정보
포인트 내역의 글을 어디서 고치나요?본문
포인트 내역을 보면 ...
글쓰기,첫로그인,코멘트입력,회원가입 축하,투표참여,추천인...등의
글이 한글로 나오잖아요
이 글을 해당 국가 언어로 고치려면 어디서 고치면 되나여?
아무리 파일에서 검색을 해도 안나옵니다.
좋은 하루 되시고 답변 부탁드립니다.
댓글 전체
bbs, adm 디렉토리에 있는 그누보드 원본 프로그램들을 수정하셔야 합니다.
grep으로 검색한 내용입니다.
[www/g4/bbs]$ grep insert_point *.php
board.php: insert_point($member[mb_id], $board[bo_read_point], "$board[bo_subject] $wr_id 글읽기", $bo_table, $wr_id, '읽기');
delete_all.php: insert_point($row[mb_id], $board[bo_write_point] * (-1), "$board[bo_subject] $row[wr_id] 글삭제");
delete_all.php: insert_point($row[mb_id], $board[bo_comment_point] * (-1), "$board[bo_subject] {$write[wr_id]}-{$row[wr_id]} 코멘트삭제");
delete_comment.php: insert_point($write[mb_id], $board[bo_comment_point] * (-1), "$board[bo_subject] {$write[wr_parent]}-{$comment_id} 코멘트삭제");
delete.php: insert_point($row[mb_id], $board[bo_write_point] * (-1), "$board[bo_subject] $row[wr_id] 글삭제");
delete.php: insert_point($row[mb_id], $board[bo_comment_point] * (-1), "$board[bo_subject] {$write[wr_id]}-{$row[wr_id]} 코멘트삭제");
download.php: insert_point($member[mb_id], $board[bo_download_point], "$board[bo_subject] $wr_id 파일 다운로드", $bo_table, $wr_id, "다운로드");
poll_update.php: insert_point($member[mb_id], $po[po_point], $po[po_id] . ". " . cut_str($po[po_subject],20) . " 투표 참여 ", "@poll", $po[po_id], "투표");
register_form_update.php: insert_point($mb_id, $config[cf_register_point], "회원가입 축하", '@member', $mb_id, '회원가입');
register_form_update.php: insert_point($mb_recommend, $config[cf_recommend_point], "{$mb_id}의 추천인", '@member', $mb_recommend, "{$mb_id} 추천");
scrap_popin_update.php: insert_point($member[mb_id], $board[bo_comment_point], "$board[bo_subject] {$wr_id}-{$comment_id} 코멘트쓰기", $bo_table, $comment_id, '코멘트');
write_comment_update.php: insert_point($member[mb_id], $board[bo_comment_point], "$board[bo_subject] {$wr_id}-{$comment_id} 코멘트쓰기", $bo_table, $comment_id, '코멘트');
write_update.php: insert_point($member[mb_id], $board[bo_write_point], "$board[bo_subject] $wr_id 글쓰기", $bo_table, $wr_id, '쓰기');
write_update.php: insert_point($member[mb_id], $board[bo_comment_point], "$board[bo_subject] $wr_id 글답변", $bo_table, $wr_id, '쓰기');
[www/g4/bbs]$ grep delete_point *.php
delete_all.php: if (!delete_point($row[mb_id], $bo_table, $row[wr_id], '쓰기'))
delete_all.php: if (!delete_point($row[mb_id], $bo_table, $row[wr_id], '코멘트'))
delete_comment.php:if (!delete_point($write[mb_id], $bo_table, $comment_id, '코멘트'))
delete.php: if (!delete_point($row[mb_id], $bo_table, $row[wr_id], '쓰기'))
delete.php: if (!delete_point($row[mb_id], $bo_table, $row[wr_id], '코멘트'))
[www/adm]$ grep insert_point *.php
admin.lib.php: insert_point($mb[mb_recommend], $config[cf_recommend_point] * (-1), "{$mb_id}님의 회원자료 삭제로 인한 추천인 포인트 반환", '@member', $mb[mb_recommend], "{$mb_id} 추천인 삭제");
point_clear.php: insert_point($row[mb_id], $total, "포인트 {$count}건 정리", "@clear", $row[mb_id], $g4[time_ymd]."-".uniqid(""));
point_update.php://insert_point($mb_id, $po_point, $po_content, '@passive', $mb_id, $member[mb_id]);
point_update.php:insert_point($mb_id, $po_point, $po_content, '@passive', $mb_id, $member[mb_id]."-".uniqid(""));
grep으로 검색한 내용입니다.
[www/g4/bbs]$ grep insert_point *.php
board.php: insert_point($member[mb_id], $board[bo_read_point], "$board[bo_subject] $wr_id 글읽기", $bo_table, $wr_id, '읽기');
delete_all.php: insert_point($row[mb_id], $board[bo_write_point] * (-1), "$board[bo_subject] $row[wr_id] 글삭제");
delete_all.php: insert_point($row[mb_id], $board[bo_comment_point] * (-1), "$board[bo_subject] {$write[wr_id]}-{$row[wr_id]} 코멘트삭제");
delete_comment.php: insert_point($write[mb_id], $board[bo_comment_point] * (-1), "$board[bo_subject] {$write[wr_parent]}-{$comment_id} 코멘트삭제");
delete.php: insert_point($row[mb_id], $board[bo_write_point] * (-1), "$board[bo_subject] $row[wr_id] 글삭제");
delete.php: insert_point($row[mb_id], $board[bo_comment_point] * (-1), "$board[bo_subject] {$write[wr_id]}-{$row[wr_id]} 코멘트삭제");
download.php: insert_point($member[mb_id], $board[bo_download_point], "$board[bo_subject] $wr_id 파일 다운로드", $bo_table, $wr_id, "다운로드");
poll_update.php: insert_point($member[mb_id], $po[po_point], $po[po_id] . ". " . cut_str($po[po_subject],20) . " 투표 참여 ", "@poll", $po[po_id], "투표");
register_form_update.php: insert_point($mb_id, $config[cf_register_point], "회원가입 축하", '@member', $mb_id, '회원가입');
register_form_update.php: insert_point($mb_recommend, $config[cf_recommend_point], "{$mb_id}의 추천인", '@member', $mb_recommend, "{$mb_id} 추천");
scrap_popin_update.php: insert_point($member[mb_id], $board[bo_comment_point], "$board[bo_subject] {$wr_id}-{$comment_id} 코멘트쓰기", $bo_table, $comment_id, '코멘트');
write_comment_update.php: insert_point($member[mb_id], $board[bo_comment_point], "$board[bo_subject] {$wr_id}-{$comment_id} 코멘트쓰기", $bo_table, $comment_id, '코멘트');
write_update.php: insert_point($member[mb_id], $board[bo_write_point], "$board[bo_subject] $wr_id 글쓰기", $bo_table, $wr_id, '쓰기');
write_update.php: insert_point($member[mb_id], $board[bo_comment_point], "$board[bo_subject] $wr_id 글답변", $bo_table, $wr_id, '쓰기');
[www/g4/bbs]$ grep delete_point *.php
delete_all.php: if (!delete_point($row[mb_id], $bo_table, $row[wr_id], '쓰기'))
delete_all.php: if (!delete_point($row[mb_id], $bo_table, $row[wr_id], '코멘트'))
delete_comment.php:if (!delete_point($write[mb_id], $bo_table, $comment_id, '코멘트'))
delete.php: if (!delete_point($row[mb_id], $bo_table, $row[wr_id], '쓰기'))
delete.php: if (!delete_point($row[mb_id], $bo_table, $row[wr_id], '코멘트'))
[www/adm]$ grep insert_point *.php
admin.lib.php: insert_point($mb[mb_recommend], $config[cf_recommend_point] * (-1), "{$mb_id}님의 회원자료 삭제로 인한 추천인 포인트 반환", '@member', $mb[mb_recommend], "{$mb_id} 추천인 삭제");
point_clear.php: insert_point($row[mb_id], $total, "포인트 {$count}건 정리", "@clear", $row[mb_id], $g4[time_ymd]."-".uniqid(""));
point_update.php://insert_point($mb_id, $po_point, $po_content, '@passive', $mb_id, $member[mb_id]);
point_update.php:insert_point($mb_id, $po_point, $po_content, '@passive', $mb_id, $member[mb_id]."-".uniqid(""));
이렇게 빨리 상세히 가르쳐 주시기 넘 감사합니다.
좋은 하루 되십시요...
좋은 하루 되십시요...
이상하게 해당 파일을 찾아서 변경을 해도 바꿔지지 않습니다.
무슨 이유인지요?
무슨 이유인지요?
회원으로 글 읽기 권한이 설정되어 있을때 나타나는 코멘트도 어디서 고쳐야 하는지
검색에 안나오네요??
고수님들 부탁합니다.
검색에 안나오네요??
고수님들 부탁합니다.
음 난감하군요.
제가 직접 "코멘트 쓰기"를 "Comment Write"로 나오도록 bbs/write_comment_update.php 를 다음처럼 수정해봤습니다.
다시한번 적용해 보시고 일단 코멘트 부분만 체크해보시기 바랍니다 ^^
// 포인트 부여
//insert_point($member[mb_id], $board[bo_comment_point], "$board[bo_subject] {$wr_id}-{$comment_id} 코멘트쓰기", $bo_table, $comment_id, '코멘트'); // 원본소스 주석처리
insert_point($member[mb_id], $board[bo_comment_point], "$board[bo_subject] {$wr_id}-{$comment_id} Comment Write", $bo_table, $comment_id, '코멘트'); // 코멘트쓰기를 영문으로 변경
제가 직접 "코멘트 쓰기"를 "Comment Write"로 나오도록 bbs/write_comment_update.php 를 다음처럼 수정해봤습니다.
다시한번 적용해 보시고 일단 코멘트 부분만 체크해보시기 바랍니다 ^^
// 포인트 부여
//insert_point($member[mb_id], $board[bo_comment_point], "$board[bo_subject] {$wr_id}-{$comment_id} 코멘트쓰기", $bo_table, $comment_id, '코멘트'); // 원본소스 주석처리
insert_point($member[mb_id], $board[bo_comment_point], "$board[bo_subject] {$wr_id}-{$comment_id} Comment Write", $bo_table, $comment_id, '코멘트'); // 코멘트쓰기를 영문으로 변경
lib/comment.lib.php에 insert_point()가 다음처럼 되어있습니다.
// 포인트 부여
function insert_point($mb_id, $point, $content='', $rel_table='', $rel_id='', $rel_action='')
{ ............... }
위에서 함수에서 사용되는 인수중 마지막의 $rel_action 부분에 들어가는 것이 insert_point() 호출시에 한글로 되어있는데 이부분은 영문으로 변경하시면 안됩니다.
아마 작업하실때 한글을 모두 영문으로 변경하신것 같은데... 메세지 부분만 변경하시고 인수의 마지막 부분은 영문으로 변경하지 마시기 바랍니다.
// 포인트 부여
function insert_point($mb_id, $point, $content='', $rel_table='', $rel_id='', $rel_action='')
{ ............... }
위에서 함수에서 사용되는 인수중 마지막의 $rel_action 부분에 들어가는 것이 insert_point() 호출시에 한글로 되어있는데 이부분은 영문으로 변경하시면 안됩니다.
아마 작업하실때 한글을 모두 영문으로 변경하신것 같은데... 메세지 부분만 변경하시고 인수의 마지막 부분은 영문으로 변경하지 마시기 바랍니다.
네 고쳐집니다 정말 감사합니다.
다만 그전 데이터는 변경되지 않고 그대로 한글로 남아 있네요...
다른 분들도 많이 참조가 되었으리라 여겨집니다.
좋은 하루 되시기 바랍니다.
다만 그전 데이터는 변경되지 않고 그대로 한글로 남아 있네요...
다른 분들도 많이 참조가 되었으리라 여겨집니다.
좋은 하루 되시기 바랍니다.
다른 고치는 분들을 위해서 파일검색(그누보드 전체)에서
insert_point 를 검색어로 찾으면 고쳐야 할 부분이 거의 다 나옵니다.
root 님에게 감사드리세요...ㅎ
insert_point 를 검색어로 찾으면 고쳐야 할 부분이 거의 다 나옵니다.
root 님에게 감사드리세요...ㅎ