dedecmsV5.7版 tag标签长度的修改方法详解
<p><strong style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><font color="#ff0000">第1步:</font></strong><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>可使用一些能够执行sql语句的软件先连接到mysql数据库,如使用phpadmin或Navicat for MySQL都可以,本文这里就以dedecms5.7后台系统工具下的SQL命令行工具为例。 </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><strong style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><font color="#ff0000">第2步:</font></strong><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>在后台系统中的SQL命令行工具中执行以下语句。 </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>ALTER TABLE `dede_tagindex` CHANGE `tag` `tag` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT ''; </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>ALTER TABLE `dede_taglist` CHANGE `tag` `tag` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT ''; </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>以是语句是把数据库中表dede_tagindex 和dede_taglist的tag字段属性:char(12)修改为varchar(200)。 </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><font color="#339966" style='line-height: 25.2px; font-size: 14px; font-family: tahoma, arial, "Microsoft YaHei";'>注:小编演示的数据库为默认的dede_为表头,如果自己数据库中的不同可根据自己的数据库表头进行相关修改。 </font><br><br><strong style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><font color="#ff0000">第3步:</font></strong><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>找到根目录中的/include/helpers/archive.helper.php文件,并使用dw或相关软件打开,在此文件中查搜索12。 </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>电脑互助网注:dede5.7以下版本可找到include/archives.func.php进行修改。 </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><strong style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><font color="#ff0000">第4步:</font></strong><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>搜索到12这个,把它改成200并直接保存。 </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>电脑互助网注:一般是在198行,默认代码为if(isset($tag) || $tag!=stripslashes($tag))。 </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><strong style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><font color="#ff0000">第5步:</font></strong><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>完成以上操作之后,把文件上传到空间即可直接运行。</span></p>
頁:
[1]