<?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>Thesis Hacker &#187; images</title>
	<atom:link href="http://www.thesishacker.com/category/images/feed" rel="self" type="application/rss+xml" />
	<link>http://www.thesishacker.com</link>
	<description>Customize Thesis</description>
	<lastBuildDate>Thu, 21 May 2009 16:22:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Add a date stamp with an icon on your post</title>
		<link>http://www.thesishacker.com/add-a-date-stamp-with-an-icon-on-your-post</link>
		<comments>http://www.thesishacker.com/add-a-date-stamp-with-an-icon-on-your-post#comments</comments>
		<pubDate>Wed, 20 May 2009 16:00:24 +0000</pubDate>
		<dc:creator>Nasty</dc:creator>
				<category><![CDATA[byline]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[pages]]></category>
		<category><![CDATA[posts]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[add date stamp]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[date icon]]></category>
		<category><![CDATA[date stamp]]></category>

		<guid isPermaLink="false">http://www.thesishacker.com/?p=1882</guid>
		<description><![CDATA[Check out the little icon with the date of the post in the top right corner. Here&#8217;s how I made it&#8230;
The first thing to do is gather the php code that will generate the time of the post&#8230;
 the_time(&#8217;M') gets the month of the date
 the_time(&#8217;j') gets the day of the date
 the_time(&#8217;Y') gets the [...]]]></description>
			<content:encoded><![CDATA[<p>Check out the little icon with the date of the post in the top right corner. Here&#8217;s how I made it&#8230;</p>
<p>The first thing to do is gather the php code that will generate the time of the post&#8230;</p>
<p> the_time(&#8217;M') <em>gets the month of the date</em><br />
 the_time(&#8217;j') <em>gets the day of the date</em><br />
 the_time(&#8217;Y') <em>gets the year of the date</em></p>
<p>For more info on the date code <a href="http://codex.wordpress.org/Formatting_Date_and_Time">check out this</a></p>
<p>Next, I made the little icon in photoshop. You can make your own or find free icons by doing a search. I uploaded the image to my custom/images file</p>
<p>Next, I created a function, added the image, wrapped it in div tags, and gave it a class name&#8230;</p>
<p class="alert">
function calendar (){ ?&gt;<br />
	&lt;div class=&quot;calendaricon&quot;&gt;<br />
        &lt;? echo &#8216;&lt;img src=&quot;http://www.thesishacker.com/wp-content/themes/thesis/custom/images         /calendar.png&quot; /&gt;&#8217;; ?&gt;<br />
	&lt;/div&gt;<br />
&lt;?<br />
}</p>
<p>Next, I added the date code, and gave each one a class name so I could style each one separately in my css</p>
<p class="alert">function calendar (){ ?&gt;<br />
	&lt;div class=&quot;calendaricon&quot;&gt;<br />
		&lt;? echo &#8216;&lt;img src=&quot;http://www.thesishacker.com/wp-content/themes/thesis/custom/images/calendar.png&quot; /&gt;&#8217;; ?&gt;<br />
		&lt;div class=&quot;month&quot;&gt;&lt;? the_time(&#8217;M') ?&gt;&lt;/div&gt;<br />
		&lt;div class=&quot;day&quot;&gt;&lt;? the_time(&#8217;j') ?&gt;&lt;/div&gt;<br />
		&lt;div class=&quot;year&quot;&gt;&lt;? the_time(&#8217;Y') ?&gt;&lt;/div&gt;<br />
&lt;/div&gt;</p>
<p>Finally, I added the whole thing with a hook&#8230;</p>
<p class="alert">function calendar (){ ?&gt;<br />
	&lt;div class=&quot;calendaricon&quot;&gt;<br />
		&lt;? echo &#8216;&lt;img src=&quot;http://www.thesishacker.com/wp-content/themes/thesis/custom/images/calendar.png&quot; /&gt;&#8217;; ?&gt;<br />
		&lt;div class=&quot;month&quot;&gt;&lt;? the_time(&#8217;M') ?&gt;&lt;/div&gt;<br />
		&lt;div class=&quot;day&quot;&gt;&lt;? the_time(&#8217;j') ?&gt;&lt;/div&gt;<br />
		&lt;div class=&quot;year&quot;&gt;&lt;? the_time(&#8217;Y') ?&gt;&lt;/div&gt;<br />
	&lt;/div&gt;<br />
&lt;?<br />
}<br />
add_action(&#8217;thesis_hook_before_headline&#8217;, &#8216;calendar&#8217;);</p>
<p>Now in my custom.css I can style each part of the date stamp including the day, month, year, and the image&#8230;</p>
<p class="alert">
.custom .calendaricon {float: right;<br />
                                             margin-top: -1em;}<br />
.custom .month {text-transform: uppercase;<br />
                           font-family: arial;<br />
                           margin-top: -5.5em;<br />
                           margin-left: 2.2em;}<br />
.custom .day {font-family: arial;<br />
                       margin-left: 2.99em;<br />
                       padding-top: .3em;<br />
                       padding-bottom: 2.2em;}<br />
.custom .year {font-family: arial;<br />
                        margin-left: 2.1999em;<br />
                        margin-top: -2.2em;}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesishacker.com/add-a-date-stamp-with-an-icon-on-your-post/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>The easiest way to add a &#8220;clickable&#8221; header image</title>
		<link>http://www.thesishacker.com/the-easiest-way-to-add-a-clickable-header-image</link>
		<comments>http://www.thesishacker.com/the-easiest-way-to-add-a-clickable-header-image#comments</comments>
		<pubDate>Mon, 18 May 2009 19:16:46 +0000</pubDate>
		<dc:creator>Nasty</dc:creator>
				<category><![CDATA[header]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[clickable header image]]></category>
		<category><![CDATA[clickable image]]></category>
		<category><![CDATA[header image]]></category>

		<guid isPermaLink="false">http://www.thesishacker.com/?p=1853</guid>
		<description><![CDATA[I wrote an earlier tutorial about showing the easiest way to add a header image HERE.  I had a lot of feedback saying that it wasn&#8217;t clickable. That&#8217;s absolutely correct because it isn&#8217;t. That tutorial shows how to add a header image and that&#8217;s it. It never said anything about being clickable.
The following tutorial, in [...]]]></description>
			<content:encoded><![CDATA[<p>I wrote an earlier tutorial about showing the easiest way to add a header image <a href="http://www.thesishacker.com/the-absolute-easiest-way-to-add-your-own-header-image">HERE</a>.  I had a lot of feedback saying that it wasn&#8217;t clickable. That&#8217;s absolutely correct because it isn&#8217;t. That tutorial shows how to add a <em>header image</em> and that&#8217;s it. It never said anything about being clickable.</p>
<p>The following tutorial, in my opinion, is the easiest way to add a <em>clickable</em> header image&#8230;.</p>
<p>First, make sure your image is in your custom.css file&#8230;</p>
<p>Next, in your custom_functions.php file, create a simple function and assign it a div tag with a unique name so you can style the <em>header area</em> in your custom.css&#8230;</p>
<p class="alert">function myheader() {?&gt;<br />
&lt;div class=&#8221;myheader-space&#8221;&gt;&lt;/div&gt;<br />
}</p>
<p>Next, add the image to the function with the complete file path to the image and give it a class name so you can style the <em>image size</em> in your custom.css&#8230;</p>
<p class="alert">function myheader() {?&gt;<br />
&lt;div class=&#8221;myheader-space&#8221;&gt;&lt;img class=&#8221;myheader&#8221; src=&#8221;http://www.my site.com/wp-content/themes/thesis/custom/images/headerimage.jpg&#8221;/&gt;&lt;/div&gt;<br />
}</p>
<p>Next, wrap the image with the link to where you want the header image to click to&#8230;</p>
<p class="alert">function myheader() {?&gt;<br />
&lt;div class=&#8221;myheader-space&#8221;&gt;&lt;a href=&#8221;http://www.where I want it to go.com&#8221;&gt;&lt;img class=&#8221;myheader&#8221; src=&#8221;http://www.hedonism-inc.com/wp-content/themes/thesis/custom/images/headerimage.jpg&#8221;/&gt;&lt;/a&gt;&lt;/div&gt;<br />
}</p>
<p>Finally, remove the default header and replace it with your new one&#8230;</p>
<p class="alert">function myheader() {?<br />
&lt;div class=&quot;myheader-space&quot;&gt;&lt;a href=&quot;http://www.where I want it to go.com&quot;&gt;&lt;img class=&quot;myheader&quot; src=&quot;http://www.my-site.com/wp-content/themes/thesis/custom/images/headerimage.jpg&quot;/&gt;&lt;/a&gt;&gt;/div&gt;<br />
&lt;?<br />
}<br />
remove_action(&#8217;thesis_hook_header&#8217;,'thesis_default_header&#8217;);<br />
add_action(&#8217;thesis_hook_header&#8217;,'myheader&#8217;);</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesishacker.com/the-easiest-way-to-add-a-clickable-header-image/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Place a row of ads on your page</title>
		<link>http://www.thesishacker.com/place-a-row-of-ads-on-your-page</link>
		<comments>http://www.thesishacker.com/place-a-row-of-ads-on-your-page#comments</comments>
		<pubDate>Thu, 07 May 2009 19:17:11 +0000</pubDate>
		<dc:creator>Nasty</dc:creator>
				<category><![CDATA[ads]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[pages]]></category>
		<category><![CDATA[posts]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[ads in a post]]></category>
		<category><![CDATA[ads on a page]]></category>
		<category><![CDATA[place ads]]></category>
		<category><![CDATA[row of ads]]></category>

		<guid isPermaLink="false">http://www.thesishacker.com/?p=1792</guid>
		<description><![CDATA[
This is cool and simple way of placing as many ads as you want on your site&#8230;
First thing is to upload your ads into the custom/images folder on your server
The ads in this example are 125 x 125 which is pretty typical
Next, create a simple function in your custom_functions.php to add the ads, put div [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-1793" title="162" src="http://www.thesishacker.com/wp-content/uploads/2009/05/162.png" alt="162" width="570" height="354" /></p>
<p>This is cool and simple way of placing as many ads as you want on your site&#8230;</p>
<p>First thing is to upload your ads into the custom/images folder on your server</p>
<p>The ads in this example are 125 x 125 which is pretty typical</p>
<p>Next, create a simple function in your custom_functions.php to add the ads, put div tags for the ads, and give it a class name&#8230;</p>
<p class="alert">
function ad(){?&gt;<br />
&lt;div class=&quot;ads&quot;&gt;<br />
&lt;/div&gt;<br />
&lt;?<br />
}</p>
<p>Next, add an unordered list of the ads your going to use between the two div tags and include the path to the image. Your path may be different than the example below&#8230;</p>
<p class="alert">
function ad(){?&gt;<br />
&lt;div class=&quot;ads&quot;&gt;<br />
	&lt;ul &gt;<br />
		     &lt;li&gt;&lt;img src=&quot;http://www.mysite.com/wp-content/themes/thesis/custom/images/ad1.png&quot;&gt;&lt;/li&gt;<br />
		     &lt;li&gt;&lt;img src=&quot;http://www.mysite.com/wp-content/themes/thesis/custom/images/ad2.png&quot;&gt;&lt;/li&gt;<br />
		     &lt;li&gt;&lt;img src=&quot;http://www.mysite.com/wp-content/themes/thesis/custom/images/ad3.png&quot;&gt;&lt;/li&gt;<br />
		     &lt;li&gt;&lt;img src=&quot;http://www.mysite.com/wp-content/themes/thesis/custom/images/ad4.png&quot;&gt;&lt;/li&gt;<br />
	&lt;/ul&gt;<br />
&lt;/div&gt;<br />
&lt;?<br />
}</p>
<p>I decided to put them right under the header so I placed them with the appropriate hook. Here&#8217;s how the entire function looks&#8230;</p>
<p class="alert">
function ad(){?&gt;<br />
&lt;div class=&quot;ads&quot;&gt;<br />
	&lt;ul &gt;<br />
		     &lt;li&gt;&lt;img src=&quot;http://www.mysite.com/wp-content/themes/thesis/custom/images/ad1.png&quot;&gt;&lt;/li&gt;<br />
		     &lt;li&gt;&lt;img src=&quot;http://www.mysite.com/wp-content/themes/thesis/custom/images/ad2.png&quot;&gt;&lt;/li&gt;<br />
		     &lt;li&gt;&lt;img src=&quot;http://www.mysite.com/wp-content/themes/thesis/custom/images/ad3.png&quot;&gt;&lt;/li&gt;<br />
		     &lt;li&gt;&lt;img src=&quot;http://www.mysite.com/wp-content/themes/thesis/custom/images/ad4.png&quot;&gt;&lt;/li&gt;<br />
	&lt;/ul&gt;<br />
&lt;/div&gt;<br />
&lt;?<br />
}<br />
add_action(&#8217;thesis_hook_after_header&#8217;,'ads&#8217;);</p>
<p>Next, add the class to your custom.css and include one for the unordered list of images&#8230;</p>
<p class="alert"> .custom .ads{}<br />
.custom .ads ul li{}</p>
<p>These are the properties and values I used, yours may be different&#8230;</p>
<p class="alert">
.custom .ads{padding: 1em; width: 94em; height: 10em;}<br />
.custom .ads ul li{display: inline; margin-right: 1em;}</p>
<p>This is a really simple, fast, and effective way of placing ads on your site. Remember you can add as many ads as you want. you can also place them vertically, or in the sidebar, in the footer, in the header, etc. The possibilities are endless. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesishacker.com/place-a-row-of-ads-on-your-page/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The absolute easiest way to add your own header image</title>
		<link>http://www.thesishacker.com/the-absolute-easiest-way-to-add-your-own-header-image</link>
		<comments>http://www.thesishacker.com/the-absolute-easiest-way-to-add-your-own-header-image#comments</comments>
		<pubDate>Mon, 04 May 2009 16:58:15 +0000</pubDate>
		<dc:creator>Nasty</dc:creator>
				<category><![CDATA[header]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[add]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[header image]]></category>
		<category><![CDATA[image]]></category>

		<guid isPermaLink="false">http://www.thesishacker.com/?p=1773</guid>
		<description><![CDATA[A lot of people read this and said &#8220;It&#8217;s not clickable&#8221;. And they&#8217;re right. This tutorial is to show you how to simply add your own custom image to your header area. It says nothing about making it clickable. I wrote another tutorial on a simple way to make your own custom &#8220;clickable&#8221; header image. [...]]]></description>
			<content:encoded><![CDATA[<p><strong>A lot of people read this and said &#8220;It&#8217;s not clickable&#8221;. And they&#8217;re right. This tutorial is to show you how to simply add your own custom image to your header area. It says nothing about making it clickable. I wrote another tutorial on a simple way to make your own custom &#8220;clickable&#8221; header image. <a href="http://www.thesishacker.com/the-easiest-way-to-add-a-clickable-header-image">Click here to read the entire tutorial.</a><br />
</strong><br />
I wrote a tutorial about 6 months ago showing how to add a custom image to the header. Since then, new Thesis versions and upgrades have been released. Functions, hooks, and css selectors have been changed. The latest version of Thesis is so much more streamlined than it was 6 months ago. The older tutorial still works fine, but it is overkill.</p>
<p>Here&#8217;s the easiest way to insert your own custom header image&#8230;</p>
<p>First, get rid of the default header by putting this in your custom_functions.php file&#8230;</p>
<p class="alert">remove_action ( &#8216;thesis_hook_header&#8217;,'thesis_default_header&#8217;);</p>
<p>Next, make sure your new header image is in the correct folder&#8230;</p>
<p><img class="alignnone size-full wp-image-1774" title="159" src="http://www.thesishacker.com/wp-content/uploads/2009/05/159.png" alt="159" width="194" height="107" /></p>
<p>Next, in your custom.css add this code&#8230;</p>
<p class="alert">.custom #header {background: url(images/your header image.jpg) no-repeat; height: Xem; width: Xem;}</p>
<p>Change the X to whatever number gives you the desired effect</p>
<p>And that, my friends, is it..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesishacker.com/the-absolute-easiest-way-to-add-your-own-header-image/feed</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>Really easy way to have random rotating images</title>
		<link>http://www.thesishacker.com/really-easy-way-to-have-random-rotating-images</link>
		<comments>http://www.thesishacker.com/really-easy-way-to-have-random-rotating-images#comments</comments>
		<pubDate>Mon, 27 Apr 2009 14:20:38 +0000</pubDate>
		<dc:creator>Nasty</dc:creator>
				<category><![CDATA[images]]></category>
		<category><![CDATA[rotating images or text]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[rotate]]></category>
		<category><![CDATA[rotating images]]></category>

		<guid isPermaLink="false">http://www.thesishacker.com/?p=1741</guid>
		<description><![CDATA[You can have random rotating images in your multimedia box, feature box, widgets, or if you really want to have freedom, you can  learn how to make your own custom multimedia box and place them in it.
We&#8217;re going to rotate the images with a little php code. In order to do this we need [...]]]></description>
			<content:encoded><![CDATA[<p>You can have random rotating images in your multimedia box, feature box, widgets, or if you really want to have freedom, you can <a href="http://www.thesishacker.com/make-your-own-multimedia-box"> learn how to make your own custom multimedia box</a> and place them in it.</p>
<p>We&#8217;re going to rotate the images with a little php code. In order to do this we need to first prepare the images to be rotated by renaming them. Get all the images to be rotated and rename them with numbers. This works with png, jpg, gif, tiff, etc. For example&#8230;</p>
<p>image1.png<br />
image2.png<br />
image3.png</p>
<p>OR</p>
<p>image-1.png<br />
image-2.png<br />
image-3.png</p>
<p>OR</p>
<p>1.png<br />
2.png<br />
3.png</p>
<p>You get the idea? Get all the images you want rotated in a group, rename them with numbers starting with 1, increment by 1, and proceed in order to the total number of images in the group</p>
<p>Upload all the images to the proper directory</p>
<p>Let&#8217;s say, for example, you uploaded the images to a folder named &#8220;random&#8221;. You are using the image-n.png format where n equals the number of the image. Here&#8217;s the path that we&#8217;ll use for this example&#8230;</p>
<p class="alert">&lt;img src=&quot;http://www.yoursite.com/folder/random/image-n.png&quot; /&gt;</p>
<p>Now here is the php code that is going to replace n with a random number from 1 to the total number of images there is, in this case, 3</p>
<p class="alert">&lt;?php echo rand(1,n); ?&gt;</p>
<p>The whole code comes together like this&#8230;</p>
<p class="alert">&lt;img src=&quot;http://www.yoursite.com/folder/random/image-&lt;?php echo rand(1,n); ?&gt;.png&quot; /&gt;</p>
<p>That&#8217;s about the simplest way to get random rotating images</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesishacker.com/really-easy-way-to-have-random-rotating-images/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add an image with a widget</title>
		<link>http://www.thesishacker.com/add-an-image-with-a-widget</link>
		<comments>http://www.thesishacker.com/add-an-image-with-a-widget#comments</comments>
		<pubDate>Thu, 23 Apr 2009 03:57:52 +0000</pubDate>
		<dc:creator>Nasty</dc:creator>
				<category><![CDATA[images]]></category>
		<category><![CDATA[widgets]]></category>
		<category><![CDATA[add an image]]></category>
		<category><![CDATA[thesis]]></category>
		<category><![CDATA[thesis hacker]]></category>
		<category><![CDATA[widget]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.thesishacker.com/?p=1671</guid>
		<description><![CDATA[You can easily add images to your sidebars, or wherever you have a widget, with a text widget. Here&#8217;s how&#8230;
Go to your Dashboard &#8212;-&#62;Appearance &#8212;-&#62;Widgets&#8230;.
Pick where you want to place the image from the drop down list&#8230;

Next, from the available widgets column go to the text widget and click the &#8220;add&#8221; button&#8230;

Next, open the widget&#8230;

Now [...]]]></description>
			<content:encoded><![CDATA[<p>You can easily add images to your sidebars, or wherever you have a widget, with a text widget. Here&#8217;s how&#8230;</p>
<p>Go to your Dashboard &#8212;-&gt;Appearance &#8212;-&gt;Widgets&#8230;.</p>
<p>Pick where you want to place the image from the drop down list&#8230;</p>
<p><img class="alignnone size-full wp-image-1672" title="145" src="http://www.thesishacker.com/wp-content/uploads/2009/04/145.png" alt="145" width="301" height="214" /></p>
<p>Next, from the available widgets column go to the text widget and click the &#8220;add&#8221; button&#8230;</p>
<p><img class="alignnone size-full wp-image-1673" title="146" src="http://www.thesishacker.com/wp-content/uploads/2009/04/146.png" alt="146" width="405" height="96" /></p>
<p>Next, open the widget&#8230;</p>
<p><img class="alignnone size-full wp-image-1674" title="147" src="http://www.thesishacker.com/wp-content/uploads/2009/04/147.png" alt="147" width="429" height="500" /></p>
<p>Now you can simply type your html code in the box provided. Here&#8217;s an example of the code you could input. Obviously you would have to adjust the image path to where you have your image. You can give your image a class name so you can style it in your custom.css</p>
<p class="alert">&lt;img class=&#8221;name your class&#8221; src=&#8221;http://www.your path to your image&#8221;&gt;</p>
<p>After you&#8217;re done, make sure you hit the &#8220;save changes&#8221; button!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesishacker.com/add-an-image-with-a-widget/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Add avatar to wordpress default</title>
		<link>http://www.thesishacker.com/add-avatar-to-wordpress-default</link>
		<comments>http://www.thesishacker.com/add-avatar-to-wordpress-default#comments</comments>
		<pubDate>Thu, 19 Mar 2009 03:13:52 +0000</pubDate>
		<dc:creator>Nasty</dc:creator>
				<category><![CDATA[avatars]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[default]]></category>
		<category><![CDATA[gravatars]]></category>
		<category><![CDATA[thesis]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.thesishacker.com/?p=1559</guid>
		<description><![CDATA[You can add your own image to the default list of avatars listed in Dashboard &#8212;-&#62; Settings &#8212;-&#62; Discussion&#8230;.


I came across this code and it works perfectly. Add the following code to your custom_functions.php file&#8230;
/*add avatar to wordpress default list*/
add_filter( &#8216;avatar_defaults&#8217;, &#8216;newgravatar&#8217; );
function newgravatar ($avatar_defaults) {
$myavatar = get_bloginfo(&#8217;template_directory&#8217;) . &#8216;/images/name-your-gravatar-image.jpg&#8217;;
$avatar_defaults[$myavatar] = &#8220;administrator&#8221;;
return $avatar_defaults;
}
The add_filter function [...]]]></description>
			<content:encoded><![CDATA[<p>You can add your own image to the default list of avatars listed in Dashboard &#8212;-&gt; Settings &#8212;-&gt; Discussion&#8230;.</p>
<p><img class="alignnone size-full wp-image-1560" title="136" src="http://www.thesishacker.com/wp-content/uploads/2009/03/136.png" alt="136" width="457" height="523" /></p>
<p><img class="alignnone size-full wp-image-1561" title="135" src="http://www.thesishacker.com/wp-content/uploads/2009/03/135.png" alt="135" width="454" height="553" /></p>
<p>I came across this code and it works perfectly. Add the following code to your custom_functions.php file&#8230;</p>
<p class="alert">/*add avatar to wordpress default list*/<br />
add_filter( &#8216;avatar_defaults&#8217;, &#8216;newgravatar&#8217; );<br />
function newgravatar ($avatar_defaults) {<br />
$myavatar = get_bloginfo(&#8217;template_directory&#8217;) . &#8216;/images/name-your-gravatar-image.jpg&#8217;;<br />
$avatar_defaults[$myavatar] = &#8220;administrator&#8221;;<br />
return $avatar_defaults;<br />
}</p>
<p>The <a href="http://codex.wordpress.org/Function_Reference/add_filter">add_filter</a> function says that we’ll be editing the avatar_defaults array using our custom function “newgravatar<strong>” </strong></p>
<p>The newgravatar function details the location and title of our additional gravatar option</p>
<p><em>$myavatar = get_bloginfo(&#8217;template_directory&#8217;) . &#8216;/images/name-your-gravatar-image.jpg&#8217;; </em> points to the new gravatar in the images folder of the template directory</p>
<p>The line after that designates the name that will be displayed next to the image dashboard options. I just happened to name mine administrator, you can name it whatever you want</p>
<p>The third line sends back the results to the avatar_defaults array to be included in the theme</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesishacker.com/add-avatar-to-wordpress-default/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Lightbox 2 plugin</title>
		<link>http://www.thesishacker.com/lightbox-2-plugin</link>
		<comments>http://www.thesishacker.com/lightbox-2-plugin#comments</comments>
		<pubDate>Wed, 18 Feb 2009 04:14:20 +0000</pubDate>
		<dc:creator>Nasty</dc:creator>
				<category><![CDATA[images]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[pugins]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[lightbox 2]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://www.thesishacker.com/?p=1192</guid>
		<description><![CDATA[This is a cool effect for thumbnail images or links you want to emphasize]]></description>
			<content:encoded><![CDATA[<p>This is a visually cool plugin. This plugin works great if your using thumbnail images or if you want to emphasize an image through a link. Click on the image below to see it in action&#8230;</p>
<p class="text-align: center"><a title="this is pretty cool huh?" rel="lightbox" href="http://www.thesishacker.com/wp-content/themes/thesis/custom/images/biglbox.png" rel="lightbox[1192]"><img class="lightbox" src="http://www.thesishacker.com/wp-content/themes/thesis/custom/images/lbox.gif" alt="" /></a></p>
<p><a href="http://wordpress.org/extend/plugins/lightbox-2/">Go here</a> to download and install the plugin</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesishacker.com/lightbox-2-plugin/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add the same image to single posts only</title>
		<link>http://www.thesishacker.com/add-same-image-to-single-posts-only</link>
		<comments>http://www.thesishacker.com/add-same-image-to-single-posts-only#comments</comments>
		<pubDate>Wed, 28 Jan 2009 02:26:20 +0000</pubDate>
		<dc:creator>Nasty</dc:creator>
				<category><![CDATA[functions]]></category>
		<category><![CDATA[hooks]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[posts]]></category>
		<category><![CDATA[add]]></category>
		<category><![CDATA[add image to single posts]]></category>
		<category><![CDATA[image]]></category>

		<guid isPermaLink="false">http://www.thesishacker.com/?p=874</guid>
		<description><![CDATA[Add the same image to single posts only]]></description>
			<content:encoded><![CDATA[<p>To see how to add the same image to all posts <a href="http://www.thesishacker.com/add-the-same-image-to-every-post">check out this tutorial.</a> You can do the same thing except make the image appear on single posts only. When you click on a category item all the posts that you declared in your settings will appear. When you click on one of the titles of the post it will take you to the single post. This is where your image will appear.</p>
<p>In your custom_functions.php file add the following code. You can put it anywhere you want but I recommend putting it at the top after the &lt;?php tag. Remember, once you make the change, save it, and upload it to your server. Always describe the function and put it between the comment tags /*  */ at the beginning shown below in green. The comments aren’t shown on your rendered page and it just makes things easier for you to remember…</p>
<p class="alert"><span style="color: #339966;">/*image on single post*/</span><br />
function <span style="color: #ff0000;">name_your_function</span>() {<br />
if (is_single())<br />
echo &#8216;&lt;img src=&#8221;http://your site/wp-content/themes/thesis/custom/images/your image&#8221; <span style="color: #0000ff;">class=&#8221;name your class here&#8221; </span>/&gt;&#8217;;<br />
}<br />
add_action(&#8217;thesis_hook_<span style="color: #ff00ff;">after</span>_post&#8217; , &#8216;<span style="color: #ff0000;">name_your_function</span>&#8216;);</p>
<p>Name your function whatever you want</p>
<p>Give it a class so that you can style it in your custom.css</p>
<p>You can hang this function before or after a post with this&#8230;</p>
<p>thesis_hook_<span style="color: #ff00ff;">before</span>_post</p>
<p>thesis_hook_<span style="color: #ff00ff;">after</span>_post</p>
<p>Check out the hook map for placement ideas</p>
<p><a href="http://www.thesishacker.com/?page_id=298"><img class="aligncenter size-full wp-image-871" title="smallhookmap" src="http://www.thesishacker.com/wp-content/uploads/2009/01/smallhookmap.png" alt="smallhookmap" width="70" height="115" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesishacker.com/add-same-image-to-single-posts-only/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add the same image to every post</title>
		<link>http://www.thesishacker.com/add-the-same-image-to-every-post</link>
		<comments>http://www.thesishacker.com/add-the-same-image-to-every-post#comments</comments>
		<pubDate>Wed, 28 Jan 2009 02:21:34 +0000</pubDate>
		<dc:creator>Nasty</dc:creator>
				<category><![CDATA[functions]]></category>
		<category><![CDATA[hooks]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[add]]></category>
		<category><![CDATA[add image]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[post]]></category>
		<category><![CDATA[thesis]]></category>

		<guid isPermaLink="false">http://www.thesishacker.com/?p=870</guid>
		<description><![CDATA[Add the same image to every post]]></description>
			<content:encoded><![CDATA[<p>You can put an image on every post without having to insert it everytime you write a new post. You can do it with a function and hook&#8230;</p>
<p>In your custom_functions.php file add the following code. You can put it anywhere you want but I recommend putting it at the top after the &lt;?php tag. Remember, once you make the change, save it, and upload it to your server. Always describe the function and put it between the comment tags /*  */ at the beginning shown below in green. The comments aren’t shown on your rendered page and it just makes things easier for you to remember…</p>
<p class="alert"><span style="color: #339966;">/*image on every post*/</span><br />
function <span style="color: #ff0000;">name_your_function</span>() {<br />
echo &#8216;&lt;img src=&#8221;http://your site/wp-content/themes/thesis/custom/images/your image&#8221; <span style="color: #0000ff;">class=&#8221;name your class here&#8221; </span>/&gt;&#8217;;<br />
}<br />
add_action(&#8217;thesis_hook_<span style="color: #ff00ff;">after</span>_post&#8217; , &#8216;<span style="color: #ff0000;">name_your_function</span>&#8216;);</p>
<p>Name your function whatever you want</p>
<p>Give it a class so that you can style it in your custom.css</p>
<p>You can hang this function before or after a post with this&#8230;</p>
<p>thesis_hook_<span style="color: #ff00ff;">before</span>_post</p>
<p>thesis_hook_<span style="color: #ff00ff;">after</span>_post</p>
<p>Check out the hook map for placement ideas</p>
<p><a href="http://www.thesishacker.com/?page_id=298"><img class="aligncenter size-full wp-image-871" title="smallhookmap" src="http://www.thesishacker.com/wp-content/uploads/2009/01/smallhookmap.png" alt="smallhookmap" width="70" height="115" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesishacker.com/add-the-same-image-to-every-post/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

