[Bb-trac] Re: [bbPress] #860: Changing the size of Gravatars from Admin section

bbPress bb-trac at lists.bbpress.org
Mon Sep 22 11:41:12 GMT 2008


#860: Changing the size of Gravatars from Admin section
----------------------------+-----------------------------------------------
 Reporter:  bloggsbe        |        Owner:                    
     Type:  enhancement     |       Status:  new               
 Priority:  normal          |    Milestone:  1.0-beta & XML-RPC
Component:  Administration  |      Version:  0.9.0.1           
 Severity:  normal          |   Resolution:                    
 Keywords:                  |  
----------------------------+-----------------------------------------------
Comment (by mdawaffe):

 Themes don't have to duplicate any files or change any functions.

 Just do
 {{{
 post_author_avatar( 68 );
 }}}

 To get an avatar 68px big or
 {{{
 post_author_avatar( 68, 'identicon' );
 }}}

 to get an avatar of 68 and forcing the default to be an identicon (though
 I don't know why a theme would want force an identicon like that).

 I see avatar size as a theme issue.  Theme authors can and should call
 post_author_avatar is in that first line to set the avatar to be the
 appropriate size for that theme.

 The default avatar type I see as a site owner preference and so is
 settable in the bbPress options admin.

-- 
Ticket URL: <http://trac.bbpress.org/ticket/860#comment:3>
bbPress <http://bbpress.org/>
Innovative forum development


More information about the Bb-trac mailing list