MyBB Community Forums

Full Version: Letter Avatars 1.0.2
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5
1 letter avatar not working?anyone tried
If you want to see changes to existing users after you change the plugin's settings, you will have to reassign the avatars through the Randomize Letter Avatars button in the Plugins listing page.
(2018-10-14, 05:47 AM)Shade Wrote: [ -> ]Thanks for trying it out. The first letters of all the avatars in that screenshot are uppercase, so they will display as so. There is no way to force them to be lowercase unfortunately, or at least, not in this version.

Oh, I see, It really wasn't a big deal, I just thought it might be a bug.

Great plugin. I will be using this on my forum as soon as I get time to get it installed!

Thank you Smile
http://prntscr.com/l75yh5

Is that a bug or what?
(2018-10-17, 03:13 PM)Mattaffix Wrote: [ -> ]http://prntscr.com/l75yh5

Is that a bug or what?

[Image: transparent-bugs-animated-5.gif]

is it ?
(2018-10-18, 03:19 AM)v_2 Wrote: [ -> ]
(2018-10-17, 03:13 PM)Mattaffix Wrote: [ -> ]http://prntscr.com/l75yh5

Is that a bug or what?

[Image: transparent-bugs-animated-5.gif]

is it ?

Tsk, tsk...

Behave v_2!  Angel
Which version are you using? The last one should have fixed that issue. Try to click on "Randomize Letter Avatars" in the plugins page to reassign random avatars.
(2018-10-18, 11:17 AM)Shade Wrote: [ -> ]Which version are you using? The last one should have fixed that issue. Try to click on "Randomize Letter Avatars" in the plugins page to reassign random avatars.

It is fixed now, thank you!
Hi Shade,

Great plugin! 

I'm running into an issue where on "Top Stats" plugin latest threads, the Avatar does not follow the settings rules. Within the forum, it does show rounded and 1 letter, but in the "Top Stats" it shows 2 letters and not rounded. 

Within the posts: 
https://ui-avatars.com/api/?name=TiZi-iz...unded=true


Small avatar within the "Top Stats"
https://ui-avatars.com/api/?name=TiZi-iz...unded=true

Any idea why this is happening or if it's possible to fix it so i can show the rounded (1 letter) avatar on the Top Stats as well? Not sure if this is a Tops stats issue or a Letter Avatar issue. 

Hope you can help.
TopStats applies an unnecessary htmlspecialchars_uni() to all avatar urls before they are formatted by format_avatar(). Long story short, & becomes & and this breaks ui-avatars.com image processing.

To solve, open inc/plugins/topStats.php and get rid of all htmlspecialchars_uni() applied to avatar urls. You can easily spot them by looking for the string "format_avatar(htmlspecialchars_uni(". Eg.:

$useravatar = format_avatar(htmlspecialchars_uni($row['avatar']), $row['avatardimensions'], my_strtolower($this->getConfig('AvatarWidth')));

Becomes

$useravatar = format_avatar($row['avatar'], $row['avatardimensions'], my_strtolower($this->getConfig('AvatarWidth')));
Pages: 1 2 3 4 5