效果:给没有完全显示的标题加上…,给图片和图片链接加上title
演示:http://my.bbsou.com/index2.html改法:
打开文件:includeinc_arcpart_view.php
找到:
CODE://$this->dtp2->SourceString = $oldSource;//$this->dtp2->CTags = $oldCtags;
//处理一些非凡字段
$row["description"] = cn_substr($row["description"],$infolen);$row["id"] = $row["ID"];
if($row["litpic"]=="") $row["litpic"] = $GLOBALS["cfg_plus_dir"]."/img/default.gif";$row["picname"] = $row["litpic"];
$row["arcurl"] = $this->GetArcUrl($row["id"],$row["typeid"],$row["senddate"],$row["title"],$row["ismake"],$row["arcrank"],$row["namerule"],$row["typedir"],$row["money"]);$row["typeurl"] = $this->GetListUrl($row["typeid"],$row["typedir"],$row["isdefault"],$row["defaultname"],$row["ispart"],$row["namerule2"]);$row["info"] = $row["description"];
$row["filename"] = $row["arcurl"];
$row["stime"] = GetDateMK($row["pubdate"]);$row["typelink"] = "<a href='".$row["typeurl"]."'>".$row["typename"]."</a>";$row["imglink"] = "<a href='".$row["filename"]."'><img src='".$row["picname"]."' border='0' width='$imgwidth' height='$imgheight'></a>";$row["image"] = "<img src='".$row["picname"]."' border='0' width='$imgwidth' height='$imgheight'>";
$row["title"] = cn_substr($row["title"],$titlelen);$row["textlink"] = "<a href='".$row["filename"]."'>".$row["title"]."</a>";if($row["color"]!="") $row["title"] = "<font color='".$row["color"]."'>".$row["title"]."</font>";if($row["iscommend"]==5||$row["iscommend"]==16) $row["title"] = "<b>".$row["title"]."</b>";$row["phpurl"] = $GLOBALS["cfg_plus_dir"];
$row["templeturl"] = $GLOBALS["cfg_templets_dir"];//--------------------------- [Copy to clipboard] 改为
CODE://$this->dtp2->SourceString = $oldSource;//$this->dtp2->CTags = $oldCtags;
查看更多 DedeCms教程 织梦模板 织梦DedeCms视频教程 织梦dedecms专题