Absolutely accurate: Dede to the current time when the acquisition document is approved

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Dede has a very bad place, after collecting the article after the generation of documents is the time to collect, this loophole so many beginners do not know how to do?

There are many ways to modify the Web, but the real changes can never be implemented to change to the current time or simply in the update is an error! When I first started to do the station I have also encountered this problem, but also in accordance with the various methods on the Internet have been modified, but the outcome is as above said! This problem until I met a Dede to do the station with the kind master to the solution to me, now selfless dedication to the novice friends, so you can avoid being vexed by this problem!

Here's how to modify it:

Open the archives_do.php file in the directory where the Dede background (default is Dede) (if you can't find the file, I can't help it), find the following code: (Seriously find, the file inside you accidentally find the wrong location, in the comparison below, find the audit document that part of)

$maintable = (Trim ($row [' maintable ']) = = '? ' Dede_archives ': Trim ($row [' maintable ']);

$dsql->executenonequery ("Update" Dede_arctiny ' set arcrank= ' 0 ' where id= ' $aid ');

if ($row [' IsSystem ']==-1)

{

$dsql->executenonequery ("Update". Trim ($row [' addtable ']). " ' Set arcrank= ' 0 ' where aid= ' $aid ');

}

Else

{

$dsql->executenonequery ("Update" $maintable ' set arcrank= ' 0 ' where id= ' $aid ');

}

$pageurl = Makeart ($aid, false);

}

ShowMsg ("Successfully audits the specified document!", $ENV _goback_url);

Replace the above code with the following code:

$maintable = (Trim ($row [' maintable ']) = = '? ' Dede_archives ': Trim ($row [' maintable ']);

$newdate = time ();

$dsql->executenonequery ("Update" Dede_arctiny ' Set sortrank= ' $newdate ', senddate= ' $newdate ', arcrank= ' 0 ' where id= ' $aid ');

if ($row [' IsSystem ']==-1)

{

$dsql->executenonequery ("Update". Trim ($row [' addtable ']). " ' Set sortrank= ' $newdate ', pubdate= ' $newdate ', senddate= ' $newdate ', arcrank= ' 0 ' where aid= ' $aid ');

}

Else

{

$dsql->executenonequery ("Update" $maintable ' Set sortrank= ' $newdate ', pubdate= ' $newdate ', senddate= ' $newdate ', arcrank= ' 0 ' where id= ' $aid ');

}

$pageurl = Makeart ($aid, false);

}

ShowMsg ("Successfully audits the specified document!", $ENV _goback_url);

Just try to review a document to see if it's time to become current.

Said so much also do advertising: my garbage station www.dearqq.net, if you have any questions about Dede, in the ability to help everyone free of charge!

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.