xiuno各页面用户所在用户组gid的调取方式

aixiu 2023-8-24 378

post回复列表  调取 gid
$_post['user']['gid']​​
thread内容页面  调取 gid
$thread['user']['gid']​​
自定义板块是否显示在首页,简单代码
$fids = array('1','2','3','4','5'); <!--需要显示在首页的板块ID-->​​
调取最后回复用户gid代码
if($thread['lastuid']){
    $users = user_read_cache($thread['lastuid']);
    $thread['users'] = $users;
};​​
一行代码实现展示当前在线用户的用户名
<?php foreach(online_list_cache() as $online_user) { echo $online_user['username'].' '; } ?>​
内容页面作者的用户组gid调取
$thread['user']['gid']​​
内容页面作者的用户组group名称调取
这家伙太懒了,什么也没留下。

最新回复 (0)
    • 芝麻地
      2
        登录 注册 QQ登录
返回