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

The method to solve the problem of not displaying the author name of phpcms

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

Share

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

This article mainly introduces the method to solve the problem that the author's name of phpcms is not displayed, which has certain reference value and can be used for reference by friends who need it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.

V9 foreground static sometimes does not display the updated user name. The specific modification methods are as follows:

First of all, find the content_model.class.php file in the root directory file and open it with the EditPlus tool or other editor tool

Line 120 of content_model.class.php

$urls ['data'] [' username'] = $systeminfo ['username']; / / end

Line 29 of html.class.php:

/ / you must get the passed array value $username=$data ['username'] here.

The edit_content method, approximately 280 lines:

/ * the editor finds the user name from the main table database and passes the template * / $temp = $this- > get_one (array ('id'= > $id)); $urls [' data'] ['username'] = $temp [' username'] / / end Thank you for reading this article carefully. I hope the editor will share the methods to solve the problem of not displaying the author's name of phpcms will be helpful to everyone. At the same time, I also hope that you will support us, pay attention to the industry information channel, and find out if you have any problems. Detailed solutions are waiting for you to learn!

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