Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How does Imperial CMS7.0 implement the method of recording all browsing members?

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the Imperial CMS7.0 how to record all browsing and visiting members, the article is very detailed, has a certain reference value, interested friends must read it!

1. Add the "visituserid" field to the field management in the data table of the news system, and the field type is "CHAR".

2. Add the following code to the page that needs statistics:

The code is as follows:

/ / Information IDvar id = [!-- id--]; / / login user var userid =; $(function () {if (userid) {$.post ('/ ly/recorduser/index.php', {userid:userid,id:id}, "html");}})

Recommended to learn the Imperial cms course

Third, add data code

You can download the compressed package, decompress the folder ly and put it in the root directory, which can be downloaded on this site.

File path root directory / ly/recorduser/index.php

Index.php file code:

The code is as follows:

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report