MyBB Community Forums

Full Version: Usergroup help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am trying to get a my {$usergroups} to set automatically on this code

[Image: sKRlQP5.png]
When I put usergroup in for "<div class="postbit-groupimage postbit-groupimage-{$usergroup}" style="background-color: #">
<span></span>
</div>"

<div class="postbit-groupimage postbit-groupimage-{$usergroup}" style="background-color: #">
<span></span>
</div>
 it turns out saying "postbit-groupimage-array" instead of saying the users group like

<div class="postbit-groupimage postbit-groupimage-owner" style="background-color: #">
<span></span>
</div>


I want it to automatically set from the users group in the code as a text to look like

[Image: NSojyCE.png]
try this code postbit-groupimage-{$post['usergroup']} for this code your class should be like this postbit-groupimage-4 (where 4 your group id).
Here:

<div class="postbit-groupimage postbit-groupimage-{$usergroup['title']}" style="background-color: #">
<span></span>
</div>