누가 검색했는지 알수 있는 방법 없나요? > 그누4 질문답변

그누4 질문답변

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

누가 검색했는지 알수 있는 방법 없나요? 정보

누가 검색했는지 알수 있는 방법 없나요?

본문

누군가가 '바보'라는 단어를 검색했습니다.

관리자 페이지에 '바보'라는 단어를 검색한 사람 아이디나 이름이 나오는 기능과
누가 클릭했는지 알수 있는 방법 있나요?

소스 구현 어려울까요?

포인트 많이 드릴게요

댓글 전체

g4_popular 테이블에 mb_id 필드를 추가하고 /bbs/search.php에서 다음을 수정하세요

        $sql = " insert into $g4[popular_table] set pp_word = '$search_str', pp_date = '$g4[time_ymd]', pp_ip = '$_SERVER[REMOTE_ADDR]' ";

이걸 다음과 같이

        $sql = " insert into $g4[popular_table] set pp_word = '$search_str', pp_date = '$g4[time_ymd]', pp_ip = '$_SERVER[REMOTE_ADDR]', mb_id = '$member[mb_id] ";

검색을 누가 뭘 했는지 보고 싶다면 다음과 같이 결과 확인
$query = "select * from `$g4[popular_table] where mb_id order  by pp_id DESC"
while($row = sql_fetch_array($query)) {
  echo "$row[pp_word] - $row[mb_id]";
}
<?
include_once("./_common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/head.php");
$query = "select * from `$g4[popular_table] where mb_id order  by pp_id DESC"
while($row = sql_fetch_array($query)) {
  echo "$row[pp_word] - $row[mb_id]";
}
include_once("$g4[path]/tail.php");
include_once("$g4[path]/tail.sub.php");
?>

이렇게 작성했는데 500 내부서버오류가 나네요..

http://zv.pe.kr/search_who.php
전체 66,558 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT