How to implement an article call between two sets of Z-blog programs

Source: Internet
Author: User
Keywords Blog

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

Wuhan SEO recently found that a lot of independent blog friends to establish a micro-blog (in the first level of the directory under the blog again installed a set of Zblog blog program), first found micro-blog or in Lou's blog, his article is blog and micro-blog cross update, micro-blog is shorter so every day also need not so tired, and the effectiveness of site optimization has not diminished. The thought of having this kind of advantage I also set up a micro-blog, wait until after the establishment of suddenly found a problem, two sets of zblog between the program how the article call? At that time to find the whole Baidu also failed to find teaching materials to, so thick shameless consulted a number of friends to help just finished, here again thank those friends. Share with Zblog how to invoke a microblogging article today.

First, the main blog calls micro-blog article

1, open the micro-blog root directory found inside the template file c_system_base.asp (path: background > File Management >function>c_system_base.asp), the No. 2187 line see the following code:

Call SaveToFile (Blogpath & "/include/previous.asp", Strprevious, "Utf-8", True)

2. Add the following code below this code:

Call SaveToFile (Blogpath,len (Blogpath)-5) & "/include/t_previous.asp", Strprevious, "Utf-8", True)

3, a new t_previous.asp file, the content is empty, upload to the main blog include directory

Note: (Left (Blogpath,len (Blogpath)-5) where 5 is the "blog/" letter length, because my microblog is "weibo/" so is 6, this according to own change.

4, and then in the template where you want to call the use of tags < #CACHE_INCLUDE_T_PREVIOUS #> can normally call another set of the latest blog list.

Second, the micro-blog calls the main blog article

The method does not change, change the object that can be changed. Open the template file c_system_base.asp inside the main blog and locate the following code:

Call SaveToFile (Blogpath & "/include/previous.asp", Strprevious, "Utf-8", True)

Add the following code below this code:

Call SaveToFile (Blogpath,len (Blogpath)) & "Blog/include/t_previous.asp", Strprevious, "Utf-8", True) Note: This code is different from the previous code

Removed "-5", added "blog", detailed code to explain the reference above.

Finally, two blog backstage all "file Rebuild", the blog page refreshes, you can see the effect.

Attach: Template page Call module code

<dl class= "Widget recent-posts" >
<dd><h3> Micro Blog Latest article </h3></dd>
<dt>
<ul>
< #CACHE_INCLUDE_T_PREVIOUS #>
</ul>
</dt>
</dl>

The establishment of micro-blog friends can be based on the Wuhan SEO method to call the article if you have any suggestions can be pointed out in the message board. Original article please indicate reproduced from Wuhan SEO Rongchan Blog This article address: http://www.pangziren.com/post/22.html

Related Article

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.