검색에서 해시태그글도 검색되게 하기 채택완료
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'] ){
?>
답변 1개
답변을 작성하려면 로그인이 필요합니다.
로그인