祥云天一 發表於 2023-9-28 00:00:00

dedecms友情链接中去掉织梦链投放修改方法

<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        dedecmsV5.6去掉友情链接中“织梦链投放”连接的方法,dedecmsV5.7删除友情链接中的织梦链的方法 <br>
        织梦CMS V5.7,在友情链接中会自动添加“织梦链”,可以考虑删除。不过,在后台管理中,并没有发现织梦链管理,所以只能修改源文件。 <br><br><strong>dedecmsV5.7删除友情链接中的织梦链的方法</strong>:后台模块---文件管理器找到织梦CMS V5.7根目录include/taglib/flinktype.lib.php 文件删除如下代码然后重新生成首页HTML <br>
         </p>
<div class="msgheader" style='margin: 3px auto 0px; padding: 0px 3px; outline: none; line-height: 21.6px; clear: both; border-width: 1px; border-style: solid; border-color: rgb(0, 153, 204); background: rgb(246, 251, 255); overflow: hidden; font-family: tahoma, arial, "Microsoft YaHei";'>
        <div class="right">
                <span><u>复制代码</u></span>
</div>
        代码如下:</div>
<div class="msgborder" id="phpcode4" style='margin: 0px auto 3px; padding: 0px 3px; outline: none; line-height: 25.2px; font-size: 14px; clear: both; border-right: 1px solid rgb(0, 153, 204); background: rgb(221, 237, 251); overflow: hidden; border-left: 1px solid rgb(0, 153, 204); word-break: break-all; border-bottom: 1px solid rgb(0, 153, 204); word-wrap: break-word; font-family: tahoma, arial, "Microsoft YaHei";'>
        <br>
        $dedecms = false; <br>
        $dedecms-&gt;id = 999; <br>
        $dedecms-&gt;typename = '织梦链'; <br>
        if($type == 'dedecms') $row[] = $dedecms; </div>
<br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><strong style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>dedecmsV5.6去掉友情链接中“织梦链投放”连接的方法</strong><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>:后台模块---文件管理器找到织梦CMS V5.6根目include/taglib/flink.lib.php 文件删除如下代码然后重新生成首页HTML </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><div class="msgheader" style='margin: 3px auto 0px; padding: 0px 3px; outline: none; line-height: 21.6px; clear: both; border-width: 1px; border-style: solid; border-color: rgb(0, 153, 204); background: rgb(246, 251, 255); overflow: hidden; font-family: tahoma, arial, "Microsoft YaHei";'>
        <div class="right">
                <span><u>复制代码</u></span>
</div>
        代码如下:</div>
<div class="msgborder" id="phpcode5" style='margin: 0px auto 3px; padding: 0px 3px; outline: none; line-height: 25.2px; font-size: 14px; clear: both; border-right: 1px solid rgb(0, 153, 204); background: rgb(221, 237, 251); overflow: hidden; border-left: 1px solid rgb(0, 153, 204); word-break: break-all; border-bottom: 1px solid rgb(0, 153, 204); word-wrap: break-word; font-family: tahoma, arial, "Microsoft YaHei";'>
        <br>
        // 获取织梦链 <br>
        $cache_file = DEDEDATA.'/cache/dedelink.txt'; <br>
        if(file_exists($cache_file)) <br>
        { <br>
        $result = unserialize(file_get_contents($cache_file)); <br>
        } <br>
        if(!isset($result['result']) OR $result['timeout'] &lt; time()) <br>
        { <br>
        $linkUrl = DedeGetHtml("http://flink.dedecms.com/server_url.php")."flink_v56.php?lang={$cfg_soft_lang}&amp;site={$_SERVER['SERVER_NAME']}&amp;version=".$cfg_version; <br>
        $linkInfo = DedeGetHtml($linkUrl); <br>
        $result = array(); <br>
        $result['result'] = $linkInfo; <br>
        $result['timeout'] = time() + 60 * 60 * 3; // 缓存3个小时 <br>
        file_put_contents($cache_file, serialize($result)); <br>
        } else { <br>
        $linkInfo = $result['result']; <br>
        } </div>
<br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>记得一定要重新生成HTML才行。</span>
頁: [1]
查看完整版本: dedecms友情链接中去掉织梦链投放修改方法