Posts Tagged ‘dedecms’

DEDECMS作者IT柏拉图离职

星期一, 九月 28th, 2009

从大量的报道来看 消息是真实的
自从 DEDE 转商业开始,很少用它了
多方面的原因
外面传说的公开消息(复制来的)
织梦是一个很不错的程序。一直都在为草根站长服务,此次柏拉图正式发文表示已经从织梦离职。 以下是原文: 很多时候纸是包不住火的,我确实已经离开织梦,至于日后织梦如何,看上海团队如何定位吧,我只谈谈织梦本身 其实大家心里的织梦
(全文…)

DEDECMS5.1UTF8升级出错,无法访问后台

星期一, 四月 7th, 2008

output started at /include/pub_charset.php:1)

出错信息提示

基本是围绕着这个.

官方论坛也有出现同样故障的难兄

Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /www/users/doukoo.com/include/pub_charset.php:1) in /www/users/××××.com/include/inc_userlogin.php on line 3

Warning: Cannot modify header information – headers already sent by (output started at /www/users/××××.com/include/pub_charset.php:1) in /www/users/××××.com/dede/config.php on line 10

最终没有合理的答案

官方也没提供任何解答

最先遇到问题的地方在 后台首页

找了相关的PHP 出错信息

解决了这个问题。。

跟以前的WORDPRESS同样的问题

编码

PHP 不支持 带BOM的UTF-8

打开 pub_charset.php 保存为无BOM的版本就可以了

dedecms删除文章自动删除缩图和内容中大图

星期二, 三月 18th, 2008

打开dede/inc/inc_batchup.php

找到”//删除数据库的内容”
在这前面加上

//删除缩略图
if($arcRow['litpic']!=”"){
$dsql->ExecuteNoneQuery(“Delete From #@__uploads where url=’$arcRow[litpic]‘”);
$truedir = GetTruePath($arcRow['siterefer'],$arcRow['sitepath']);
$litpicfile = $truedir.$arcRow['litpic'];
@unlink($litpicfile);
}
//删除大图
$arcbodyQuery = “Select * from “.$arcRow['addtable'].” where aid=’$aid’”;
$arcbodyRow = $dsql->GetOne($arcbodyQuery);
$imgsrcarray=GetImageSrc($arcbodyRow['body']);
foreach ($imgsrcarray as $v) {
if((trim($v)!=”")&&(!eregi(“^http://”,$v))){
$dsql->ExecuteNoneQuery(“Delete From #@__uploads where url=’$v’”);
$picfile = $truedir.$v;
@unlink($picfile);
}
}

//删除数据库的内容

第二处:
找到
Select #@__archives.ID,#@__archives.title,#@__archives.typeid
改为:
Select #@__archives.ID,#@__archives.title,#@__archives.typeid,#@__archives.litpic

第三处:
在文件最后加上一函数
//获得内容中的图像地址
function GetImageSrc($body){
if( !isset($body)) return ”;
else{
preg_match_all (“/<(img|IMG)(.*)(src|SRC)=[\"|'|]{0,}([h|\/].*(jpg|JPG|gif|GIF))[\"|'|\s]{0,}/isU”,$body,$out);
return $out[4];
}
}

dedecms的LOOP 标记规则

星期二, 三月 18th, 2008

功能说明:用于调用任意表的数据,一般用于调用论坛贴子之类的操作
适用范围:所有模板
(1) 基本语法
{ dede:loop table=’ sort=” row=” if=” }
底层模板
{ dede:loop }
(2) 属性
[1] table 表示查询的数据表
[2] sort 用于排序的字段
[3] row 返回结果的条数
[4] if 查询条件
(3)底层模板变量
这个标记的底层模板变量即是被查询表的所有字段

DEDECMS调用DISCUZ论坛指定版块的方法

星期二, 三月 18th, 2008

{ 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 }

DEDECMS调用DISCUZ论坛最新主题

星期二, 三月 18th, 2008

论坛最新主题调用方法

代码

{ 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 }

discuz与DEDECMS同目录TAG.PHP文件修改

星期天, 二月 10th, 2008

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功能尚未测试