포인트 내역의 글을 어디서 고치나요? > 그누4 질문답변

그누4 질문답변

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

포인트 내역의 글을 어디서 고치나요? 정보

포인트 내역의 글을 어디서 고치나요?

본문

포인트 내역을 보면 ...
글쓰기,첫로그인,코멘트입력,회원가입 축하,투표참여,추천인...등의
글이 한글로 나오잖아요
 
이 글을 해당 국가 언어로 고치려면 어디서 고치면 되나여?
 
아무리 파일에서 검색을 해도 안나옵니다.
 
좋은 하루 되시고 답변 부탁드립니다.
  • 복사

댓글 전체

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(""));
음 난감하군요.
제가 직접 "코멘트 쓰기"를 "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() 호출시에 한글로 되어있는데 이부분은 영문으로 변경하시면 안됩니다.

아마 작업하실때 한글을 모두 영문으로 변경하신것 같은데... 메세지 부분만 변경하시고 인수의 마지막 부분은 영문으로 변경하지 마시기 바랍니다.
네 고쳐집니다 정말 감사합니다.
다만 그전 데이터는 변경되지 않고 그대로 한글로 남아 있네요...

다른 분들도 많이 참조가 되었으리라 여겨집니다.

좋은 하루 되시기 바랍니다.
다른 고치는 분들을 위해서 파일검색(그누보드 전체)에서
insert_point 를 검색어로 찾으면 고쳐야 할 부분이 거의 다 나옵니다.

root 님에게 감사드리세요...ㅎ
© SIRSOFT
현재 페이지 제일 처음으로