테스트 사이트 - 개발 중인 베타 버전입니다

검색에서 해시태그글도 검색되게 하기 채택완료

지서 5년 전 조회 1,859

http://sir.kr/g5_plugin/1306?sfl=wr_subject&stx=%ED%83%9C%EA%B7%B8" rel="nofollow">http://sir.kr/g5_plugin/1306?sfl=wr_subject&stx=%ED%83%9C%EA%B7%B8  

컴프님의 해시태그 기능인데요 

통합검색에서  글을 넣으면 해시태그달려있던 게시글도 통합검색에 나오게 할수 있을까요?

 

 

 

 

 

 

본문화면에 나타나는 해시태그 모습

view.tag.view.skin.php

 

if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가

 

if (!$board['bo_use_tag']) return;

 

if(!sql_query(" DESC ".COMP_TAG, false)) {

$que = "

create table ".COMP_TAG."(

ct_idx  int not null auto_increment,

bo_table varchar(20) not null default '' comment '게시판코드',

wr_id int not null default '0' comment '게시판시퀀스', 

ct_tag varchar(100) not null default '' comment '태그', 

ct_ip varchar(25) not null default '' comment 'ip', 

ct_regdate datetime not null default '0000-00-00 00:00:00', 

primary key( ct_idx ) , 

index ".COMP_TAG."_index1(ct_tag) 

) comment '태그테이블'";

 

sql_query( $que, false );

}

 

$que  =  "alter table ".$write_table." add column tags varchar(200) default '' comment '태그'";

sql_query( $que , false );

 

$arrtag = explode(",", $view['tags']);

 

if( $view['tags'] ){

?>

 

 

$val ){ $val = trim($val);?>

 

 

 

댓글을 작성하려면 로그인이 필요합니다.

답변 1개

채택된 답변
+20 포인트
e
5년 전

bbs\search.php 파일 95줄에 추가

 

                case 'tags' :

                case 'wr_subject' :

                case 'wr_content' :

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

지서
5년 전
정말감사합니다 해보겠습니다 ^^

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인