How to build a Dream station system to automatically add related key words within the chain

Source: Internet
Author: User

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

The key link in the optimization of the station is the construction of the inner chain. Good inner chain not only can make search engine crawling more deep and wide, at the same time can promote the relevant anchor text keyword ranking. And as the majority of the domestic webmaster use of the construction of the system to build a dream in the chain of automatic building although there are related plug-ins can be achieved, but unfortunately many are required to pay. For the grassroots webmaster there is no simple way to let our inner chain automatic construction, the author learned a little bit of PHP programming fur, a recent study, found that as long as we can achieve a slight modification, the author will share this method in the next article. First, let's look at the effect chart, as shown in the following figure.

  

The author's site is a mobile phone Android phone sharing site, the main keywords are: android,android mobile phone recommendations. Want to realize the content of the key words encountered in the first page of the anchor text. The specific steps are as follows:

1. Enter the background Add new variable

First go to the site's background Settings page, select System settings in the menu, enter the system basic parameters, and then choose to add new variables. Enter the page shown in the following figure.

  

Variable Name: admin

Variable type: Tick multiple lines of text

Group: To facilitate our later management recommendations select "Other Options"

2. Set the relevant keywords and target links within the chain

When we have finished the above setup, we click on "Other Options"

  

In the bottom corner of the page we can see the text box shown in the following figure, we add the relevant keywords and the destination address in the text box. The writing format is "Inside the chain key word | Inside the chain address, inside chain key word | Inside chain address,".

  

3. Fine-tuning the program

We go to the root of the site, find the "article_add.php" file, search the page code and find this section. "$body = Analysehtmlbody ($body, $description, $litpic, $keywords, ' HTMLText ');"

//

$ admin = $dsql->getone ("select * from ' dede_sysconfig ' WHERE varname= ' admin ');

foreach (Explode (', ', $ admin [' value ']) as $value) {

$keys =explode (' | ', $value);

$key _http[]= $keys [0];

$value _http[]= "". $keys [0]. "";

}

$body =str_replace ($key _http, $value _http, $body);

//

Finally, we save the file and upload it.

After uploading we can achieve the relevant key words within the chain of automatic construction, of course, if not shown can first clear cookies in the refresh to see it. Above by the album printing http://www.gdys114.cn original Share, I hope for everyone to help, reprint please retain the source.

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.