Get the App
SLTechnology News&Howtos  ›  Servers  › 

How does Imperial cms use custom functions to get the number of stories published by users?

Shulou Source: shulou.com Published: 2022-06-02 01:44:54 11月15日 Update

Editor to share with you how Imperial cms uses custom functions to obtain the number of news published by users. I hope you will gain a lot after reading this article. Let's discuss it together.

This paper introduces the method of obtaining the number of news published by users through the user-defined function in the Imperial cms system, mainly by sharing the user-defined function function of Imperial cms.

There is no ready-made way to get the number of news published by users in Imperial cms, but you can use custom functions to achieve it. Let's take a look.

Add user-defined functions to Imperial cms.

Just add the following function to the e/class/userfun.php file:

1. Core function content:

The code is as follows:

2, copy the contents of the function to the e/class/userfun.php file.

3. Log in to the background-> "template Management"-> "manage tags"-> "add tags".

4. Call [newstotal] user ID [/ newstotal].

In this way, it is very simple to realize the number of news calls made by user-defined functions in Imperial cms.

After reading this article, I believe you have a certain understanding of how Imperial cms uses custom functions to obtain the number of news published by users. If you want to know more about it, welcome to follow the industry information channel. Thank you for reading!

Tags: Function user empire quantity news content file method tag article management code function background over that is more core template knowledge Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Shulou Technology Linux Shulou Information Huawei