Home > CMS Tutorial > PHPCMS > How to solve the problem that the author name is not displayed in phpcms

How to solve the problem that the author name is not displayed in phpcms

Release: 2020-01-11 16:16:31
Original
2436 people have browsed it

How to solve the problem that the author name is not displayed in phpcms

V9 front-end static sometimes does not display the user name of the updated user. The specific modification method is as follows:

First, find the content_model.class.php file in the root directory file , use EditPlus tool or other editor tools to open

content_model.class.php line 120

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

html.class.php line 29:

//必须要在这里获取传递过来的数组值
$username=$data['username'];
Copy after login

edit_content method, about 280 lines:

/*编辑部分从主表数据库中查出用户名,传递模版*/
$temp = $this->get_one(array(‘id’=>$id));
$urls['data']['username'] = $temp['username'];
//end
Copy after login

PHP Chinese website, a large number of free PHPCMS tutorials, welcome to learn online!

The above is the detailed content of How to solve the problem that the author name is not displayed in phpcms. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template