Get the App
SLTechnology News&Howtos  ›  Servers  › 

Imperial cms's method of using custom functions to obtain the number of news published by users

Shulou Source: shulou.com Published: 2022-06-02 05:20:19 10月01日 Update

Editor to share with you how Imperial cms uses custom functions to get the number of news published by users. I believe most people don't know much about it, so share this article for your reference. I hope you will gain a lot after reading this article. Let's learn about it together.

The following Imperial cms tutorial column introduces the method of Imperial cms using custom functions to obtain the number of news published by users. I hope it will be helpful to friends who need it!

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:

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.

This is all the content of Imperial cms's method of using custom functions to obtain the number of news posted by users. Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Functions users empires quantity news methods content files tags articles help management not much functionality background most that is tutorials more friends Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Docker Huawei Microsoft Xiaomi