在viewthread_node.htm中如何调用当前发帖用户的用户组。用户扩展积分。
viewthread_node.htm是什么?
代码呢?
viewthread_node.htm是什么?
代码呢?
不想用可以在调用的地方删除啊
//$_G['setting']['extcredits'] 就是你在后台设置的所有扩展积分foreach($postlist as $pid=>$post){ foreach($_G['setting']['extcredits'] as $cid=>$v){ $postlist[$pid]['extcredits'][$v['title']] = $post['extcredits'.$cid]; } echo '用户 :'.$postlist[$pid]['usernameenc']; echo "<pre class="brush:php;toolbar:false;">"; print_r($postlist[$pid]['extcredits']); echo " source\module\forum\forum_viewthread.php
在这个页面中 include template ... 之上加入以上代码
//$_G['setting']['extcredits'] 就是你在后台设置的所有扩展积分foreach($postlist as $pid=>$post){ foreach($_G['setting']['extcredits'] as $cid=>$v){ $postlist[$pid]['extcredits'][$v['title']] = $post['extcredits'.$cid]; } echo '用户 :'.$postlist[$pid]['usernameenc']; echo "<pre class="brush:php;toolbar:false;">"; print_r($postlist[$pid]['extcredits']); echo "
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号