MyBB Community Forums

Full Version: [SOLVED] Adding usergroup in {$post['user_details']}
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, still learning MyBB, but I like it very much so far.

{$post['user_details']} <---- This here inserts user details in the postbit template and I want to know how to add a usergroup field in there.

I know I have to edit the postbit_author_user template, but I don't how to include the usergroups there.

My current user details in the postbit_classic layout look like this:

Posts:
Joined:
Reputation:
Location:

I want it to look like this:

Usergroup: Administrators/Members/Moderators etc.
Posts:
Joined:
Reputation:
Location:

Thanks for any help.

EDIT:

Ok, I placed Usergroup: {$usergroup['title']} in the postbit_author_user and it works. But how can I change the color of the usergroup names?
Here's the variable,
{$usergroup['title']}
Hi, I still don't know how to change the color of each group. You can make a style for each usergroup in the acp, but this doesn't apply to {$usergroup['title']}.

EDIT: Never mind. I just put <span style="color: #XXXXXX;">Administrators</span> instead of just Administrators in the TITLE field (NOT in the Username style field) and now it works Smile