MyBB Community Forums

Full Version: Lastposter avatar 3.0.x
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
it doesn't show avatars if user doesn't upload any avatar so we have this in result. I tested it again and it isn't solved.

[Image: T8TOdY8.png]

I can't find any different last post avatar plugin.

Ok here is my fix:
Open avatarep.php

Find:
'avatar' => $defaul_avatar,

Replace with:
'avatar' => $default_avatar,

Find:
$onerror = " onerror=\"this.src=\'{$defaul_avatar}\'\"";

Replace with:
$onerror = " onerror=\"this.src=\'{$default_avatar}\'\"";

Find:
'avatarep' => '<img class="avatarep_bg'.$css.'" alt="'.htmlspecialchars_uni($user['userusername']).'" data-name="'.htmlspecialchars_uni($user['userusername']).'" />',

Replace with:
'avatarep' => '<img src="' . $default_avatar . '" class="avatarep_bg'.$css.'" alt="'.htmlspecialchars_uni($user['userusername']).'" data-name="'.htmlspecialchars_uni($user['userusername']).'" />',

It works for me
Hello Whiteneo, do you have any idea, how to enable your extension in eNvys' MyIPB theme?
It is suposed that have to beed added automatically.

I use the based on myipb but modified and optimized by eNvy and myself Smile

But what is the issue you have ? Because you can see it on my forums working on with an old plugin version due i don't use all improvements but i will update soon too.

Only you need to add into the right templates current var, stylization and you will have it Smile
Hello Whiteneo, you wrote "Because you can see it on my forums working on with an old plugin version" this made me look for indeed an older version of your extension.

I installed Version 302 Build #31and indeed, MyIPB now has LastPostAvatar active.

Thanks for your advice.
Yeah, no problem.

Thank to you for the feedback Smile
Hello. I installed today the addon. I have a bug in the skin when i activate this addon. Can you help me please? Thank you

The first picture is without the addon the second one with the addon.

Thank you!
That issue is by posible plugin conflicts that are described into first post you have to read it.

And the other one i think it's an issue with your current skin template that get those unknown values.

I don't provide suport for a non based default mybb skin because it will be imposible to mantain every case. You have to ask your skin dev to fix that but yeah it's a problem with templates Smile and a plugin only Smile
@High5 which theme actually you are using & what is your forum url ?
when you disable avatar in parts of forum it also disables display of formatted user name...
maybe change the plugin so it still show formatted user name when you disable avatar
(2020-04-17, 12:43 PM)8guawong Wrote: [ -> ]when you disable avatar in parts of forum it also disables display of formatted user name...
maybe change the plugin so it still show formatted user name when you disable avatar

You can do that easily by removing the template avatar values to not retrieve it and do nothing Smile

It is an aio so it can not be done like that because i have to make more options available and more, but yeah it is posible and easy to do by removing only avatar values like:

<avatarep_uid_USERID>

Then you can remomve that values from templates and there you have it Smile
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36