Warning: array_slice() expects parameter 1 to be array, null given in
星期四, 十二月 4th, 2008Warning: array_slice() expects parameter 1 to be array, null given in */forumdisplay.php on line 465
DISCUZ 发生此错误解决方法
Warning: array_slice() expects parameter 1 to be array, null given in */forumdisplay.php on line 465
DISCUZ 发生此错误解决方法
做个记号
discuz伪静态,一直以来都认为伪静态对SEO是非常重要的,相比伪静态比一个带参数的页面对搜索引擎更友好
{ dede:loop table=”cdb_threads” if=”fid=1&line;&line;fid=2 and displayorder!=-1″ sort=”tid” row=”6″ }
<a href=”/bbs/viewthread dot php?tid=[field:tid /]” target=”_blank”>
·[field:subject function="cn_substr(' at me',50)" /]
</a>
<br/>
{ /dede:loop }
论坛置顶版块调用方法2:
{ dede:loop table=”cdb_threads” sort=”dateline” if=”fid=’3′ and typeid=’51′” row=”10″ }
<a href=”/a/bbs/viewthread dot php?tid=[field:tid /]” target=”_blank”>
·[field:subject function="cn_substr(' at me',30)" /]</a> <br>
{ /dede:loop }
论坛最新主题调用方法
代码
{ dede:loop table=”cdb_threads” sort=”tid” row=”10″ }
<a href=”/dz/viewthread.php?tid=[field:tid /]“>
·[field:subject function="cn_substr(' at me',30)" /]([field:lastpost function="date('m-d H:M','@me')" /])
</a>
<br/>
{ /dede:loop }
supersite错误了。。无法登陆后台,验证码无法显示
主要功能说明
去掉了 Discuz 语言包的功能
移植 Discuz 模板中所有的功能
添加了自动更新缓存及生命周期功能
在模板中的使用方法跟Discuz的一样,所以就不做多余的说明了,使用前只需要做些简单的设置就可以了
(更多…)
discuz跟DEDECMS安装在同一目录时,发生冲突的文件,TAG.PHP INDEX。PHP
index.php可以直接改名然后在后台设置首页为forum.php
TAG改名比较麻烦了
我选择了修改dede的
要修改的文件是
templets\default\taglist.htm
include\ inc_arcpart_view.php
include\inc_channel_unit_functions.php
include\inc_taglist_view.php 2处
include\ inc_arcpart_view.php
目前改了这些
文件已经能正常显示
因为没使用过TAG功能尚未测试