MyBB Community Forums

Full Version: Groups and User Titles Question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello, so I'm new to MyBB and have managed create new groups and user titles, assign images to them etc.
All thats fine and dandy..

However, I cant get my head around how they are displaying on profiles etc.

I would like to have it show like this:
Username
Group Name
Group Image
User Title Image

But instead it shows like this:
>> without text added in the groups "default user title" field
Username
User Title
Group Image
User Title Image

>> with text added in the groups "default user title" field
Username
Group Name
Group Image
Group Image


How would/do I go about achieving this?
ACP->Themes->Templates->Your Theme->member_profile template. Edit it to your liking.
(2014-10-09, 01:50 AM)dragonexpert Wrote: [ -> ]ACP->Themes->Templates->Your Theme->member_profile template.  Edit it to your liking.

Thanks Smile

Just 1 more thing though lol Toungue

I have no idea on how to edit to get what I want lol, the best i can do with coding is search, copy and paste Big Grin
^ referred code can be like this
<span class="largetext"><strong>{$formattedname}</strong></span><br />
<span class="smalltext">
({$usertitle})<br />
{$groupimage}
{$userstars}<br />
you can change the order as you like
(2014-10-09, 03:13 AM).m. Wrote: [ -> ]^ referred code can be like this

<span class="largetext"><strong>{$formattedname}</strong></span><br />
<span class="smalltext">
({$usertitle})<br />
{$groupimage}
{$userstars}<br />
you can change the order as you like

Cheers Smile

and sorry to be a pain but how do i get it to display the group name in place of user title..?

I have tried replacing "{$usertitle}" with:
{$grouptitle}
{$group}
{$displaygroup['title']}
{$displaygroup['usertitle']}
{$displaygroup['grouptitle']}
{$displaygroup}

I dont really know coding so i'm just having random guesses coupled with bits i can find online..
Try using {$memprofile['title']}.
(2014-10-09, 05:36 AM)Brazz Wrote: [ -> ]and sorry to be a pain but how do i get it to display the group name in place of user title..?

use {$mybb->usergroup['title']}
(2014-10-09, 07:12 AM)mmadhankumar Wrote: [ -> ]
(2014-10-09, 05:36 AM)Brazz Wrote: [ -> ]and sorry to be a pain but how do i get it to display the group name in place of user title..?

use {$mybb->usergroup['title']}

Worked like a charm!

CHEERS!

Now just to try and get it displaying the same on forum posts etc. and not just profiles....
Any help with that..? Toungue
to display it in the postbit add the codes to ACP >> Templates >> Post Bit Templates >> postbit and postbit_classic templates
(2014-10-09, 08:28 AM)mmadhankumar Wrote: [ -> ]to display it in the postbit add the codes to ACP >> Templates >> Post Bit Templates >> postbit and postbit_classic templates

ok, so i totally messed that up..
where in FTP can i find the original postbit templates?

I copy and pasted the exact same code into the postbit files you said, but it got rid of:
>> Usernames
>> All images (including the one showing "online")
>> User titles

<span class="largetext">{$formattedname}</span><br />
<span class="smalltext">
Group: {$mybb->usergroup['title']}<br />
{$groupimage}
Rank: {$usertitle}<br />
{$userstars}<br />

alls that shows now is:
Group: "group name"
Rank:

Postbit code:
{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<div class="post {$unapproved_shade}" style="{$post_visibility}" id="post_{$post['pid']}">
<div class="post_author">
	{$post['useravatar']}
	<div class="author_information">
			<span class="largetext">{$formattedname}</span><br />
<span class="smalltext">
Group: {$mybb->usergroup['title']}<br />
{$groupimage}
Rank: {$usertitle}<br />
  {$userstars}<br />
              <br />
			</span>
	</div>
	<div class="author_statistics">
		{$post['user_details']}
	</div>
</div>
<div class="post_content">
	<div class="post_head" title="{$post['subject_title']}">
		{$post['posturl']}
		{$post['icon']}
		<span class="post_date">{$post['postdate']} <span class="post_edit" id="edited_by_{$post['pid']}">{$post['editedmsg']}</span></span>
	</div>
	<div class="post_body scaleimages" id="pid_{$post['pid']}">
		{$post['message']}
	</div>
	{$post['attachments']}
	{$post['signature']}
	<div class="post_meta" id="post_meta_{$post['pid']}">
		{$post['iplogged']}
	</div>
</div>
<div class="post_controls">
	<div class="postbit_buttons author_buttons float_left">
		{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}
	</div>
	<div class="postbit_buttons post_management_buttons float_right">
		{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quickrestore']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_purgespammer']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
	</div>
</div>
</div>

Postbit_classic code:
{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<div class="post classic {$unapproved_shade}" style="{$post_visibility}" id="post_{$post['pid']}">
<div class="post_author scaleimages">
	{$post['useravatar']}
	<div class="author_information">
			<span class="largetext">{$formattedname}</span><br />
<span class="smalltext">
Group: {$mybb->usergroup['title']}<br />
{$groupimage}
Rank: {$usertitle}<br />
  {$userstars}<br />
			</span>
	</div>
	<div class="author_statistics">
		{$post['user_details']}
	</div>
</div>
<div class="post_content">
	<div class="post_head" title="{$post['subject_title']}">
		{$post['posturl']}
		{$post['icon']}
		<span class="post_date">{$post['postdate']} <span class="post_edit" id="edited_by_{$post['pid']}">{$post['editedmsg']}</span></span>
	{$post['subject_extra']}
	</div>
	<div class="post_body scaleimages" id="pid_{$post['pid']}">
		{$post['message']}
	</div>
	{$post['attachments']}
	{$post['signature']}
	<div class="post_meta" id="post_meta_{$post['pid']}">
		{$post['iplogged']}
	</div>
</div>
<div class="post_controls">
	<div class="postbit_buttons author_buttons float_left">
		{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}
	</div>
	<div class="postbit_buttons post_management_buttons float_right">
		{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quickrestore']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_purgespammer']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
	</div>
</div>
</div>

The Profiles are fine, its just the posts etc.
Pages: 1 2