How to modify the Empire CMS article clicks Default and multiply increase

Source: Internet
Author: User

We publish the article in the Imperial CMS, in the case of no click, the "click" Default display is 0, what is the method to change the attention of the default value? This allows you to modify the number of clicks in the "Special attributes" tab when adding information, such as

A friend asked if there are any other good ways to quickly increase, multiply? Open a e\public\viewclick\index.php file to find

$usql = $empire->query ("Update {$dbtbpre}ecms_". $CR [' Tbname ']. "Set onclick=onclick+1 where id= ' $id ' limit 1 ');

Change the "+1" inside to the number you want, such as "+10", so you refresh the page, the number of clicks will increase 10 times, such as the default hits 397, then we refresh the article page, the number of clicks will become 407.

Of course this is a little too obvious, we can change a little, "+10" to add 1~10 between the random number


How to modify the Empire CMS article clicks Default and multiply increase

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.