第二步 要修改的文件是变量输出代码 (打开 include 目录下的 inc_archives_view.php)
并找到如下代码: var $TypeLink; var $ChannelUnit; var $dsql; var $Fields; var $dtp; var $ArcID; var $SplitPageField; var $SplitFields; var $NowPage; var $TotalPage;
//-------------------------- //责任编辑调用 //---------------------- function GetAdminname() { $adm = ""; $rid = $this->ArcID; $query = "Select a.ID,a.adminID,b.id,b.uname from dede_archives a left join dede_admin b on a.adminid=b.ID where a.id order by a.ID=$rid desc"; $editor = $this->dsql->GetOne($query); if(is_array($editor)){ $this->adminer = $this->dsql->GetOne("Select ID,userid,uname From dede_member where uname='{$editor['uname']}' "); if(!isset($this->adminer['uname'])){ $adm = "{$editor['uname']}"; }else{ $adm = "<a href='".$GLOBALS['cfg_cmspath']."/member/index.php?uid=".$this->adminer['userid']."'>{$editor['uname']}</a> "; }