Get the App
SLTechnology News&Howtos  ›  Servers  › 

The method of dynamically calling the number of clicks on the Home list Page of Dream Weaving DedeCMS

Shulou Source: shulou.com Published: 2022-06-02 05:08:15 10月02日 Update

This article mainly introduces the method of dynamically calling the number of clicks on the home page of Weaving Dream DedeCMS, which is very detailed and has a certain reference value. Interested friends must finish reading it!

Dream DedeCMS home page list page how to dynamically call the number of clicks?

The number of clicks on the list page of the home page of dream weaving DedeCMS

Recommended study: dream weaving cms

Clicks on the home page and list page in DedeCMS are not called dynamically by default, and clicks are updated only when they are updated. The solution to dynamic invocation is as follows:

Find the count.php in the / plus directory and make a copy and name it viewclick.php. Open and delete the viewclick.php with the editor.

If (! empty ($maintable)) {$dsql- > ExecuteNoneQuery ("UPDATE `{$maintable}` SET click=click+1 WHERE {$idtype} ='$aid'");} if (! empty ($mid)) {$dsql- > ExecuteNoneQuery ("UPDATE `dede_member_ tj` SET pagecount=pagecount+1 WHERE mid='$mid'");}

These lines of code are inserted into the database to save these two lines.

Finally, add where you need to call the number of clicks on the home page and the list page.

Can

The above is all the contents of the method of dynamically calling the number of clicks on the home page of Weaving Dream DedeCMS. Thank you for your reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Number of times dynamic home page method content update code value interest method only place guy partner situation data database article time more Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB macOS Shulou Information Apple NVidia