首页 > CMS教程 > 织梦CMS    日期:2020-11-04 / 浏览

找到include文件夹下面的arc.archives.class.php文件,打开,记得不能用记事本打开,可以在dedecms后台文件管理里面打开或者notepad++等软件打开。

  找到下面这段代码:

代码如下:
//设置全局环境变量
$this->Fields['typename'] = $this->TypeLink->TypeInfos['typename'];
@SetSysEnv($this->Fields['typeid'],$this->Fields['typename'],$this->Fields['id'],$this->Fields['title'],'archives');
}
//完成附加表信息读取
unset($row);  

大概在第204行。
  然后在

代码如下:
@SetSysEnv($this->Fields['typeid'],$this->Fields['typename'],$this->Fields['id'],$this->Fields['title'],'archives'); 

 下面添加:

代码如下:
$this->Fields['body'] = str_ireplace("<img " ,"<img alt='".$this->Fields['title'].",免费资源网' ",$this->Fields['body']);
$this->Fields['imgurls'] = str_ireplace("<img " ,"<img alt='".$this->Fields['title'].",免费资源网' ",$this->Fields['imgurls']);
$this->Fields['introduce'] = str_ireplace("<img " ,"<img alt='".$this->Fields['title'].",免费资源网' ",$this->Fields['introduce']);

其中的“免费资源网”可以更换成你想要更换的文字。

觉得上面的内容有用吗?快来点个赞吧!

点赞() 我要打赏

温馨提示 : 本站内容来自会员投稿以及互联网,所有源码及教程均为作者总结编辑,请大家在使用过程中提前做好备份,以免发生无法预知的错误,源码类教程请勿直接用于生产环境!

 可能感兴趣的文章