<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>DocuView - document management system &#187; core</title>
	<atom:link href="http://docuview.co.uk/index.php/tag/core/feed/" rel="self" type="application/rss+xml" />
	<link>http://docuview.co.uk</link>
	<description>revolutionary web 2.0 document management system</description>
	<lastBuildDate>Fri, 25 Jun 2010 00:50:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>customise the default size of avatars in WordPress 2.8+</title>
		<link>http://docuview.co.uk/index.php/2009/08/customise-the-default-size-of-avatars-in-wordpress-2-8/</link>
		<comments>http://docuview.co.uk/index.php/2009/08/customise-the-default-size-of-avatars-in-wordpress-2-8/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 17:59:03 +0000</pubDate>
		<dc:creator>Martin Korych</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[troubleshooting]]></category>
		<category><![CDATA[avatar]]></category>
		<category><![CDATA[core]]></category>
		<category><![CDATA[docuview]]></category>
		<category><![CDATA[excerpt]]></category>
		<category><![CDATA[gravatar]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[icons]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[recent posts]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[widget]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://docuview.co.uk/?p=329</guid>
		<description><![CDATA[Customise your WordPress Avatar, gravatar or whichever icon you're using, in comments. Few easy steps.]]></description>
			<content:encoded><![CDATA[<p>You know the drill: backup, upgrade WordPress, check plugin compatibility, verify everything is up and running and&#8230; reapply your hacks to the core of WP. I have talked about <a title="post excerpt in wordpress recent posts widget" href="http://docuview.co.uk/index.php/2009/07/display-post-excerpt-in-recent-posts-widget-in-wordpress/">displaying the post excerpt in the recent posts widget</a> few weeks ago, today I&#8217;m going to talk about resizing the Avatar image file displayed in comments.</p>
<p><span id="more-329"></span>So you&#8217;ve just finished upgrading, everything went smooth and you now have some time to amend the core of WordPress to accommodate for the hacks and workarounds you have implemented over the time. You have styled, laid out and customised your comments, you have changed the default size of Gravatar, Avatar or any other user pictures you display only to find them going back to default (32px × 32px) as soon as you upgrade.</p>
<p>Worry not! In order to change it back to what it was, head to: &#8220;wp-includes/comment-template&#8221;, locate line #1322 (function wp_list_comments()) and change the defaults array value (&#8220;avatar_size&#8221;) from 32 to anything you like (we use 50px), so the result will read:</p>
<pre class="brush: php;">$defaults = array('walker' =&gt; null, 'max_depth' =&gt; '', 'style' =&gt; 'ul', 'callback' =&gt; null, 'end-callback' =&gt; null, 'type' =&gt; 'all',
'page' =&gt; '', 'per_page' =&gt; '', 'avatar_size' =&gt; 50, 'reverse_top_level' =&gt; null, 'reverse_children' =&gt; '');</pre>
<p>And zet is zit. Save and refresh your comments page and enjoy, your user icons and images are exactly big (or small) as intended.</p>
<p>Helpful? Drop me a line here.</p>
]]></content:encoded>
			<wfw:commentRss>http://docuview.co.uk/index.php/2009/08/customise-the-default-size-of-avatars-in-wordpress-2-8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
