如何使织梦系统的文章标题突破30个字的限制 不指定

jed , 2006-8-25 11:12 , 代码编程 , 评论(0) , 阅读(6836) , Via 本站原创 | |
************************************************************************

找到./include/inc_arcpart_view.php

行291 :

if($titlelen=="") $titlelen = 30;

修改为

if($titlelen=="") $titlelen = 60;

================================

./include/inc_arcpart_view.php
282行:
function GetArcList($typeid=0,$row=10,$col=1,$titlelen=30,$infolen=160,
$imgwidth=120,$imgheight=90,$listtype="all",$orderby="default",$keyword="",
$innertext="",$tablewidth="100",$arcid=0,$idlist="")


将其中的$titlelen=30改为自己希望的长度。

=====================================

后台文件

action_article_save.php

action_article_eidt_save.php


$title = cn_substr($title,60);

将其中的60改为自己希望的长度。

=================================

数据库

同时要修改数据库中dede_archives数据表中的title字段,类型不变,将数字改为自己希望的长度。


====================================================
如果是用的采集功能的话,还得改一个文件action_co_export.php
大约在53行,找到
 if($title_sel=="0") $title = addslashes($row->title);
 else $title = cn_substr($fields[$title_sel],60);

将其中的60改成自己希望的数字!
Tags:
发表评论

昵称

网址

电邮

打开HTML 打开UBB 打开表情 隐藏 记住我 [登入] [注册]