Dedecms Editor performance statistics showing last month's document and click Information

Source: Internet
Author: User
Keywords Dedecms 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 '; ");

$DDLM = $row [' DD '];

$CCLM = $row [' CC '];

Look for the following code:

<TD width= ' 16% ' ><strong> quarterly </strong></td>

Modify to the following code:

<TD width= ' 16% ' ><strong> quarterly </strong></td>

<TD width= ' 12% ' ><strong> last month </strong></td>

<TD width= ' 12% ' ><strong> month </strong></td>

<TD width= ' 12% ' ><strong> nearly seven days </strong></td>

<TD width= ' 12% ' ><strong> day </strong></td>

Look for the following code:

<td>{$dds} | {$ccs}</td>

Insert below:

<td>{$DDLM} | {$CCLM}</td>

Save the file, refresh the editing performance statistics function, the effect screenshot is as follows:

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.