<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

dedecms网站调用DZ论坛最新贴子

时间:2020-12-09

很多同学使用DEDE程序与DZ程序共同去建一个网站,一个做主站,一个做二级目录论坛.然后通过dedecms整合DZ程序实现二个程序之后的互相的调用.

DEDECMS首页调用Discuz论坛最新帖子/最新文章:

[html] {dede:loop table="pre_forum_thread"sort="tid" row='10'}
<a href="/bbs/forum.php?mod=viewthread&tid=[field:tid /]"target="_blank">
·[field:subject function="cn_substr('@me',22)" /]([field:lastpost function="date('m-d H:M','@me')" /])
</a>
{/dede:loop}[/html]

通过以上的代码可以调用二级目录下的Discuz论坛最新发布论坛文章.

DEDECMS首页调用Discuz论坛精华帖:

[html]{dede:loop table="pre_forum_thread"if='digest>0' sort="tid" row="10"}
<a href="/bbs/forum.php?mod=viewthread&tid=[field:tid /]"target="_blank">
·[field:subject function="cn_substr('@me',22)" /]([field:lastpost function="date('m-d H:M','@me')" /])
</a>
{/dede:loop}[/html]

以上代码是调用的为Discuz!论坛的精华贴,注意:pre_forum_thread为数据库表,假如你更改了,那这里也要更改,另外使用以上二段代码去调用DZ论坛数据时,你的DZ论坛必须是在二级目录下,并且是数据表与DEDE的数据库处于同一数据库下才行.

    0
    首页
    案例
    关于
    联系