<?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>Co-Op Media</title>
	<atom:link href="http://co-opmedia.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://co-opmedia.org</link>
	<description>New media production team centered in Minneapolis, Minnesota.</description>
	<lastBuildDate>Sun, 13 Dec 2009 21:04:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Why your news site design sucks and how to fix it</title>
		<link>http://co-opmedia.org/2009/12/13/why-your-news-site-design-sucks-and-how-to-fix-it/</link>
		<comments>http://co-opmedia.org/2009/12/13/why-your-news-site-design-sucks-and-how-to-fix-it/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 21:04:02 +0000</pubDate>
		<dc:creator>Justin Heideman</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://co-opmedia.org/?p=157</guid>
		<description><![CDATA[On December 12th for the Other Future of News (aka, #ofon) I gave a short presentation on web design and how much it is lacking on news sites. Here are the slides:
Why your news site design sucks and how to fix it
View more presentations from Justin  Heideman.

]]></description>
			<content:encoded><![CDATA[<p>On December 12th for the Other Future of News (aka, #ofon) I gave a short presentation on web design and how much it is lacking on news sites. Here are the slides:</p>
<div id="__ss_2710404" style="width: 425px; text-align: left;"><a style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" title="Why your news site design sucks and how to fix it" href="http://www.slideshare.net/justinph/why-your-news-site-design-sucks-and-how-to-fix-it">Why your news site design sucks and how to fix it</a><object style="margin:0px" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=ofon-key-091213142015-phpapp01&amp;stripped_title=why-your-news-site-design-sucks-and-how-to-fix-it" /><param name="allowfullscreen" value="true" /><embed style="margin:0px" type="application/x-shockwave-flash" width="425" height="355" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=ofon-key-091213142015-phpapp01&amp;stripped_title=why-your-news-site-design-sucks-and-how-to-fix-it" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<div style="font-size: 11px; font-family: tahoma,arial; height: 26px; padding-top: 2px;">View more <a style="text-decoration:underline;" href="http://www.slideshare.net/">presentations</a> from <a style="text-decoration:underline;" href="http://www.slideshare.net/justinph">Justin  Heideman</a>.</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://co-opmedia.org/2009/12/13/why-your-news-site-design-sucks-and-how-to-fix-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automatically getting a thumbnail from the first image in a post with WordPress</title>
		<link>http://co-opmedia.org/2009/04/12/auto-get-thumbnail-from-post/</link>
		<comments>http://co-opmedia.org/2009/04/12/auto-get-thumbnail-from-post/#comments</comments>
		<pubDate>Sun, 12 Apr 2009 22:01:35 +0000</pubDate>
		<dc:creator>Justin Heideman</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://co-opmedia.org/?p=104</guid>
		<description><![CDATA[Recently, a client asked us to do some upgrade work on their sites, upgrading their WordPress installations. One of the things that had been keeping them from upgrading had been their use of the post-thumb plug-in that no longer worked properly in WordPress 2.7. (Note: following that link will lead you to a site that [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, a <a href="http://newjournalist.org/">client</a> asked us to do some upgrade work on their sites, upgrading their WordPress installations. One of the things that had been keeping them from upgrading had been their use of the <a href="http://www.alakhnor.com/post-thumb/">post-thumb plug-in</a> that no longer worked properly in WordPress 2.7. (Note: following that link will lead you to a site that has been labeled full of Malware by Google!)</p>
<p>This particular plugin attempted to find the first image in any post, and generate a thumbnail for use on an index or archive page. If you&#8217;re running an online news site, this is a pretty handy way to kee your homepage graphical: Plop an image in the post, and it appears magically on the front page. The editors definitely wanted to retain the ease of workflow, so implementing a process to manually select a thumbnail was not an option. Instead, we came up with a relatively simple solution that got built right into the site theme.</p>
<div id="attachment_113" class="wp-caption aligncenter" style="width: 690px"><img src="http://co-opmedia.org/wp-content/uploads/2009/04/mindy_screenshot-680x485.jpg" alt="The Minnesota Independent." title="mindy_screenshot" width="680" height="485" class="size-large wp-image-113" /><p class="wp-caption-text">The Minnesota Independent.</p></div>
<p>Here is the function, with some explanation below:</p>
<pre class="brush: php;">
/*
replacement function for the_thumb, as found in the post-thumb plugin
searches a pots for images, gets the image id, then retrives info about it, displays the thumb

args:
$size, should be &quot;thumbnail&quot; or &quot;medium&quot;
*/
function cim_the_thumb($size=&quot;thumbnail&quot;){
	global $post;
	preg_match('/&lt;img(.*?)src=[&quot;'.&quot;']&quot;.'(.*?)[&quot;'.&quot;']&quot;.'(.*?)\/\&gt;/i', $post-&gt;post_content, $matches);  //get all the images

	if (!$matches)  //if no images
		return null;

	ereg('wp-image-([0-9]+)',$matches[0],$regs);  //find the string &quot;wp-image-nnn&quot; in the image, where nnn is the image id

	if (!$regs){
		echo &quot;&lt;!-- there was an error getting an image for this post --&gt;\n&quot;;
		return null;
	}

	if (is_numeric($regs[1])){  //check to make sure the ID we got is numeric (it should be!)

		//add classes specifically for the CIM sites
		if ($size ==&quot;medium&quot;){
			$imgClass=&quot;img-holder&quot;;
		} elseif ($size == &quot;thumbnail&quot;){
			$imgClass = &quot;smallthumb&quot;;
		}

		$image = wp_get_attachment_image_src($regs[1], $size, false);  //get image sizes
		if ( $image ) {
			list($src, $width, $height) = $image;
			echo '&lt;a href=&quot;'.get_permalink($post-&gt;ID).'&quot; title=&quot;'.get_the_title($post-&gt;ID).'&quot;&gt;';
			echo '&lt;img src=&quot;'.attribute_escape($src).'&quot; class=&quot;'.$imgClass.' attachment-'.attribute_escape($size).'&quot; alt=&quot;'.get_the_title($post-&gt;ID).'&quot; /&gt;';
			echo &quot;&lt;/a&gt;\n&quot;;
		}
	} else {
		echo &quot;&lt;!-- there was an error getting an image for this post --&gt;\n&quot;;
		return null;
	}
}
</pre>
<p>Here&#8217;s how this works:<br />
This function should be called in <a href="http://codex.wordpress.org/The_Loop">the loop</a> wherever an image is needed, such as an an index or archive page. A regular expression searches the body of the post for the first occurrence of an image (line 10) and gets the CSS ID of that image that WordPress applies. The author of the post <em>must</em> have uploaded the image through WordPress for this to work. The function then uses the image ID to get the appropriate image details using the wp_get_attachment_image_src function. We then spit out a link and img tag for the post. </p>
<p>In order for this to work, WordPress must be configured to have  appropriate media sizes set up. You will want the thumbnail size set to be the size of the thumbnail your theme uses and the medium size set to match a larger size, if necessary. In the case of our work for the CIM sites, their themes had established sizes of 106 px and 273px, so we used 150px and 300px, respectively, and let the CSS classes applied to each size shrink the image. </p>
<div id="attachment_112" class="wp-caption aligncenter" style="width: 690px"><img src="http://co-opmedia.org/wp-content/uploads/2009/04/media_settings-680x290.jpg" alt="WordPress Media Settings." title="media_settings" width="680" height="290" class="size-large wp-image-112" /><p class="wp-caption-text">WordPress Media Settings.</p></div>
<p>An added benefit of our upgrades to the CIM sites was a substantial decrease in the bandwidth used on the pages. Using the post-thumb plug-in, the full-size image was being served, either due to being broken or misconfigured. Using our new setup, we serve an appropriate sized image. Typical bandwidth used on the home page dropped from around 2mb to around 600k.</p>
]]></content:encoded>
			<wfw:commentRss>http://co-opmedia.org/2009/04/12/auto-get-thumbnail-from-post/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ZER01 is now live</title>
		<link>http://co-opmedia.org/2009/04/01/zer01-is-now-live/</link>
		<comments>http://co-opmedia.org/2009/04/01/zer01-is-now-live/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 22:16:56 +0000</pubDate>
		<dc:creator>Justin Heideman</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://co-opmedia.org/?p=120</guid>
		<description><![CDATA[After several months of work, the new site for ZER01 is now live. We&#8217;ve been working with ZER01 for almost a year now on various projects, but this is our first new site with them. We&#8217;ll be posting some details on the design decisions and technology behind the site soon. 
]]></description>
			<content:encoded><![CDATA[<p>After several months of work, the new site for <a href="http://zero1.org">ZER01</a> is now live. We&#8217;ve been working with ZER01 for almost a year now on various projects, but this is our first new site with them. We&#8217;ll be posting some details on the design decisions and technology behind the site soon. </p>
<div id="attachment_93" class="wp-caption aligncenter" style="width: 690px"><a href="http://zero1.org/"><img src="http://co-opmedia.org/wp-content/uploads/2009/04/home-page-680x544.jpg" alt="The ZER01 home page." title="Home page" width="680" height="544" class="size-large wp-image-93" /></a><p class="wp-caption-text">The ZER01 home page.</p></div>
]]></content:encoded>
			<wfw:commentRss>http://co-opmedia.org/2009/04/01/zer01-is-now-live/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fresh Post for WordPress to become more useful</title>
		<link>http://co-opmedia.org/2008/03/09/fresh-post-for-wordpress-to-become-more-useful/</link>
		<comments>http://co-opmedia.org/2008/03/09/fresh-post-for-wordpress-to-become-more-useful/#comments</comments>
		<pubDate>Sun, 09 Mar 2008 21:09:44 +0000</pubDate>
		<dc:creator>Justin Heideman</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.co-opmedia.org/2008/03/09/fresh-post-for-wordpress-to-become-more-useful/</guid>
		<description><![CDATA[Recently I think I may have found the most useful WordPress plugin ever, Fresh Post. It combines all the good of the Custom Write Panel plugin (done by the Rhymed Code guys, makers of Custom Fields GUI), plus integration of the role manager, and the ability to deal with images. In other words, awesome.
The only [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I think I may have found the most useful <a href="http://wordpress.org">WordPress</a> plugin ever, <a href="http://freshout.us/goodies/fresh-post-for-wordpress-wordpress-cms/">Fresh Post</a>. It combines all the good of the <a href="http://rhymedcode.net/projects/custom-write-panel">Custom Write Panel</a> plugin (done by the Rhymed Code guys, makers of Custom Fields GUI), plus integration of the role manager, and the ability to deal with images. In other words, awesome.</p>
<p>The only problem is that as of this moment, it doesn&#8217;t work with pages, only posts. And if you&#8217;re a Wordpress Hacker like we are, that&#8217;s a serious bummer. However, word has appeared on the plugin page that a new version is in the pipes and it&#8217;ll support Pages! (Ironically, when the plugin is downloaded, the folder is named &#8220;fresh page&#8221;.) Soon WordPress can be used as a serious CMS.</p>
<p>Of course, using WordPress as a serious CMS leads to a whole series of other questions, but that is a topic for another day.</p>
]]></content:encoded>
			<wfw:commentRss>http://co-opmedia.org/2008/03/09/fresh-post-for-wordpress-to-become-more-useful/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Co-Op Media website</title>
		<link>http://co-opmedia.org/2008/01/02/new-co-op-media-website/</link>
		<comments>http://co-opmedia.org/2008/01/02/new-co-op-media-website/#comments</comments>
		<pubDate>Thu, 03 Jan 2008 05:04:25 +0000</pubDate>
		<dc:creator>Justin Heideman</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://www.co-opmedia.org/2008/01/02/new-co-op-media-website/</guid>
		<description><![CDATA[Until today, we&#8217;ve had a poor website for some time. It was just one of those things that we never got around to taking care of. If work was coming in and we had interesting projects, why bother?
Well, we&#8217;ve still got plenty of work and projects, but we were able to carve out a little [...]]]></description>
			<content:encoded><![CDATA[<p>Until today, we&#8217;ve had a poor website for some time. It was just one of those things that we never got around to taking care of. If work was coming in and we had interesting projects, why bother?</p>
<p>Well, we&#8217;ve still got plenty of work and projects, but we were able to carve out a little time and throw together some images and WordPress code to put together this site. It&#8217;s not fancy, but it does let us update our work much more easily and put together an occasional blog post. We don&#8217;t plan on posting very often, but we do promise to update the site when we complete new projects. In the meantime, take a look at all the lovely projects we&#8217;ve completed that no one ever knew about.</p>
<p>Cheers.</p>
]]></content:encoded>
			<wfw:commentRss>http://co-opmedia.org/2008/01/02/new-co-op-media-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Coen + Partners is now live</title>
		<link>http://co-opmedia.org/2008/01/01/coen-partners-is-now-live/</link>
		<comments>http://co-opmedia.org/2008/01/01/coen-partners-is-now-live/#comments</comments>
		<pubDate>Wed, 02 Jan 2008 04:07:03 +0000</pubDate>
		<dc:creator>Justin Heideman</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[announcements]]></category>
		<category><![CDATA[projects]]></category>

		<guid isPermaLink="false">http://www.co-opmedia.org/2008/01/01/coen-partners-is-now-live/</guid>
		<description><![CDATA[A revised Coen + Partners website launched just before Christmas 2007. Documentation can be found in our projects section.
]]></description>
			<content:encoded><![CDATA[<p>A revised <a href="http://coenpartners.com/">Coen + Partners website</a> launched just before Christmas 2007. <a href="/projects/coen-partners/">Documentation</a> can be found in our projects section.</p>
]]></content:encoded>
			<wfw:commentRss>http://co-opmedia.org/2008/01/01/coen-partners-is-now-live/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
