修改/include/arc.archives.class.php文件
1、查找 “解析模板,對內(nèi)容里的變動進行賦值” 在這段話上面/**前面添加以下代碼。
- function?ClickPicNext($ismake=1,$aid,$body) ??
- { ??
- global?$cfg_rewrite; ??
- if($this->NowPage!=$this->TotalPage) ??
- { ??
- $lPage=$this->NowPage+1; ??
- if($ismake=0) ??
- { ??
-
$body=preg_replace("/)/isU","點擊圖片,進入下一頁
.$this->NameFirst."_".$lPage.".".$this->ShortName."'>"."\${0}"."",$body); ?? - } ??
- else??
- { ??
- $PageList=".$this->NameFirst."_".$lPage.".".$this->ShortName."'>"."\${0}".""; ??
- if($cfg_rewrite?==?'Y') ?
- { ?
- $PageList?=?str_replace(".php?aid=","-",$PageList); ?
- $PageList?=?preg_replace("/&pageno=(\d+)/i",'-\\1.html',$PageList); ?
- } ?
- $body=preg_replace("/|?]{0,}((.*)>)/isU",$PageList,$body); ??
- } ??
- } ??
- else??
- { ??
- $body=preg_replace("/)/isU",$this->GetPreNext('imgnext'),$body); ??
- } ??
- return?$body; ??
- } ??
2、查找“$this->Fields[$this->SplitPageField] = $this->SplitFields[$pageNo - 1];”,在這段代碼下添加以下代碼:
- if($ClickPicNext){ ??
- $this->Fields[$this->SplitPageField]=$this->Fields[$this->SplitPageField]; ??
- }else{ ??
- $this->Fields[$this->SplitPageField]=$this->ClickPicNext($ismake,$this->Fields['id'],$this->Fields[$this->SplitPageField]); ??
- } ??
- ??
3、查找“$this->PreNext['next'] = "下一組 ";? ”在這段代碼下添加以下代碼:
- $this->PreNext['imgnext']?=""."\${0}".""; ??
4、查找“$this->PreNext['next'] = “下一篇:沒有了 “;”在這段代碼下添加以下代碼:
- $this->PreNext['imgnext']?="\${0}"; ??
5、查找到以下代碼:
- else?if($gtype=='next') ??
- ????????{ ??
- ????????????$rs?=??$this->PreNext['next']; ??
- ????????} ??
在其下面添加以下代碼:文章來源:http://www.zghlxwxcb.cn/news/detail-417364.html
- else?if($gtype=='imgnext') ??
- { ??
- $rs?=?$this->PreNext['imgnext']; ??
- }??
{dede:field name='imgurls' alt='圖片輸出區(qū)'}[field:pagestyle runphp='yes'] @me= (@me==3 ? '文章來源地址http://www.zghlxwxcb.cn/news/detail-417364.html
{/dede:field}
到了這里,關(guān)于dedecms 5.7 實現(xiàn)點擊圖片到下一頁的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!