<?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>Pingable :: Everything Wordpress &#187; Images</title>
	<atom:link href="http://www.pingable.org/tag/images/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pingable.org</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Tue, 24 Jan 2012 00:32:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>WordPress PHP Code Snip &#8211; Assign image to post ID</title>
		<link>http://www.pingable.org/wordpress-php-code-snip-assign-image-to-post-id/</link>
		<comments>http://www.pingable.org/wordpress-php-code-snip-assign-image-to-post-id/#comments</comments>
		<pubDate>Sun, 01 Jul 2007 07:42:14 +0000</pubDate>
		<dc:creator>Simon Ward</dc:creator>
				<category><![CDATA[Blogging Tips]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Images]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.pingable.org/wordpress-php-code-snip-assign-image-to-post-id/</guid>
		<description><![CDATA[The following PHP code is some code I use on this blog that I thought some others that don&#8217;t program may find useful. What it does is assign an image to each unique post ID from WordPress&#160;that is a gif file. If you put a file in&#160;the&#160;image folder in your root directory of your Website [...]]]></description>
			<content:encoded><![CDATA[<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="standard" count="1" href="http://www.pingable.org/wordpress-php-code-snip-assign-image-to-post-id/"></g:plusone></div><p>The following PHP code is some code I use on this blog that I thought some others that don&#8217;t program may find useful. What it does is assign an image to each unique post ID from WordPress&nbsp;that is a gif file. If you put a file in&nbsp;the&nbsp;image folder in your root directory of your Website called 8.gif &#8211; the 8th post you made on your blog will be assigned that image wherever you place this code.&nbsp;If there is no image for that id (you haven&#8217;t&nbsp;put a file called 8.gif in yet)&nbsp;it assigns the image called uplogo.gif. <a href="http://www.uberpiglet.com/category/blogging/">Demo. </a>Of course you can change any of the directories, file extensions, and the alternative image name&nbsp;to suit your own needs.You can find the post ID by looking in manage posts from your dash. You should use this code in template files.</p>
<div class="csharpcode">
<pre class="alt">&lt;?php  </pre>
<pre>$image = <span class="str">"$id.gif"</span>; </pre>
<pre class="alt"><span class="kwrd">if</span>(is_readable(<span class="str">"./images/$image"</span>))  </pre>
<pre>{ </pre>
<pre class="alt">echo <span class="str">"&lt;img src='/images/$image' alt='alt tag'  /&gt;"</span>;  </pre>
<pre>}  </pre>
<pre class="alt"><span class="kwrd">else</span>  </pre>
<pre>{  </pre>
<pre class="alt">echo <span class="str">"&lt;img src='/images/uplogo.gif' alt='alt tag' /&gt;"</span>;  </pre>
<pre>}  </pre>
<pre class="alt">?&gt;</pre>
</div>
<style type="text/css">.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
<p>
<p>Check out some other WordPress hacks: <a href="http://www.thepinkc.net/wordpress/stop-using-wordpress-plugins-top-3-wordpress-hacks/">WordPress hacks</a></p>
<p align="right"><img alt="www.pingable.org" src="http://www.pingable.org/images/sig.gif"></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pingable.org/wordpress-php-code-snip-assign-image-to-post-id/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Free Stock Image Sites</title>
		<link>http://www.pingable.org/free-stock-image-sites-sources-of-free-images-to-use-on-your-blog/</link>
		<comments>http://www.pingable.org/free-stock-image-sites-sources-of-free-images-to-use-on-your-blog/#comments</comments>
		<pubDate>Fri, 01 Jun 2007 23:30:29 +0000</pubDate>
		<dc:creator>Simon Ward</dc:creator>
				<category><![CDATA[Graphics]]></category>
		<category><![CDATA[Free]]></category>
		<category><![CDATA[Images]]></category>
		<category><![CDATA[Photography]]></category>
		<category><![CDATA[Vectors]]></category>

		<guid isPermaLink="false">http://www.pingable.org/free-stock-image-sites-sources-of-free-images-to-use-on-your-blog/</guid>
		<description><![CDATA[It&#8217;s quite a difficult task to find clean, crisp, relevant, yet legal images to use on a Website. If you understand what copyright is you will know that you can&#8217;t just grab any old image you see on the web and place it on your own site. So where do you get images from? Stock [...]]]></description>
			<content:encoded><![CDATA[<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="standard" count="1" href="http://www.pingable.org/free-stock-image-sites-sources-of-free-images-to-use-on-your-blog/"></g:plusone></div><p>It&#8217;s quite a difficult task to find clean, crisp, relevant, yet legal images to use on a Website. If you understand what copyright is you will know that you can&#8217;t just grab any old image you see on the web and place it on your own site. So where do you get images from? Stock photography is the answer for many web designers &#8211; well those that aren&#8217;t the sort that carry around a digital SLR in their bag anyway. The problem here for most small sites is that a good stock image doesn&#8217;t come cheap, and I hear you saying&#8230;&#8221;why pay when I can just download free images from the net&#8221;. Good question. To get to the point, your main concern here should be legality. I am certainly not going to trust any old &#8220;Free Clip-art download site&#8221; where you don&#8217;t so much as even see a legal notice or licence for the image you are getting. However I have found a few sources of free legal downloads of stock images where the licensing of the images is very clear. These photos are sometimes referred to as public domain images.<br />
<strong>Free Stock Image sites:</strong><br />
<a href="http://www.sxc.hu/index.phtml" target="_blank">SXC</a> &lt;- Has many free images, with some extra sharp premium paid images which cost.<br />
<a href="http://morguefile.com" target="_blank">Morgue File</a> &lt;- All free, a good source for images.<br />
<a href="http://www.dreamstime.com/"target="_blank">Dreamstime</a> &lt;- Has some free images, mostly pay images.<br />
<a href="http://imageafter.com/" target="_blank">Image After</a> &lt;- All free images.<br />
<a href="http://www.vecteezy.com/" target="_blank">Vecteezy</a> &lt;- Very cool site with some free vector images, and sorted by licence type (source of bikini image above).</p>
<p>Good luck pic hunting.</p>
<p align="right"><img alt="www.pingable.org" src="http://www.pingable.org/images/sig.gif"></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pingable.org/free-stock-image-sites-sources-of-free-images-to-use-on-your-blog/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
	</channel>
</rss>

