# 帝国CMS内容页如何调用当前发布会员

*Published:* 2023-12-22
*Author:* 客服001

#### 温馨提醒

如果文章内容或图片资源失效，请留言反馈，我们会及时处理，谢谢

本文最后更新于2023年12月22日，已超过 180天没有更新



调用当前发布[会员](https://www.xarjtc.com/tag/%e4%bc%9a%e5%91%98 "查看会员此标签更多文章")信息代码：

```
<?php
$uid=$navinfor[userid];
$userr=sys_ShowMemberInfo($uid,''); 
?>
当前发布者头像：<a rel="nofollow" href="[!--news.url--]e/space/?userid=<?=$userr[userid]?>" target="_blank"><img src="<?=$userr[userpic]?$userr[userpic]:$public_r[newsurl].'e/data/images/nouserpic.gif'?>"></a>
当前发布者名称：<a rel="nofollow" href="[!--news.url--]e/space/?userid=<?=$userr[userid]?>" target="_blank"><?=$userr[username]?></a>
关注当前发布者：<a class="nr-user-bt" href="[!--news.url--]e/member/friend/add/?fcid=0?<?=$userr[username]?>" target="_blank">关注</a>
```

用到的会员信息调用标签，ShowMemberInfo函数调用，具体格式说明为：sys\_ShowMemberInfo(用户ID,查询字段)。