MyBB Community Forums

Full Version: Avatar not showing in thread view
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Everyone,

I transitioned to MyBB from Invision a few months ago and absolutely love it.  I upgraded from 1.8.15 to 1.8.16 earlier this month and lost avatars and user stars in the thread view.  The 1.8.17 fixed the stars issue, but the avatar is still not displaying in the thread view:

[attachment=40650]

The funny thing is that the empty box still links to the user profile and if you right click and display the image in a new tab, it shows up fine.  I've been searching for a few weeks now but can't seem to find this particular issue.  I'm pretty sure it's the showthread template, but have no idea what's missing.

Thank you in advance for any help.

Site:  http://www.firepics.net

Ed
Post your postbit_classic template and postbit_avatar template
postbit_classic

{$ignore_bit}{$deleted_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<div class="post classic{$post['styleclass']} {$unapproved_shade}" style="{$post_visibility}" id="post_{$post['pid']}">
<div class="post_author scaleimages">
	{$post['useravatar']}
	<div class="author_information">
			<strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
			<span class="smalltext">
				{$post['usertitle']}<br />
				{$post['userstars']}
				{$post['groupimage']}
			</span>
	</div>
	<div class="author_statistics">
		{$post['user_details']}{$post['usercountry']}
	</div>
</div>
<div class="post_content">
	<div class="post_head">
{$post['badge']}
		{$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']}
		<a href="https://www.facebook.com/sharer/sharer.php?u={$mybb->settings['bburl']}/{$post['postlink']}#pid{$post['pid']}" class="fb-share-button" onclick="javascript:window.open(this.href,  '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;"><i class="fa fa-facebook-square" style="font-size:18px;color:#3B5998"></i></a> 
		<a href="https://twitter.com/intent/tweet?text={$thread['subject']} &url={$mybb->settings['bburl']}/{$post['postlink']}#pid{$post['pid']}"onclick="javascript:window.open(this.href,'', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;"><span class= "t-share-btn"><i class="fa fa-twitter-square" style="font-size:18px;color:#0084b4"></i></span></a>  
	</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 class="float_right">
			{$post['poststatus']}
		</div>
	</div>
	{$post['input_editreason']}
</div>
<div style="{$post['tyl_display']}" id="tyl_{$post['pid']}">{$post['thankyoulike_data']}</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_tyl']}{$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>{myadvertisements[zone_3]}

postbit_avatar

<div class="author_avatar"><a href="{$post['profilelink_plain']}"><img src="{$useravatar['image']}" alt="" {$useravatar['width_height']} /></a></div>
go to Home » Themes » Theme name » Editing global.css

search for .post .post_author div.author_avatar img (line 1136}

change this
.post .post_author div.author_avatar img {
    padding: 5px;
    border: 1px solid #ddd;
    background: #fff;
}
to this
.post .post_author div.author_avatar img {
    padding: 5px;
    border: 1px solid #ddd;
    background: #fff;
    width: auto;
}
That did it, thank you so much!
(2018-07-28, 08:19 AM)RaiN`# Wrote: [ -> ]go to Home » Themes » Theme name » Editing global.css

search for .post .post_author div.author_avatar img (line 1136}

change this
.post .post_author div.author_avatar img {
    padding: 5px;
    border: 1px solid #ddd;
    background: #fff;
}
to this
.post .post_author div.author_avatar img {
    padding: 5px;
    border: 1px solid #ddd;
    background: #fff;
    width: auto;
}


I also tried this, but my avatar is still now showing up.
Anyone know how to fix it?

Ah never mind. writing permissions should be set to 777
(2022-12-08, 02:49 PM)Nagashiwa Wrote: [ -> ]I also tried this, but my avatar is still now showing up.
Anyone know how to fix it?

Ah never mind.  writing permissions should be set to 777

Removed