PHPCMS V9采集地址中有相对路径的问题及解决方法

phpcms教程 强烈建议 2024-03-02 10:45 246 0

  修改数据库v9_collection_node,增加两个字段replace_from,replace_to(varchar(200))

  1、 /phpcms/modules/collection/templates/node_form.tpl.php第99行后增加(位置在之前)

  

  网址替换:

  

  替换为

  

  

  

  2、 /phpcms/modules/collection/classes/collection.class.php第177行后增加(位置在:$html = str_replace(array("", ""), " ", $html);之后)

  if(!empty($config['replace_from'])){

  $html = str_replace($config['replace_from'], $config['replace_to'], $html);}

  3、 进入数据库给 数据库名_collection_node 增加字段:replace_from 和 replace_to 两个字段。字数50-100都可以。

本站资源均来自互联网或会员发布,如果不小心侵犯了您的权益请与我们联系。我们将立即删除!谢谢!