早期的dedecms5.6版本带了“织梦链投放”,随着系统升级,织梦dedecms5.7带了“织梦链”,今天就介绍下织梦链删除方法。
织梦CMS V5.7,在友情链接中会自动添加“织梦链”,可以考虑删除。不过,在后台管理中,并没有发现织梦链管理,所以只能修改源文件。
dedecmsV5.7删除友情链接中的织梦链的方法:
后台模块---文件管理器找到织梦CMS V5.7根目录 include/taglib/flinktype.lib.php 文件删除如下代码然后重新生成首页HTML
3 | $dedecms ->typename = '织梦链' ; |
4 | if ( $type == 'dedecms' ) $row [] = $dedecms ; |
|
dedecmsV5.6去掉友情链接中“织梦链投放”连接的方法:
后台模块---文件管理器找到织梦CMS V5.6根目include/taglib/flink.lib.php 文件删除如下代码然后重新生成首页HTML
02 | $cache_file = DEDEDATA. '/cache/dedelink.txt' ; |
03 | if ( file_exists ( $cache_file )) |
05 | $result = unserialize( file_get_contents ( $cache_file )); |
07 | if (!isset( $result [ 'result' ]) OR $result [ 'timeout' ] < time()) |
10 | $linkInfo = DedeGetHtml( $linkUrl ); |
12 | $result [ 'result' ] = $linkInfo ; |
13 | $result [ 'timeout' ] = time() + 60 * 60 * 3; |
14 | file_put_contents ( $cache_file , serialize( $result )); |
16 | $linkInfo = $result [ 'result' ]; |
|
记得一定要重新生成HTML才行。
上一篇:dedecms织梦后台管理标题“织梦内容管理系统”删除方法
下一篇:dedecms织梦安装到虚拟主机如何切换PHP版本