Home  >  Article  >  CMS Tutorial  >  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

尚
Original
2020-01-11 16:16:312387browse

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

html.class.php line 29:

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

edit_content method, about 280 lines:

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

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!

Statement:
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