Not Solved [SOLVED] Adding usergroup in {$post['user_details']}
#1
Not Solved
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?
Reply
#2
Not Solved
Here's the variable,
{$usergroup['title']}
[Image: hdoE.png]
m1ne.net - coming soon
Reply
#3
Not Solved
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)