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

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

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

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!

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