Dede the way to call the latest posts in Discuz x1.5 Square and home

Source: Internet
Author: User
Keywords Posts Discuz dede

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

Hello, everybody! I am Chu Tian stationmaster station stationmaster: Mao Wangong. First of all, I wish you all a happy and happy 11 holiday! Then I do not idle in this holiday, I made a website: Fast Day network. My main station program is the Dede of dream weaving. The community is now very popular with Discuz x1.5. I also have the two sets of procedures for the perfect integration, which will inevitably encounter a lot of integration calls problems. So today is talking to you about DEDECMS integration, dedecms How to call Discuz X Forum Square's latest post. Let's take the latest Dede 5.6 and Discuz x1.5 as examples.

In fact, there are many online Dede call DZ Forum method, but Dede call Discuz X method is very little, I actually also in accordance with their methods to make changes to my fast-Japan network www.kuairi.com for example, I installed the DEDE5.6 in the space root directory, the Discuz X1.5 installed in the shequ subdirectory, named Fast Day Community: http://www.kuairi.com/shequ/I installed the DZX settings are dynamic, So I have to use Dede to invoke Discuz x1.5 in the home home.php and forum Plaza forum.php dynamic content. The first is Dede call Discuz X1.5 in the forum square forum.php dynamic content, I called the latest post. The calling code is as follows:

<UL>
{dede:loop table= ' **********.pre_forum_thread ' sort= ' tid ' row= ' 16 '}
<li><a
Href= "/shequ/forum.php?mod=viewthread&tid=[field:tid/]
"
Target=_blank>[field:subject function= ' cn_substr (@me) '/]</a> </LI>
{/dede:loop}
</UL>

Description: **********.pre_forum_thread One of the ********** is your database name, in addition to the code shequ modified to your discuz x installation directory name. It's important to write what your DZX directory is! If you are calling static, then change the link in the code to the format. Depending on what your site requires, you can also modify the number of call bars row= ' 16 '

The following sends a Dede call to Discuz X's home home.php the latest log code calling code is as follows:

{dede:loop table= ' your database name. Pre_home_blog ' sort= ' blogid ' row= ' 12 '}
<li> <a href= "/Your DZ x Mount subdirectory name/home.php?mod=space&uid=[field:uid/]&do=blog&id=[field:blogid/]"
Target=_blank>[field:subject function= ' cn_substr (@me) '/]</a> </LI>
{/dede:loop}

Also you want to modify your database name, or you install DZX directory name, in fact, is very simple, before Dede call DZ when the data table name is not the same, the forum's Cdb_threads data table name became now Pre_forum_thread uchome uchome_ Blogging has become the pre_home_blog of the present.

Sing's Discuz x is now 1.5 from the original beta version, time is not long, so the internet can not find Dede how to call Discuz x Forum on the home page of the latest Post method, I write this article is also hope that we have the same experience with the webmaster less take a detour! My site has made such a setup call, and can be in the home page perfect call dicuz X1.5 Forum Square and home to the latest articles and posts, I am really happy. We can come to my fast-day network to see the effect of my call, there are any questions you can also come to communicate with me, my contact QQ is: 1067289670

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.