优选主流主机商
任何主机均需规范使用

PHPcms V9 发布文章隐藏用户名问题详解

V9前台静态有时候不显示更新用户的用户名,具体修改方法如下

content_model.class.php第120行

代码如下:

$urls[‘data’][‘username’] = $systeminfo[‘username’];

//end

html.class.php第29行:
代码如下:

//额。必须要在这里获取传递过来的数组值

$username=$data[‘username’];

edit_content方法,约280行:
代码如下:

/*编辑部分从主表数据库中查出用户名,传递模版*/

$temp = $this->get_one(array(‘id’=>$id));

$urls[‘data’][‘username’] = $temp[‘username’];

//end

未经允许不得转载:搬瓦工中文网 » PHPcms V9 发布文章隐藏用户名问题详解