Discuz 온라인 세분화 배치 최적화 dedecms 문서 키워드에 따라

출처: 인터넷
작성자: 사용자
키워드: Discuz 키워드 최적화

중간 트랜잭션 http://www.aliyun.com/zixun/aggregation/6858.html "> seo 진단 Taobao 게스트 클라우드 호스트 기술 홀

Dedecms 자체 태그 (키워드) 추출 기능, 하지만 분사는 항상 정확 하지 않다. 물론, 매일 12 업데이트와 사용자의 SEO 정확한 구현에 대 한, 수동 입력 더 제어할 수 있습니다. 하지만 주제는 상대적으로 넓은, 콘텐츠 업데이트 수량 큰 사용자, Dede 분할 완벽 하지 않습니다.

Discuz 온라인 분사는 온라인 무료 프롬 인터페이스입니다. 컨텍스트, 셀 사전 개선 더 많은 데이터에 대 한 중국 포럼, supsite 사용자의 수천의 수백이 있다. 이 작은 프로그램은 기반 Discuz 온라인 세분화 일괄 업데이트 콘텐츠 키워드 (태그)를 보낸 경우 데이터 볼륨 (50000 이상) 또는 가상 호스트 사용자, 로컬을 최고의 환경. 빨리.

방법, CMS 설치 디렉토리, 새로운 c.php를 사용 하 여, 해당 GBK 또는 UTF8 설정 메모장으로 코딩 하는 그들의 해당 하는 다음과 같은 내용으로 복사 합니다. Yourwebsite/c.php?id=1 실행

<? php
Require_once (DirName (__file__). /include/common.inc.php ");

$id = Isset ($id) & & is_numeric ($id)? $id: 0;

대 한 ($a = $id; $a < $id + 10; $a + +) 없음

$row = $dsql-> getone ("선택 Arc.title,tp.body '@__archives' 아크에서 왼쪽 조인 '@__addonarticle' TP Arc.id=tp.aid에 어디 arc.id= '$a');
경우 (Is_array ($row))
{
$title = $row [' 제목 '];
$body = $row [' 몸 '];
$keywords = zhgetkey ($title. $body);
$dsql-> executenonequery ("업데이트" @__archives' Set 키워드를 '$keywords' = id = '$a');
에코 $a. ': $keywords. ' < br / > ';
}
}

경우 ($a > 80000) {휴식;}

에코 "< 스크립트 >";
에코 "settimeout (\" Location.replace ('c.php?id= $a') \ ", 0)";
에코 "< / 스크립트 >";

함수 없음; Zhgetkey ($contents)
$rows = Strip_tags ($contents);
$arr = 배열 (",", "\s", "\ r \ n", "\ n", "\ r", "T", ">", "" "," "," < br / > ");
$QC _rows = Str_replace ($arr, ", $rows);
경우 (strlen ($QC _rows) > 2400) 없음
$QC _rows = substr ($qc _rows, '0 ',' 2400′);
}
$data = @implode (", 파일 (" http://keyword.discuz.com/related_kw.html?title= $qc _ROWS & IC = GBK 및 OCS GBK = "));
Preg_match_all ("/ < kw > (. *) a\ [(. *) \] \] (. *) >< \/kw > /", $data, $out, Preg_set_order);
$key = "";
대 한 ($i = 0 $i < 5; $i + +) 없음
$key = $key. $out [$i] [2];
경우 ($out [$i][2]) $key = $key. ",";
}
$key; 반환
}

기능 cutstr_html ($string, $sublen)

{

$string = Strip_tags ($string);

$string = preg_replace ('/ \n/is ', ", $string);

$string = Preg_replace ('/ | /is ', ", $string);

$string = preg_replace ('/ & n b s p; /is ', ", $string);

Preg_match_all ("/ [\x01-\x7f]| [ \xc2-\xdf][\x80-\xbf]|\xe0[\xa0-\xbf][\x80-\xbf]| [\xe1-\xef] [\X80-\XBF] [\x80-\xbf]|\xf0[\x90-\xbf][\x80-\xbf][\x80-\xbf]| [\xf1-\xf7] [\X80-\XBF] [\X80-\XBF] [\x80-\xbf]/, $string, $t _string);

만약 (카운트 ($t _string[0])-0 > $sublen) $string = 조인 (", Array_slice ($t _string [0], 0, $sublen))." ... ";

다른 $string 조인 = (", Array_slice ($t _string [0], 0, $sublen));

$string; 반환

}

? >

관련 문서

연락처

이 페이지의 내용은 인터넷에서 가져온 것이므로 Alibaba Cloud의 공식 의견이 아닙니다.이 페이지에서 언급 된 제품 및 서비스는 Alibaba Cloud와는 관련이 없으므로이 페이지의 내용이 골칫거리 인 경우 저희에게 알려주십시오. 우리는 5 일 근무일 이내에 이메일을 처리 할 것입니다.

커뮤니티에서 표절 사례를 발견한 경우 info-contact@alibabacloud.com 으로 관련 증거를 첨부하여 이메일을 보내주시기 바랍니다. 당사 직원이 영업일 기준 5일 내에 연락 드리도록 하겠습니다.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.