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