MyBB Community Forums

Full Version: Avatars not showing up in postbit
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
[Image: 2da151b765f499594582bb5c2676de6e.png]

I think it's removed, I'm wondering what the code is and what file it'd go in to get it back.
ACP -> Templates & Styles -> Templates <-template set that is used by your current fourm theme-> ->Post bit templates -> postbit -> find and after
	<td class="post_avatar" width="1" style="{$post['avatar_padding']}">
add
{$post['useravatar']}

or just copy this content in postbit templates (from default mybb theme):

{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
	<tbody>
		<tr>
			<td class="tcat">
				<div class="float_left smalltext">
					{$post['postdate']}, {$post['posttime']} <span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span>
				</div>
				{$post['posturl']}
			</td>
		</tr>

		<tr>
			<td class="trow1 {$unapproved_shade}">
				<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
					<tr>
						<td class="post_avatar" width="1" style="{$post['avatar_padding']}">
							{$post['useravatar']}
						</td>
						<td class="post_author">
							<strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
							<span class="smalltext">
								{$post['usertitle']}<br />
								{$post['userstars']}
								{$post['groupimage']}
							</span>
						</td>
						<td class="smalltext post_author_info" width="165">
							{$post['user_details']}
						</td>
					</tr>
				</table>
			</td>
		</tr>

		<tr>
			<td class="trow2 post_content {$unapproved_shade}">
				<span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span>

				<div class="post_body" id="pid_{$post['pid']}">
					{$post['message']}
				</div>
				{$post['attachments']}
				{$post['signature']}

				<div class="post_meta" id="post_meta_{$post['pid']}">
				{$post['iplogged']}
				</div>
			</td>
		</tr>

		<tr>
			<td class="trow1 post_buttons {$unapproved_shade}">
				<div class="author_buttons float_left">
					{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}
				</div>
				<div class="post_management_buttons float_right">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
				</div>
			</td>
		</tr>
	</tbody>
</table>[/quote]
Hmm...it was there so that wasn't the issue..
Check to make sure you have enabled this setting in you User CP.

User CP > Edit Options > Make sure "Display users' avatars in their posts." is checked.
Yup, thats checked as well.

Also note, this is an imported database from my old forum. It was 14x and I just upgraded it.
In ACP->Configuration->Settings->Show Thread Options -> Maximum Avatar Dimensions in Posts do you have any dimensions (for example 40x40 or 90x90)?If that filed is empty avatars won't show in threads.
(2011-02-26, 03:04 AM)BitzDefender Wrote: [ -> ]Also note, this is an imported database from my old forum. It was 14x and I just upgraded it.

Did you import it into a fresh install or did you upgrade it?
Can we have your URL?
Found the issue. Johnny S was right, it was set to 1x1 for some reason
Oh lol.