NameFirst."_".$lPage.".".$this->ShortName."'>"."${0}"."",$body); } else { //对于生成静态页面的情况下使用 $PageList="NameFirst."_".$lPage.".".$this->ShortName."'>"."${0}".""; //对于动态页情况下使用,我这里用的是静态,于是将下面这行代码注释,如果您的是动态页面的话,则将上面那行代码注释,使用下面这行即可。 //$PageList=""."${0}".""; if($cfg_rewrite == 'Y') { $PageList = str_replace(".php?aid=","-",$PageList); $PageList = preg_replace("/&pageno=(d+)/i",'-\1.html',$PageList); } $body=preg_replace("/<(img|IMG)(.*)(src|SRC)=["|'| ]{0,}((.*)>)/isU",$PageList,$body); } } else { $body=preg_replace("/<(img|IMG)(.*)(src|SRC)=["|'| ]{0,}((.*)>)/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’] = “下一篇:{$nextRow[‘title’]} “;”在这段代码下添加以下代码: $this->PreNext['imgnext'] =""."${0}".""; 4、查找“$this->PreNext[‘next’] = “下一篇:没有了 “;”在这段代码下添加以下代码: $this->PreNext['imgnext'] ="${0}"; 5、查找到以下代码: else if($gtype=='next') { $rs = $this->PreNext['next']; } 在其下面添加以下代码: else if($gtype=='imgnext') { $rs = $this->PreNext['imgnext']; } 然后保存。重新生成文章即可!
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)