MyBB Support

[HELP] Member Header Avatar problem

Submitted by cyberproxy, , Thread ID: 21263

Thread Closed
19-05-2016, 08:25 PM
#1
I have problem when new user register he see this:
[Image: gD72592.png]

and when he changes avatar looks like this:
[Image: yMKnFis.png]

But why the default avatar is not showing up like that?

Please help me! Thank you
[Image: KDaibYKIbF3Dq.gif]

RE: [HELP] Member Header Avatar problem

#2
Probably something to do with image size.

RE: [HELP] Member Header Avatar problem

OP
#3
20-05-2016, 12:33 PM
Maskovar Wrote:
Probably something to do with image size.

No.
[Image: KDaibYKIbF3Dq.gif]

RE: [HELP] Member Header Avatar problem

#4
Because newly registered members dont have an avatar?

RE: [HELP] Member Header Avatar problem

#5
How to tell a forum is going to burn in hell 101
xxx

RE: [HELP] Member Header Avatar problem

This post was last modified: 20-05-2016, 08:39 PM by linkzy
#6
You can actually do this with javascript . Give your avatar a class of header_avatar img and add js code at the bottom of footer.

Example code
Code:
<li class="header_avatar"><img src="{$mybb->user['avatar']}" height="30px" width="30px" align="top" class="miniav"/></li>
Code:
<script>
$(document).ready(function() {
//create a default avatar for those without one.
if($('.header_avatar img', this).attr('src') == ''){
$('.header_avatar img').attr('src', '/images/default_avatar.gif');
}
});
</script>

Credits to Leefish, I was having this code in ma USB...

or follow one of the tutorials by effone

http://community.mybb.com/thread-149518.html
| A | v4hl| Addicted | Senpai | Sui | Sensei | H | fdigl |


RE: [HELP] Member Header Avatar problem

#7
You have to assign a default avatar.
fady is a stupid cuck boi - silence

Users browsing this thread: 4 Guest(s)