Simple lines of code integration milk Disk pseudo-Original API makes managing sites easier

Source: Internet
Author: User
Keywords Pseudo Original

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Currently want to get a good site rankings, no outside is 8206.html "> Real-time updates the content of the site, but the majority of the webmaster including the author I am not the text of the birth, no good literary talent, can only learn from the Internet some articles, such articles generally in Baidu will not have a good ranking, So then someone to study the false original, the author has been using false original update articles, so it does save a lot of time.

Just contact false original, also not very understand, in Baidu search "false original", found a lot of false original software, also used a lot, the effect is not very good, false original content is not before and after, is the statement is not smooth, in short all changed the mess. Later also after the webmaster friend introduced, began to use the first in the "Milk plate false Original", the author found that after the site pseudo original article, the quality is still possible, has been used for more than 2 years, the most like its function is to define their own thesaurus, so that the tool more powerful, the only shortage of places is often to copy and paste, A little trouble. These days found that the official website has a new function "API open" update, just the author of the Dedecms can also be the whole, try to complete the next, the following is the author of the integration process, and the majority of the exchange under the webmaster.

Dedecms version: Dedecms V5.7 SP1 official version GBK version

Milk Tray API Address: http://www.naipan.com/api.jsp

PHP Starts the SOAP service

Modify php.ini file, find; extension=php_soap.dll remove the preceding semicolon and restart IIS or Apache

File location to modify: dede\article_add.php

Description: The blue part of the code for the code you want to add

First line head

<? Php

Header ("Content-type:text/html;charset=utf-8");

$ini = Ini_set ("soap.wsdl_cache_enabled", "0");

Require_once (DirName (__file__). /config.php ');

Around 138 lines.

if (Trim ($title) = = ")

{

ShowMsg (' title cannot be empty ', '-1 ');

Exit ();

}

Handle the Body field automatic summary, automatically extract thumbnails, etc.

$body = Analysehtmlbody ($body, $description, $litpic, $keywords, ' htmltext ');

$wsdl = ' Http://202.75.216.106:8080/naipan/NaipanPort?WSDL ';

$content = Iconv (' GBK ', ' utf-8 ', $body);

Parameter value "article Content milk disk Network registered user name test@163.com (default) registered serial number, free users with icql3kdebh7zns97xvt9dldbasr7pbrm2aakbi7hpmw="

$param = Array (

"Arg0" = > $content,

"Arg1" => "test@163.com",

"Arg2" => "icql3kdebh7zns97xvt9dldbasr7pbrm2aakbi7hpmw="

);

$client = new SoapClient ($WSDL);

$result = $client->getcontent ($param, 1);

$body = $result->return;

$body = Iconv (' utf-8 ', ' GBK ', $body);

Automatic paging

if ($sptype = = ' Auto ')

{

$body = Splongbody ($body, $spsize *1024, "#p # Paging title #e#");

}

In this way, the site on the integration of the pseudo original plugin, and all this is free, and then I send a map to everyone to see the effect

The above is my integration, we can follow the integration, if there is a problem, you can also ask Xia Network customer service, they will help you solve, and finally wish everyone's website ranking success!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.