The method of realizing the function of clicking on the picture of DEDECMS to enter the next page
This article mainly introduces the realization of DEDECMS click on the picture to enter the next page of the function, the article is very detailed, has a certain reference value, interested friends must read it!
DEDECMS click on the picture to go to the next page function how to achieve?
Now many people who use dedecms to do portal sites have pictures or atlas channels, and some webmasters have also gone online in order to increase their popularity. For webmasters who use DedeCMS to build a station, the most important thing they want to achieve is to click on the picture to enter the next page.
Directly to the point, the characteristic is: do not modify the source code, only do processing on the template.
Modify include/arc.archives.class.php
1. Look for "/ / parse the template and assign values to the changes in the content." add the following code to this paragraph:
The code is as follows:
Function ClickPicNext ($ismake=1,$aid,&$body) {global $cfg_rewrite; if ($this- > this- > TotalPage) {$lPage=$this- > NowPage+1; if ($ismake=0) {$body=preg_replace ("/ NameFirst." _ ". $lPage.". $this- > ShortName. "'>". "\ ${0}", $body);} else {$PageList= "."\ ${0} "."; if ($cfg_rewrite = ='Y') {$PageList= str_replace (".php? aid=", "-", $PageList) $PageList = preg_replace ("/ & pageno= (\ d +) / I",'-\\ 1.htmljewelry grammar PageList);} $body=preg_replace ("/ /