MyBB Hacks

Full Version: If Usergroup Then... on Member Profiles
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello!

I’m working on these member profiles and I’d like to display different profile codes based on the uersgroup of the member profile being viewed I haven’t yet Sussex out how to do it properly... would this be possible, and if so how would the code be applied...

I have tried....

Code:
 <if $GLOBALS['mybb']->user['usergroup'] == 13 then> 


And

Code:
<if $mybb->user['usergroup'] == 4 then>


Any ideas? Is this even possible? Question mark?

Any help would be appreciated. Smile

Only for primary usergroup:

Code:
<if $memprofile['usergroup'] == 4 then>...</if>

Ugh of course! I am such an idiot. That took two seconds.

I APPRECIATE YOU! Stay kind, stranger Biggrin
Reference URL's