2016-05-20, 04:15 AM
I am just looking to do this function but doesn't display anything. I have the plugin to use php in templates.
Example Code
It does not display anything, I have tried gid as well. The goal here is when viewing someones profile it will tell you what group they are in, Example usage is above.
Can't use
It doesn't work because at this point you are loading your stats not the remote users.
Any solutions?
Example Code
<?php
if($memprofile['usergroup'] == 4) {
print 'Admin';
}
?>
It does not display anything, I have tried gid as well. The goal here is when viewing someones profile it will tell you what group they are in, Example usage is above.
Can't use
<?php
if($mybb->user['usergroup'] == 4) {
print 'Admin';
}
?>
It doesn't work because at this point you are loading your stats not the remote users.
Any solutions?