MyBB Community Forums

Full Version: User Title Modify
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey is there a way to display a graphic in front of a selected groups username?

Like my name is admin and I want my name to show up like:
(picture of crown) Admin

On who's online and when I post? Is there anyway I can do this... I have the images under the upload/images directory
Admin CP --> Manage Groups. Edit the Administrators usergroup and add the path to your crown image to the "Group Image" option.

Then go to Admin CP --> Templates --> Modify / Delete --> *expand your template set* --> Postbit Templates --> postbit_author_user
Find:
{$post['groupimage']}
and move it before this code
<strong><span class="largetext">{$post['profilelink']}</span></strong>
Doesnt Work For Me
Can you explain what doesn't work? Maybe a link or screenshot?
Well I did as you said in the admin group I set the group image as
images/crown.gif

and that shows up under my name and everything (so the link is good)


then I inserted that code you gave me

{$post['groupimage']}
<strong><span class="largetext">{$post['profilelink']}</span></strong><br />
<span class="smalltext">
	{$post['usertitle']}<br />
	{$post['userstars']}
	{$post['groupimage']}<br />
	{$post['useravatar']}<br />
	{$lang->postbit_posts} {$post['postnum']}<br />
	{$lang->postbit_group} {$usergroup['title']}<br />
	{$lang->postbit_joined} {$post['userregdate']}<br />
	{$lang->postbit_status} {$post['onlinestatus']}{$post['replink']}<br />
</span>

Template Set (default templates)

Then I look under who's online and the image doesnt show..
Ok the above only works in the post, but I've got a new idea which will work everywhere a username is formatted.

Revert all changes above.
Edit the Administrators usergroup and in the Username Style box, insert:
<img src="images/crown.gif" />
at the beginning of the box (you should have other stuff already in the box)
Awesome it works! Thanks for the help!!