Z-blog the method of calling the latest post of Discuz forum

Source: Internet
Author: User

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

Recently, Hunan SEO installed in the subdirectory below a discuz forum program. We all know Zblog is Asp,discuz is PHP, then the ASP Zblog should be implemented in the home page to invoke PHP discuz forum The latest posts? After the efforts of Hunan SEO, finally found a solution (Hunan seo use of the Discuz X2 version, The following will be divided into Discuz x2 versions and non-discuz x2 versions).

One, the Discuz X2 version realizes z-blog invokes the Discuz forum newest post the method.

1, first open the external call.

Methods are: Tools, data invocation, settings, enabling external calls.

External Data call routing restrictions, here in order to prevent illegal calls, heavier server burden, to fill in the routing domain name, otherwise it will show "forum at this time off the data outside the call" prompt.

The webmaster did not enable this feature.

Antecedents domain name, does not support wildcard character, note root domain name and two domain name is two domain name, you want to fill in complete.

Otherwise invoke the Forum newest post, in the blog will display Red "to prohibit" the error prompt.

Referer restriction is taking multiplying. You should use the full domain name.

2. Get the code for the external call.

Methods are: Tools, sidebar.

To get the latest theme of the forum, for example, "sidebar module _ the latest theme", edit, the second line has an external calling code, copy its JS statement, you can also press the number you need to edit the display words, list icons and so on.

3, in Z-blog Call discuz forum topic list.

In the Z-blog template, find the right place to stick to the code you copied.

Second, Discuz x2 version to achieve Z-blog call the Discuz forum the latest Post method.

1, login backstage, Portal > Template management.

  

2. Select "Data Call" in template management

  

3, according to the figure below to fill in the relevant content, to determine the submission.

  

4, after the submission, you can click on the right side of the operation "Properties" for parameter editing, and finally click "External call", copy the corresponding JS code placed to the Zblog home page corresponding position.

  

Interested friends can see Hunan SEO right forum on the latest post call instance, but need to add that this method for JS call, search engine is not very optimized, their choice.

Original article please indicate reproduced from Hunan SEO, this article address: http://www.seoboke.org/seoxg/149.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.