主机推荐

修罗论坛xiuno bbs 各页面用户所在用户组gid的调取方式 xiuno建站日记

已认证 修罗大仙 2018-9-1 8907

post回复列表  调取 gid 

1
$_post['user']['gid']

thread内容页面  调取 gid 

1
$thread['user']['gid']

自定义板块是否显示在首页,简单代码

1
$fids array('5','1','2','3','4','6','7'); <!--需要显示在首页的板块ID-->

调取最后回复用户gid代码

1
2
3
4
if($thread['lastuid']){
$users = user_read_cache($thread['lastuid']);
$thread['users'] = $users;
};

一行代码实现展示当前在线用户的用户名

1
<?php foreach(online_list_cache() as $online_user) { echo $online_user['username'].' '; } ?>

内容页面作者的用户组gid调取

1
$thread['user']['gid']

内容页面作者的用户组group名称调取



 xiuno站长服务QQ:312215120
最新回复 (1)
  • jky2003 2019-2-10
    2
    学习了
    0
返回
首页
插件
搜索