Thread Rating:
  • 3 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.8] DVZ Random Avatars 1.1
#21
(2017-03-24, 01:34 PM)Sharree Wrote: Dvz when using this plugin with MyAlerts instead of showing the user's random assigned avatar it's showing the Gravatar default avatar in the MyAlerts modal and MyAlerts page.

[Image: images?q=tbn:ANd9GcSYXI4u7A_rFUMNDMbME32...aLuR3c6Fnw]

Any solution to this?

Remove these lines from inc/plugins/myalerts.php: https://github.com/MyBBStuff/MyAlerts/bl...#L598-L600

format_avatar() escapes the address as of MyBB 1.8.4 and double-escaped values may result in malformed URLs.
devilshakerz.com/pgp (DF3A 34D9 A627 42E5 BC6A 6750 1F2F B8AA 28FF E1BC) ▪ keybase.io/devilshakerz
Reply
#22
DVZ the default avatar is also showing up when using the plugin Shows Avatar on Threadlist and Forumlist(avatarep.php)

Is there an easy way to fix this?

the difference between a non working and a working avatar is:

"https://secure.gravatar.com/avatar/cded4b7c7963d8f368d18ca7b60e21b6?s=100&d=wavatar&f=y"
"https://secure.gravatar.com/avatar/cded4b7c7963d8f368d18ca7b60e21b6?s=100&d=wavatar&f=y"

for the portal part the gravatar works but not for the lastpost part.

I tried a quick fix by replacing the $size and $scheme variables in the code but that didn't help
Reply
#23
(2017-03-11, 03:09 PM)Sharree Wrote: This is nice Dvz. I wonder if Gravatar has letter avatars based on the first character of username, like how Google/YouTube has it.

@Devilshakerz - any feedback, is it possible somehow? It would be awesome!
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply
#24
(2017-04-12, 04:08 PM)trebe Wrote: DVZ the default avatar is also showing up when using the plugin Shows Avatar on Threadlist and Forumlist(avatarep.php)

Is there an easy way to fix this?

the difference between a non working and a working avatar is:

"https://secure.gravatar.com/avatar/cded4b7c7963d8f368d18ca7b60e21b6?s=100&d=wavatar&f=y"
"https://secure.gravatar.com/avatar/cded4b7c7963d8f368d18ca7b60e21b6?s=100&d=wavatar&f=y"

for the portal part the gravatar works but not for the lastpost part.

I tried a quick fix by replacing the $size and $scheme variables in the code but that didn't help
OK I found a fix.

Go to avatarep.php around oline 582

REPLACE:

if(THIS_SCRIPT == "showthread.php"){
 if($user['avatartype'] == "upload"){
$avatar = $mybb->settings['bburl'] . "/" . $user['avatar'];
}


BY:


if(true){
 if($user['avatartype'] == "upload"){
$avatar = $mybb->settings['bburl'] . "/" . $user['avatar'];
}
else if($user['avatartype'] == "gravatar"){
$avatar = $user['avatar']; 
}
Reply
#25
(2017-03-24, 02:20 PM)Devilshakerz Wrote:
(2017-03-24, 01:34 PM)Sharree Wrote: Dvz when using this plugin with MyAlerts instead of showing the user's random assigned avatar it's showing the Gravatar default avatar in the MyAlerts modal and MyAlerts page.

[Image: images?q=tbn:ANd9GcSYXI4u7A_rFUMNDMbME32...aLuR3c6Fnw]

Any solution to this?

Remove these lines from inc/plugins/myalerts.php: https://github.com/MyBBStuff/MyAlerts/bl...#L598-L600

format_avatar() escapes the address as of MyBB 1.8.4 and double-escaped values may result in malformed URLs.

Gave that a try. Worked perfectly. Thank you.
Hello I'm Wally, the administrator of Sharree.com
Reply
#26
DVZ, I have a question regarding this plugin, suppose you have enabled guest posting on the forum than is it possible for the guest post to show random avatar using this plugin ?
Reply
#27
Am I able to use my own avatars? I don't understand gravatar all that well.
Reply
#28
(2017-08-08, 12:34 PM)WallBB Wrote: DVZ, I have a question regarding this plugin, suppose you have enabled guest posting on the forum than is it possible for the guest post to show random avatar using this plugin ?
It would require modifications since the plugin sets avatars for registered users only. Postbit hooks could be used to inject an avatar that would replace the default one and it could be based on e.g. the name that's provided.

(2017-08-13, 07:01 AM)Avex Wrote: Am I able to use my own avatars? I don't understand gravatar all that well.
Yes. MyBB uses Gravatar to fetch avatars based on e-mail addresses; the plugin takes advantage of its features to generate abstract images (as seen in the first post here) allowing users to be distinguished even if they haven't uploaded their own avatars yet.
devilshakerz.com/pgp (DF3A 34D9 A627 42E5 BC6A 6750 1F2F B8AA 28FF E1BC) ▪ keybase.io/devilshakerz
Reply
#29
(2017-08-14, 09:23 PM)Devilshakerz Wrote: Yes. MyBB uses Gravatar to fetch avatars based on e-mail addresses; the plugin takes advantage of its features to generate abstract images (as seen in the first post here) allowing users to be distinguished even if they haven't uploaded their own avatars yet.

Sorry, I don't quite understand your answer or maybe I didn't phrase my question properly.

Would I be able to make my own default avatars in a tile-like fashion and have gravatar?

If yes, do I just upload an entire image laid out in the same way as the examples you posted (such as red avatar, green avatar, blue avatar, yellow avatar)? Because I see the generic options in the plugin settings and honestly, I find the default avatars provided by Gravatar a bit bleh.
Reply
#30
DVZ, I have found an issue with this plugin, if I use the feature "• Assign avatars to users with no avatar" when member count is greater than 50k, I see the page getting timed out. Is there any reason for that ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)