
| 歡迎訪問全國企業(yè)網(wǎng)站設(shè)計(jì)NO.1網(wǎng)站開發(fā)商平臺(tái) | 付款方式 |
POST TIME:2020-10-09
解決方法:
打開 /include/arc.archives.class.php
找到 ://處理要分頁顯示的字段
在
if($this->SplitPageField!='' && $GLOBALS['cfg_arcsptitle']='Y' && isset($this->Fields[$this->SplitPageField])) {
下面添加如下代碼
$yu_array = ''; $yu_tmp = ''; $yu_body = $this->Fields[$this->SplitPageField]; preg_match_all("|<p[^>]*>([^<]*)</p>|isU",$yu_body,$yu_array); for($i=0;$i<count($yu_array[0]);$i++){ if((stristr($yu_array[1][$i],'') !== false) && (stristr($yu_array[1][$i],'') !== false)){ preg_match('|(.*?)|si',$yu_array[1][$i],$yu_tmp); $yu_body = str_replace($yu_array[0][$i],$yu_tmp[1],$yu_body); } } $this->Fields[$this->SplitPageField] = $yu_body;
//將上面代碼中的@替換為#號。
保存即可。
其作用是在模板解析分頁的時(shí)候把分頁標(biāo)簽兩邊的<p>過濾掉,這樣這個(gè)標(biāo)簽就不會(huì)出現(xiàn)在文章內(nèi)容頁中。<div> 的用法類似,把正則里的 <p> 改成 <div> 即可。
巨號網(wǎng)網(wǎng)站開發(fā)部為全國企業(yè)提供網(wǎng)頁設(shè)計(jì)和專業(yè)的公司網(wǎng)站制作等相關(guān)建站服務(wù),并提供24小時(shí)企業(yè)網(wǎng)站設(shè)計(jì)咨詢!
關(guān)于我們 建站知識 榮譽(yù)資質(zhì)網(wǎng)站地圖