帝國ecms文章圖片自動添加下一頁鏈接建站知識
導讀:1建站知識帝國CMS模板網下面的帝國CMS教程欄目為您提供了帝國ecms文章圖片自動添加下一頁鏈接網站seo優化seo網站優化軟件。
在e/class/function.php相應位置添加ClickPicNext函數//替換禁用字符 function ReplaceWord($newstextseo網站優化培訓){ global $empire,$dbtbpre; if(empty($newstext)) {return $newstext;} $sql=$empire->query("select newword,oldword from {$dbtbpre}enewswords"); while($r=$empire->fetch($sql)) { $newstext=str_replace($r[oldword],$r[newword],$newstext); } return $newstext; } 后邊添加 //把圖片替換成鏈接 //---------------------------- function ClickPicNext($newstext){ // global $empire,$dbtbpre; if(empty($newstext)) {return $newstext;} $newstext=preg_replace('//i', "$0",$newstext); return $newstext; }
然后,在大約1962行,即在以下代碼后: if($public_r['opencopyt高端網站建設ext']) { $add[newstext]=AddNotCopyRndStr($add[newstext]);//隨機復制字符 } 添加一行$add[newstext]=ClickPicNext($add[newstext]公司網站建設); 這樣,點擊文章中的圖片,就可以鏈接至下一頁了。
相關網站seo優化seo網站優化軟件。聲明: 本文由我的SEOUC技術文章主頁發布于:2023-05-22 ,文章帝國ecms文章圖片自動添加下一頁鏈接建站知識主要講述下一頁,帝國,鏈接網站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_4790.html