ecshop管理中心回复用户评论页面显示的是管理员的用户名和邮箱,这是没有任何意义的,应该显示评论者的用户名和邮箱。
评论管理错误:
解决办法
/admin/comment_manage.php
$smarty->assign('admin_info', $admin_info); //管理员信息 替换为
$smarty->assign('user_name', $comment_info['user_name']); //评论者用户名
$smarty->assign('user_email', $comment_info['email']); //评论者邮箱
并删除以下以下语句 $sql = "SELECT user_name, email FROM ". $ecs->table('admin_user'). " WHERE user_id = '$_SESSION[admin_id]'"; $admin_info = $db->getRow($sql); /admin/templates/comment_info.htm <tr> <td>{$lang.user_name}:</td> <td><input name="user_name" type="text" {if $reply_info.user_name eq ""}value="{$admin_info.user_name}"{else} value="{$reply_info.user_name}"{/if} size="30" readonly="true" /></td></tr> <tr> <td>{$lang.email}:</td> <td><input name="email" type="text" {if $reply_info.email eq ""}value="{$admin_info.email}"{else} value="{$reply_info.email}"{/if} size="30" readonly="true" /></td> </tr>
替换为
<tr> <td>{$lang.user_name}:</td> <td><input name="user_name" type="text" {if $user_name}value="{$user_name}"{else} value="{$lang.anonymous}"{/if} size="30" readonly="true" /></td> </tr> <tr> <td>{$lang.email}:</td> <td><input name="email" type="text" value="{$user_email}" size="30" readonly="true" /></td> </tr>