Bug #757

avatar

Gravatar dissapeared from user page.

Added by Sein Kraft 87 days ago. Updated 42 days ago.

Status:Resolved Start:08/25/2009
Priority:Normal Due date:
Assigned to:- % Done:

100%

Category:default extensions
Target version:2.3

Description

The same of the title.

Gravatar img has dissapeared from user page.

History

Updated by Sein Kraft 87 days ago

avatar

on ./ext/user/main.php

change this
if(!empty($comment->owner->email)) {
            $hash = md5(strtolower($comment->owner->email));
            $avatar = "<img src=\"http://www.gravatar.com/avatar/$hash.jpg\" style='float: left;'>";
            $event->add_stats($avatar, 0);
        }

to this
if(!empty($event->display_user->email)) {
            $hash = md5(strtolower($event->display_user->email));
            $avatar = "<img src=\"http://www.gravatar.com/avatar/$hash.jpg\" style='float: left;'>";
            $event->add_stats($avatar, 0);
        }

Updated by Shish Moom 87 days ago

avatar

About to fall asleep, but note to self for later: $user->get_avatar_url() / get_avatar_html(), with a site-wide option for which avatar host to use

Updated by Sein Kraft 87 days ago

avatar
  • Priority changed from Low to Normal

Great, for that function please remember create a panel in settings to set $size, $rating (really important this one, no all imageboards allow p0rn images), $default (possible $data_href/themes/$theme_name/images/gravatar.jpg) maybe the admin only can set the file in that directory ($data_href/themes/$theme_name/images/).

http://www.gravatar.com/avatar/$hash?d=$default&s=$size&r=$rating

Updated by Shish Moom 44 days ago

avatar
  • % Done changed from 0 to 30

commit:e18c8d2 adds the function for use by themes, still needs configurability and someone to use it

Updated by Shish Moom 43 days ago

avatar
  • % Done changed from 30 to 60

82bf804 adds (fixes) the user page

Updated by Shish Moom 43 days ago

avatar
  • Status changed from New to Resolved
  • % Done changed from 60 to 100

159a862 adds configurability; default is gravatar with no special options, options are left to the advanced menu and take the form "d=$default&s=$size&r=$rating"

Updated by Sein Kraft 42 days ago

avatar

Can you add the class gravatar to it?

id="gravatar" or class="gravatar" 

Updated by Sein Kraft 42 days ago

avatar
  • Status changed from Resolved to Feedback

Updated by Shish Moom 42 days ago

avatar
  • Status changed from Feedback to Resolved

dd65b63 adds the classes "avatar" (which will be used for all avatar hosts) and "gravatar" (if for some reason you only want to style those particular ones)

Also available in: Atom PDF