{"id":1919,"date":"2008-12-12T09:00:43","date_gmt":"2008-12-12T14:00:43","guid":{"rendered":"http:\/\/www.allyngibson.net\/?p=1919"},"modified":"2008-12-12T09:00:43","modified_gmt":"2008-12-12T14:00:43","slug":"on-modifying-the-wordpress-dashboard","status":"publish","type":"post","link":"http:\/\/www.allyngibson.com\/?p=1919","title":{"rendered":"On Modifying the WordPress Dashboard"},"content":{"rendered":"<p>One of the nifty new features of WordPress 2.7 is the Gravatar support on the Dashboard screen that I see.  If you leave a comment, I get to see a little icon of who you are.<\/p>\n<p>That is, assuming you <i>have<\/i> a <a href=\"http:\/\/www.gravatar.com\/\">gravatar<\/a>. \ud83d\ude42<\/p>\n<p>If you don&#8217;t have a gravatar, then I see something else on the Dashboard.<\/p>\n<p>I see an outline of a person.  In grey.<\/p>\n<p>It&#8217;s actually a bit bland.  Especially because, when people leave comments, I&#8217;ve set up my comment template to pull a pre-generated gravatar called a &#8220;wavatar.&#8221;  Make a post, and you get a sort of stylized face that looks goofy.  Your face may be a triangle, or it may be a square, and you may have glasses, or a monocle, or even no eyes at all.<\/p>\n<p>Well, I wanted those wavatars on my dashboard.  Not the dull, generic, <i>grey<\/i> thing.<\/p>\n<p>Fortunately, I&#8217;m handy with editing files. \ud83d\ude42<\/p>\n<p>In wp-adminincludes, edit the comment.php file thusly.  Find:<br \/>\n<code>$avatar = get_avatar( $id, 32 );<\/code><br \/>\nAnd replace with:<br \/>\n<code>$avatar = get_avatar( $id, 32, 'wavatar' );<\/code><\/p>\n<p>Then, in wp-adminincludes, edit the dashboard.php file thusly.  Find<br \/>\n<code>&lt;?php echo get_avatar( $comment, 50 ); ?&gt;<\/code><br \/>\nAnd replace with:<br \/>\n<code>&lt;?php echo get_avatar( $comment, 50, 'wavatar' ); ?&gt;<\/code><br \/>\nNow, when people leave comments, I get a visual representation, not just the bland, grey, formless icon that the system generates by default.<\/p>\n<p>Thus endeth the coding lesson. \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the nifty new features of WordPress 2.7 is the Gravatar support on the Dashboard screen that I see. If you leave a comment, I get to see a little icon of who you are. That is, assuming you have a gravatar. \ud83d\ude42 If you don&#8217;t have a gravatar, then I see something else<a class=\"more-link\" href=\"http:\/\/www.allyngibson.com\/?p=1919\">Continue reading <span class=\"screen-reader-text\">&#8220;On Modifying the WordPress Dashboard&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4095],"tags":[4096],"class_list":["post-1919","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-wordpress","entry"],"_links":{"self":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts\/1919","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1919"}],"version-history":[{"count":0,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts\/1919\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1919"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1919"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1919"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}