Dede Click on the image to go to the next page method (article)
Source: Internet
Author: User
Dede article click on the image to automatically go to the next page of the method, I see a lot of friends want, as if the Forum no one out of the way.
Today I need this function, so try to get a bit, the method is as follows:
Modify include/arc.archives.class.php
1. Find the "//parse template, assign a value to the changes in the content" add the following code to this paragraph:
function Clickpicnext ($ismake =1, $aid,& $body)
{
Global $cfg _rewrite;
if ($this->nowpage!= $this->totalpage)
{
$lPage = $this->nowpage+1;
if ($ismake ==1)
{
$body =preg_replace ("/< (img| IMG) (. *) (src| SRC) =[\ "|" | {0,} ((. *) >)/isu "," click on the image to go to the next page <br/><a href= ' ". $this->namefirst." _ ". $lPage.". $this->shortname. "' > "." \${0} "." </a> ", $body);
}
Else
{
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.