Dedecms Editor performance statistics showing last month's document and click Information
Source: Internet
Author: User
KeywordsDedecms last month's document click Info edit performance statistics
DEDECMS provides a very useful editing performance statistics feature to help http://www.aliyun.com/zixun/aggregation/8984.html "> Webmaster perform the performance statistics for each login ID, with this data We can visually look at the number of documents processed by each ID last month and month and the amount of clicks that the document brings. These data in the management of the site can play a certain reference value, but dedecms edit performance statistics did not last month's document and click Information, so we need to add this feature, This month's document and click Information, and last month's information can form a sharp contrast, the modified method is as follows:
Open the/dede/sys_admin_user_tj.php file, probably on line 57th, by inserting the following code:
Month
if ($m ==1)
{
$NM = 12;
}else{
$NM = $m-1;
}
$starttime = $y. " -". $nm." -01 00:00:00 ";
$istarttime = Getmktime ($starttime);
$endtime = $y. " -". $m." -01 00:00:00 ";
$iendtime = Getmktime ($endtime);
$row = $dsql->getone ("SELECT count (ID) as Dd,sum" (click) as cc from ' dede_archives ' where senddate> $istarttime and senddate< $iendtime and mid= ' $uid '; ");
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.