How to call the user group for the current posting user in viewthread_node.htm. User extended points.
Reply to discussion (solution)
What is viewthread_node.htm?
Where's the code?
What is viewthread_node.htm?
Where's the code?
Is Discuz's post content page. Because it uses a variable, the variable is output from the background settings. Now do not want to use this variable in the background, directly call these several
I don't want to be able to delete it in the calling place.
$_g[' Setting ' [' extcredits '] is all the extension points you set in the background foreach ($postlist as $pid + $post) {foreach ($_g[' setting '] [' Extcredits '] as $cid + $v) {$postlist [$pid] [' extcredits '] [$v [' title ']] = $post [' extcredits '. $cid];} Echo ' User: '. $postlist [$pid] [' Usernameenc '];echo '";p Rint_r ($postlist [$pid] [' extcredits ']); echo"
";//user Group is Authortitleecho $postlist [$pid] [' authortitle ']. ';}
source\module\forum\forum_viewthread.php
On this page, include template ... Add the above code above
$_g[' Setting ' [' extcredits '] is all the extension points you set in the background foreach ($postlist as $pid + $post) {foreach ($_g[' setting '] [' Extcredits '] as $cid + $v) {$postlist [$pid] [' extcredits '] [$v [' title ']] = $post [' extcredits '. $cid];} Echo ' User: '. $postlist [$pid] [' Usernameenc '];echo '";p Rint_r ($postlist [$pid] [' extcredits ']); echo"
";//user Group is Authortitleecho $postlist [$pid] [' authortitle ']. ';}