給沒能完全顯示的標題加上…,給圖片和圖片鏈接加上title_DedeCms教程
教程Tag:暫無Tag,歡迎添加,賺取U幣!
效果:給沒有完全顯示的標題加上…,給圖片和圖片鏈接加上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;
演示: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生成下拉式友情鏈接列表
- DEDECMS使用拼音首字母做欄目名稱
- 織夢DEDECMS站群增強版 DedeCMS搭建站群首選
- DedeCMS Error:Tag disabled:php錯誤的完整處理方法
- dedecms編碼轉換方法 gbk轉UTF-8,UTF-8轉GBK
- 防XSS,sql注射,代碼執行,文件包含的通用代碼
- DedeCms教程:優化DedeCMS搜索結果
- DedeCms教程:Linux+Apache+PHP+MySQL服務器環境(CentOS篇)
- DedeCms教程:LuManager服務器管理軟件安裝DEDECMS軟件
- DedeCms教程:Ubuntu/Debian上安裝 PHP 5.3, Nginx 和 PHP-fpm
- DedeCms教程:windows server 2003 php 環境搭建