80行:$addSql .= And (typeid= .$this- TypeID. or typeid2= .$this- TypeID. ) 变更为://提升的,用于处理上级领导目录启用出不来下属目录的难题$ssid = TypeGetSunID($this- TypeID,$this- dsql);$ssid2 = str_replace( t
80行:
$addSql .= And (typeid= .$this- TypeID. or typeid2= .$this- TypeID. )
变更为:
//提升的,用于处理上级领导目录启用出不来下属目录的难题
$ssid = TypeGetSunID($this- TypeID,$this- dsql);
$ssid2 = str_replace( typeid , typeid2 ,$ssid);
//完毕提升的
$addSql .= And (typeid= .$this- TypeID. or .$ssid. or typeid2= .$this- TypeID. or .$ssid2. ) //本句也已改动
上边这一部分用于处理分页查询难题
include/
70行刚开始:
if($ridnum 1){
$tpsql =
for($i=0;$i $ridnum;$i ){
if($tpsql== ) $tpsql .= And ( .TypeGetSunID($reids[$i],$dsql, arc
else $tpsql .= Or .TypeGetSunID($reids[$i],$dsql, arc
}
$tpsql .= )
$orwhere .= $tpsql;
unset($tpsql);
}
else{
$orwhere .= And .TypeGetSunID($typeid,$dsql, arc
}
变更为:
if($ridnum 1){
$tpsql =
for($i=0;$i $ridnum;$i ){
if($tpsql== ) {
$ssid = TypeGetSunID($reids[$i],$dsql, arc
$ssid2 = str_replace( typeid , typeid2 ,$ssid);
$tpsql .= And ( .$ssid. or .$ssid2;}
else {
$tpsql .= Or .TypeGetSunID($reids[$i],$dsql, arc
$tpsql .= str_replace( typeid , typeid2 ,$tpsql);}
}
$tpsql .= )
$orwhere .= $tpsql;
unset($tpsql);
}
else{
$ssid = TypeGetSunID($typeid,$dsql, arc
$ssid2 = str_replace( typeid , typeid2 ,$ssid);
}
更换的编码我写的很不光滑,能够临时先用着,等官方网的处理计划方案出去后再更换
在 也要改一处:
//得到一个单列的文本文档目录
下
//类型ID的标准
$orwhere .= And (dede_archives.typeid= .$this- TypeID. or dede_archives.typeid2= .$this- TypeID. )
改成:
//类型ID的标准
$ssid = TypeGetSunID($this- TypeID,$this- dsql);
$orwhere .= And (dede_archives.typeid= .$this- TypeID. or .$ssid. or dede_archives.typeid2= .$this- TypeID. )
不然有网页页面沒有目录內容,由于80行是Select count(*).....
有关哪个频道相对路径有一个{cmspath}
最先说一下{cmspath}的含意,,开启后台管理 系统软件配备主要参数 能看到第二项,DedeCms安裝文件目录:
这一便是{cmspath}所分析出去的相对路径,倘若beta2升級到lit,必须手工制作改动频道特性,把{cmspath}除去.或是你运作setup升級完以后用lit的全部文档
更换掉以前的B2的全部文档,那样{cmspath}便可以一切正常分析成你的网站相对路径
倘若你没用{cmspath}这一主要参数,.能够照下边的改动
实行SQL: update dede_arctype set typedir=replace(typeidr, {cmspath} ,
以除掉数据信息库的里 {cmspath}
随后改动文档 catalog_add.php 寻找 $true_typedir = str_replace( {cmspath} ,$cfg_cmspath,$typedir);
改为
$true_typedir = str_replace( ,$cfg_cmspath,$typedir);
就可以了
[field:description /]这一标识怎样限定篇幅?
[field:description function= cn_substr(@me,80) /]
dede 里的全部标识都适用那样应用涵数的
有关3.1版友谊连接加上后在沒有显示信息的难题
造成这一的关键缘故是BLT在撰写的情况下把表 dede_flink的ischeck的值弄反了导致的.
在3.01里..ischeck=1表明连接..2表明内容页连接,但3.1恰好反过来,
给一个最真是的改法便是开启inc_fun_SpGetFriendLink.php
寻找第一3行..
CODE:
$wsql = where ischeck=1
[Copy to clipboard]
将1改成2就可以了了.
11.11升级之后,撤销了inc_fun_SpGetFriendLink.php这一文档的启用.
因此只需要开启inc_arcpart_view.php
在410行四周
CODE:
$wsql = where ischeck=1
if($type== p_w_picpath ) $wsql .= And logo
else if($type== text ) $wsql .= And logo=
else $wsql .=
[Copy to clipboard]
一样将where ischeck=1改成2便可以
3.1LIT版广告宣传名字改动后失效的处理方法
read.php?tid=7135
看4楼的回贴.
/]
有关后台管理登录认证码款式的改动
read.php?tid=6244
[field:textlink /]
改成
a href= [field:arcurl /] [field:title function= cn_substr(@me,30) /] /a
在建频道栏目实体模型实例教程
read.php?tid=5972
dedecms完成目录页双款式
table width= 100%
{dede:list type= full }
tr
td >
/tr
{/dede:list}
/table
dedecms的拓展是用function方式的,由于添加if这类构造太占有資源,倘若给你必需,你可以以那样:
[field:ame function= GetMyPic( @me ) /]
在 inc_functions.php 里界定一个涵数
function GetMyPic($img)
{
if($img== ) return
else return img src= $img width= 120 height= 100 border= 0 }
那样来解决
这类作法将会会出现点麻烦,但益处是既做到拓展目地,又不容易占有很大資源,又不危害模版构造,完成真实的模版与编码分离出来
点一下照片进到下一页
大约在444行上下,寻找
$this- Fields[$this- SplitPageField]=$this- Fields[$this- SplitPageField];
注解掉,改成
$this- Fields[$this- SplitPageField]=$this- ClickPicNext($this- Fields[$this- SplitPageField]);
随后,最终再加涵数,重视在最终一个括弧里边!
//把照片更换成连接
//----------------------------
function ClickPicNext( $body)
{
if($this- NowPage!=$this- TotalPage){
$lPage=$this- NowPage 1;
$body=preg_replace( / (img|IMG)(.*)(src|SRC)=[\ | | ]{0,}((.*) )/isU , a href= .$this- NameFirst. _ .$lPage. . .$this- ShortName. . \${0} . /a ,$body);
//$body= a href= .$this- NameFirst. _ .$lPage. . .$this- ShortName. .$body. /a
}else{
if($this- GetNext()){
$body=preg_replace( / (img|IMG)(.*)(src|SRC)=[\ | | ]{0,}((.*) )/isU , a href= .$this- GetNext(). . \${0} . /a ,$body);
//$body= a href= .$this- GetNext(). .$body. /a
}
}
return $body;
}
重视:需先按住面的改法,把