<?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>Cyberward.net &#187; plugin</title>
	<atom:link href="http://www.cyberward.net/blog/tag/plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cyberward.net/blog</link>
	<description>The Drive Failures and Shutter Clicks of Christopher Ward</description>
	<lastBuildDate>Mon, 03 Oct 2011 13:00:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Aperture 2 Dodge and Burn</title>
		<link>http://www.cyberward.net/blog/2009/05/aperture-2-dodge-and-burn/</link>
		<comments>http://www.cyberward.net/blog/2009/05/aperture-2-dodge-and-burn/#comments</comments>
		<pubDate>Wed, 27 May 2009 12:00:03 +0000</pubDate>
		<dc:creator>Chris Ward</dc:creator>
				<category><![CDATA[Aperture]]></category>
		<category><![CDATA[Digital Darkroom]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[aperture]]></category>
		<category><![CDATA[burn]]></category>
		<category><![CDATA[dodge]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.cyberward.net/blog/?p=1190</guid>
		<description><![CDATA[I am not sure why I was acting to ridiculously. When version 2 came out, I was super psyched, then I found out that if you wanted to use the Dodge and Burn tool, Aperture would make a copy, and send you to the plugin. If you had made any adjustments before this, you couldn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>I am not sure why I was acting to ridiculously. When version 2 came out, I was super psyched, then I found out that if you wanted to use the Dodge and Burn tool, Aperture would make a copy, and send you to the plugin. If you had made any adjustments before this, you couldn&#8217;t tell anymore, all the sliders would look reset. It bugged me that the dodge and burn plug in wasn&#8217;t non destructive. So&#8230; I ignored it.</p>
<p>Just recently I came across an image (can&#8217;t find it now) that was adjusted with this plug-in, and I had a &#8220;what the heck&#8221; kind of moment. I immediately fired up Aperture to re-check out this tool. To get to the plug-in, right click on an image, select Edit With&#8230; and pick Dodge and Burn.</p>
<p><img class="aligncenter size-full wp-image-1191" title="Selecting Dodge and Burn" src="http://www.cyberward.net/blog/wp-content/uploads/aperture1.jpg" alt="Selecting Dodge and Burn" width="500" height="513" /></p>
<p><span id="more-1190"></span>This is an image that I recently worked on. When I look at this image, I want the boat to be the focus. I was trying to take a picture of this tender, just peacefully sitting there, but I need to draw the¬† viewers attention. To do this, I will dodge (lighten) and burn (darken).</p>
<p>The first thing I was going to do is lighten the near side of the boat. Pay attention to the sliders at the top. First select Dodge, and select a tool from Pen, Eraser, and Feather. Lets start with the Pen. Then pick a size. Don&#8217;t be afraid to pick a very large size if you are doing a larger area. It make it quicker, and helps reduce uneven lighting. The softness slider is important. All the way to the right, the brush is very soft, and will create very gradual transitions. This is usually the most realistic way to do this. All the way to the left and the edge is a very hard edge. I will often do that with the Eraser. Soft brush to lighten, and if I went past an edge, I will switch to a hard edge to back up a bit. Now select a strength. You can experiment with this. Usually I find you want a lighter touch, and to apply several brush strokes.</p>
<p><img class="aligncenter size-full wp-image-1192" title="Dodging the boat" src="http://www.cyberward.net/blog/wp-content/uploads/aperture2.jpg" alt="Dodging the boat" width="500" height="377" /></p>
<p>So the above image is showing the side of the boat getting burned in a bit. You can see with a soft brush that the light appears pretty nicely. And remember, if you go over where you wanted to paint in with light, you can use the eraser. If you catch what I am saying, while you are in the plug-in, the tool is non-destructive. You can apply and erase light all you want. Sweet. What if you are unsure where you applied the light. Look to the far right drop down. Select &#8220;Show Dodge as Overlay&#8221;.</p>
<p><img class="aligncenter size-full wp-image-1193" title="Overlay" src="http://www.cyberward.net/blog/wp-content/uploads/aperture3.jpg" alt="Overlay" width="500" height="377" /></p>
<p>You can see that the window goes grey, and the parts of the image that have light applied show up in red. This can be really helpful, especially when you are using the eraser.</p>
<p>Now, lightening isn&#8217;t the only way to draw a viewers attention. You can also darken everything else, or just parts to direct attention. For this image, I darkened the dock and the top of the sky. Remember that thing about non-destructive editing when dodging, well you can switch back and forth from any of the the different effects you want to apply. There is more than Dodge and Burn to this tool. You can also do saturation, sharpening, contrast, and others. Experiment with the tool to see what works. I find that selective sharpening is also a great use of the tool.</p>
<p>Because this tool creates a new image, I find it¬† best to do early on, even first before doing anything else. Then the normal tools will make more sense when you get back to the normal editing environment. Your image will have a little dot within a circle to indicate a image copy was made. This happens with all plug-ins and when sending the image to Photoshop.</p>
<p>Here is the final image after applying some dodging to the boat, burning to the dock and upper sky, and sharpening to the boat edges. In this case the changes are fairly subtle, but that is what I thought was appropriate.</p>
<p><a class="tt-flickr tt-flickr-Medium" title="Peaceful Tender at Night" href="http://www.flickr.com/photos/v3ggi32u/3565765292/"><img class="alignnone" src="http://farm4.static.flickr.com/3630/3565765292_3d49caebd8.jpg" alt="Peaceful Tender at Night" width="500" height="334" /></a></p>
<p>So I have changed my mind. I find this to be a very useful tool now. I still think that it is unfortunate that a new raster image has to be created every time you use this tool, so I would advise trying to avoid going in and out of this tool. Try to get it all corrected and saved once.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyberward.net/blog/2009/05/aperture-2-dodge-and-burn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zen Photo Press</title>
		<link>http://www.cyberward.net/blog/2009/03/zen-photo-press/</link>
		<comments>http://www.cyberward.net/blog/2009/03/zen-photo-press/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 21:26:24 +0000</pubDate>
		<dc:creator>Chris Ward</dc:creator>
				<category><![CDATA[Site News]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[zen photo]]></category>

		<guid isPermaLink="false">http://www.cyberward.net/blog/?p=848</guid>
		<description><![CDATA[I am not sure how I missed this. There is a plugin for WordPress called ZenPhotoPress. I even had ideas of trying to do this myself. Anyway, what this does, is allow you to get your photo&#8217;s from Zen Photo into your wordpress blog. It is built into the visual editor (tiny mce). I have [...]]]></description>
			<content:encoded><![CDATA[<p>I am not sure how I missed this. There is a plugin for <a href="http://wordpress.org">WordPress</a> called <a href="http://wordpress.org/extend/plugins/zenphotopress/">ZenPhotoPress</a>. I even had ideas of trying to do this myself. Anyway, what this does, is allow you to get your photo&#8217;s from <a href="http://www.zenphoto.org/">Zen Photo</a> into your wordpress blog. It is built into the visual editor (tiny mce).</p>
<p>I have been working on a gallery with Zen Photo with my Cyberward theme. Still trying to decide what I want to do with it, but I think that I will move to migrate my family photos over to Zen Photo instead of <a href="http://gallery.menalto.com/">Gallery</a>.</p>
<p>Zen Photo just seems better in my opinion. Gallery (actually Gallery2) seems slow and burdened. Too many things activated and going on by default.¬† Zen Photo has fewer plugins, but that&#8217;s ok by me. It seems much easier to hack on too. I guess now I just need to time to do this.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyberward.net/blog/2009/03/zen-photo-press/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CwExif Plugin Appreciated</title>
		<link>http://www.cyberward.net/blog/2009/02/cwexif-plugin-appreciated/</link>
		<comments>http://www.cyberward.net/blog/2009/02/cwexif-plugin-appreciated/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 15:01:52 +0000</pubDate>
		<dc:creator>Chris Ward</dc:creator>
				<category><![CDATA[My Comments/Rants]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[cwexif]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.cyberward.net/blog/?p=770</guid>
		<description><![CDATA[The other day I finished the CwExif plugin. I got the idea originaly from posts that Gavin Gough, and Matt Brandon did where they were wishing for some easy way to get the EXIF data displayed. Gavin today called me a &#8220;very nice man.&#8221;¬† Also that I¬†was a¬†&#8221;geeky Canadian&#8221;. We Canadian programmers take that to [...]]]></description>
			<content:encoded><![CDATA[<p>The other day I finished the CwExif plugin. I got the idea originaly from posts that Gavin Gough, and Matt Brandon did where they were wishing for some easy way to get the EXIF data displayed.</p>
<p>Gavin today called me a &#8220;<a href="http://www.gavingough.com/2009/02/exif-data-plugin-for-word-press-courtesy-of-a-very-nice-man/">very nice man</a>.&#8221;¬† Also that I¬†was a¬†&#8221;geeky Canadian&#8221;. We Canadian programmers take that to be the highest compliment. <img src='http://www.cyberward.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> ¬†I was quite tickled. It is great when you get to create something that someone really wanted, and doubly when they go out of their way to say thank you.</p>
<p>I am glad that it is what he was looking for. I hope to make some improvements and options for display in the future, but will keep the &#8220;title&#8221; display¬†that works now.¬†</p>
<p>If you give it a try and have issues or suggestions. Leave a comment on the CwExif <a href="http://www.cyberward.net/blog/code/cwexif/">plugin page</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyberward.net/blog/2009/02/cwexif-plugin-appreciated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>First Version of CwExif is out</title>
		<link>http://www.cyberward.net/blog/2009/02/first-version-of-cwexif-is-out/</link>
		<comments>http://www.cyberward.net/blog/2009/02/first-version-of-cwexif-is-out/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 19:15:50 +0000</pubDate>
		<dc:creator>Chris Ward</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[exif]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.cyberward.net/blog/?p=753</guid>
		<description><![CDATA[I now have a first version of CwExif that can be downloaded. This is a new WordPress plugin that will show exif data for an image uploaded to the wordpress library in the title tag. There is a button on the media admin screen that will take the exif data and put it into the [...]]]></description>
			<content:encoded><![CDATA[<p>I now have a first version of <a href="http://www.cyberward.net/blog/code/cwexif/">CwExif </a>that can be downloaded. This is a new WordPress plugin that will show exif data for an image uploaded to the wordpress library in the title tag. There is a button on the media admin screen that will take the exif data and put it into the title tag. On hover, the data will be displayed.</p>
<p>This is just the first version. There is much more that I want to do with this plugin, but you have to start somewhere.</p>
<p>Get it <a href="http://www.cyberward.net/blog/code/cwexif/">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyberward.net/blog/2009/02/first-version-of-cwexif-is-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CwExif is almost done</title>
		<link>http://www.cyberward.net/blog/2009/02/cwexif-is-almost-done/</link>
		<comments>http://www.cyberward.net/blog/2009/02/cwexif-is-almost-done/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 18:52:43 +0000</pubDate>
		<dc:creator>Chris Ward</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[cwexif]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.cyberward.net/blog/?p=723</guid>
		<description><![CDATA[I have been working on a plugin for WordPress that will display the EXIF data for an image. It turned out to be harder than I thought. First of all, there are very few working libraries that will access the data in an image. Second, this is my first WordPress plugin, and the documentation is [...]]]></description>
			<content:encoded><![CDATA[<p>I have been working on a plugin for WordPress that will display the EXIF data for an image. It turned out to be harder than I thought. First of all, there are very few working libraries that will access the data in an image. Second, this is my first WordPress plugin, and the documentation is not what I had hopped. So‚Ä¶ to start, and get something out there, I have scaled back abit.</p>
<p>The first iteration of the plugin will simple replace the title of the image (displayed on hover) with the some meta data captured by WordPress. This will be things like f-stop and shutter speed. Eventually I would like more data, but I will have to go outside of WordPress to get it. Second, I will need to beef up the display options. Using the title is not what I wanted. I would like to have a hover give a proper note, or a click with a lightbox effect. I will get to those later.</p>
<p>So, the first release of this plugin will be soon. I have it working within the media library, but when you are adding an image, the admin panel uses a pop-up with a different form. I just need to get it working either way.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyberward.net/blog/2009/02/cwexif-is-almost-done/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lameda Plugin</title>
		<link>http://www.cyberward.net/blog/2009/01/lameda-plugin/</link>
		<comments>http://www.cyberward.net/blog/2009/01/lameda-plugin/#comments</comments>
		<pubDate>Mon, 26 Jan 2009 20:44:48 +0000</pubDate>
		<dc:creator>Chris Ward</dc:creator>
				<category><![CDATA[Site News]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[exif]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.cyberward.net/blog/?p=570</guid>
		<description><![CDATA[Here is another plugin, Lameda, that uses the exif data that comes from the images as uploaded into WordPress. Lets take a picture: Here is the exif data when you put this tag in your post: [lameda_exif id=556] The thing with this, is you still have to go into the post html and find out [...]]]></description>
			<content:encoded><![CDATA[<p>Here is another plugin, <a href="http://didier.lorphelin.free.fr/blog/index.php/wordpress/lameda/">Lameda</a>, that uses the exif data that comes from the images as uploaded into WordPress. Lets take a picture:</p>
<p style="text-align: center;"><a rel="lightbox" href="http://www.cyberward.net/blog/wp-content/uploads/dsc_0208-version-3.jpg"><img class="aligncenter size-medium wp-image-556" title="Tulip in the Rain" src="http://www.cyberward.net/blog/wp-content/uploads/dsc_0208-version-3-199x300.jpg" alt="Tulip in the Rain" width="199" height="300" /></a></p>
<p>Here is the exif data when you put this tag in your post: [<!-- no parse -->lameda_exif id=556]</p>
<p><img class="size-full wp-image-591 alignnone" title="lameda" src="http://www.cyberward.net/blog/wp-content/uploads/lameda.jpg" alt="lameda" width="206" height="225" /></p>
<p>The thing with this, is you still have to go into the post html and find out what the wordpress id of the image is. Still a bit of a pain. I like that it is pulling this from wordpress. Looks like wordpress stores this in the post_metadata table in an entry about the image. Not all data is saved, just some of the more basic ones like those shown. We just need a more automated, and visually appealing way to show it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyberward.net/blog/2009/01/lameda-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exzo WordPress Plugin</title>
		<link>http://www.cyberward.net/blog/2009/01/exzo-wordpress-plugin/</link>
		<comments>http://www.cyberward.net/blog/2009/01/exzo-wordpress-plugin/#comments</comments>
		<pubDate>Mon, 26 Jan 2009 19:10:21 +0000</pubDate>
		<dc:creator>Chris Ward</dc:creator>
				<category><![CDATA[Site News]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[exif]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.cyberward.net/blog/?p=557</guid>
		<description><![CDATA[Exzo is the Exif and Zoom Image plugin for wordpress. I thought I would try it out. It is supposed to display some exif info around your pictures. Not sure it will work for me. I already post my photos on flickr, and just link to them here, but it seems like an interresting idea. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.vimagic.de/exif-zoom-wordpress-plugin/">Exzo</a> is the Exif and Zoom Image plugin for wordpress. I thought I would try it out. It is supposed to display some exif info around your pictures. Not sure it will work for me. I already post my photos on flickr, and just link to them here, but it seems like an interresting idea. One issue is that there is no way to pop in the image using the library tool. You need to goto the library and find out the image name, then in the HTML tab of the blog editor, you can add a statement like this:</p>
<p><strong><code>[<!-- PREVENT MATCH //-->exzo url="" title=""]dsc_0021[/exzo]</code></strong></p>
<p>That will get you this image on my site:</p>
<p><img class="aligncenter size-full wp-image-590" title="Exzo EXIF" src="http://www.cyberward.net/blog/wp-content/uploads/exzo_image.jpg" alt="Exzo EXIF" width="410" height="500" /></p>
<p>Most of the styling and which exif data that shows up is all customizeable. But I have a couple of issues. First, there seems to be an issue in the plugin where is doesn&#8217;t reference the zoom.css file. I had to modify exzo.php to point to it correctly. Second, the included lightbox effect isn&#8217;t so hot. The biggest issue is that the image pops up full size. Other versions I have seen try to scale the image for the viewport.</p>
<p>It does look like you could opt to just show the exif data though, like this :</p>
<p><strong><code>[<!-- PREVENT MATCH //-->exif="dsc_0021.jpg"]</code></strong></p>
<p><img class="aligncenter size-full wp-image-589" title="Exzo plugin example" src="http://www.cyberward.net/blog/wp-content/uploads/exzo_exif.jpg" alt="Exzo plugin example" width="406" height="105" /></p>
<p>What would be really neat is if instead of the formatting of the picture, and the need to use this tag, is if via javascript, it could just attach itself to the image and display on a hover, or a click or something. Hmmm&#8230; that would be interesting&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyberward.net/blog/2009/01/exzo-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scott Kelby Stirs the Pot</title>
		<link>http://www.cyberward.net/blog/2009/01/scott-kelby-stirs-the-pot/</link>
		<comments>http://www.cyberward.net/blog/2009/01/scott-kelby-stirs-the-pot/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 00:12:43 +0000</pubDate>
		<dc:creator>Chris Ward</dc:creator>
				<category><![CDATA[My Comments/Rants]]></category>
		<category><![CDATA[Photography]]></category>
		<category><![CDATA[Dave Hill]]></category>
		<category><![CDATA[Lucis Art]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[Scott Kelby]]></category>
		<category><![CDATA[Topaz Labs]]></category>

		<guid isPermaLink="false">http://www.cyberward.net/blog/?p=478</guid>
		<description><![CDATA[I suppose that when you are somewhat famous, everything you say has a chance to get spun out of control. It is like this for Scott Kelby. The last couple of days he has posted about a photo shoot that he did, and the post processing he did with some of the images. Part 1. [...]]]></description>
			<content:encoded><![CDATA[<p>I suppose that when you are somewhat famous, everything you say has a chance to get spun out of control. It is like this for Scott Kelby. The last couple of days he has posted about a photo shoot that he did, and the post processing he did with some of the images. <a href="http://www.scottkelby.com/blog/2009/archives/2946">Part 1</a>. <a href="http://www.scottkelby.com/blog/2009/archives/2968">Part 2</a>. There is just so much to comment on this post&#8230;</p>
<p>First, having someone document a shoot is pretty cool, I think. The fact that this one wasn&#8217;t going well just makes it even better. Shows that we all have to keep our heads on straight, and can still pull something out of the ashes.</p>
<p>Second, Scott shows us an effect plugin which he decides not to recommend. This is great. I like to see what people are using and how it is used. I don&#8217;t buy plugins (yet). They just seem soooooo expensive, and that is part of the reason that Scott does not recommend it.</p>
<p>Third, the comments are crazy entertaining. The plugin, by <a href="http://www.lucisart.com/">Lucis Art</a> is what is driving all the comments. It is a mostly one trick pony that creates a rather striking effect. Scott posted about a older version of this a while back, and how to create it <a href="http://www.scottkelby.com/blog/2008/archives/1094">without a plugin.</a> The comments concentrate on two things. One, they don&#8217;t like the <a href="http://www.davehillphoto.com/">Dave Hill </a>look (I think he has some great photo&#8217;s), and those that think that the effect is overused. First, Dave doesn&#8217;t use the plugin. He invented this &#8220;look&#8221;. He certainly has the right to do to his photo&#8217;s what he likes. Why wouldn&#8217;t anyone else? I am amazed at the self richousness of photographers. Raw vs jpeg, crop vs no crop, in camera light balance vs post, &#8220;natural&#8221; vs post. The list is endless. I wish people would just take pictures. If you don&#8217;t enjoy someones work, just move on. I haven&#8217;t seen others using this effect, but then I don&#8217;t actively look for them. I did notice a couple of flickr groups, but I hadn&#8217;t seen them before today. I have yet to see in in print. Hardly overused. But who cares anyway.</p>
<p>One interresting thing is that a commenter talked about a plugin I had not heard of before from <a href="http://www.topazlabs.com/">Topaz Labs </a>. They have a plugin that comes close to this for a lot less money. I don&#8217;t know how close, because I haven&#8217;t tried it yet, but it does have a free trial. They also have other plugins for noise, sharpening, and others. I would love to know how good the noise one is. I could use a good noise filter.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyberward.net/blog/2009/01/scott-kelby-stirs-the-pot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Found new File Download Manager</title>
		<link>http://www.cyberward.net/blog/2009/01/found-new-file-download-manager/</link>
		<comments>http://www.cyberward.net/blog/2009/01/found-new-file-download-manager/#comments</comments>
		<pubDate>Fri, 09 Jan 2009 22:00:36 +0000</pubDate>
		<dc:creator>Chris Ward</dc:creator>
				<category><![CDATA[Site News]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[drain hole]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.cyberward.net/blog/?p=362</guid>
		<description><![CDATA[I found a new plugin that I will use when I move to WordPress 2.7, which should be soon. It is called Drain Hole. This is a pretty spiffy plugin. It allows you to create different &#8220;holes&#8221; or folders to contain downloads. These folders can have different permissions assigned to them. The individual files can [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" title="Drain Hole" src="http://cyberward.net/blog/wp-content/plugins/drain-hole/icons/wordpress-2.2+.png" alt="" width="128" height="128" />I found a new plugin that I will use when I move to WordPress 2.7, which should be soon. It is called <a href="http://urbangiraffe.com/plugins/drain-hole/">Drain Hole</a>. This is a pretty spiffy plugin. It allows you to create different &#8220;holes&#8221; or folders to contain downloads. These folders can have different permissions assigned to them. The individual files can be versioned, although the file name appears to need to be the same. You can then use tags on your page to reference the files. One of the really interesting things is that it makes use of templates for those tags. So you can create a template to display a file, or list of files. You use a different set of tags in these templates that reside inside your own theme folder. I like this idea. I am already trying to think of ways to use it ouside of this plugin.</p>
<p>While playing with this plugin I discovered a bug. I couldn&#8217;t update/save the attributes for a file. I was trying to assign a custom icon, and the display name, but nothing would stick. Hunting this down I found out why php debugging, especially ajax calls really sucks. Anyway, I finally discovered what the issue was; a variable that was not initialized. It must be the particular combination of WordPress (2.7), PHP(4.5), and MySql(5.0) that I was playing with, because I can&#8217;t belive that this doesn&#8217;t work for everyone that uses this plugin.</p>
<p>Turns out that the developer has a tracker, so I created a <a href="http://urbangiraffe.com/tracker/issues/show/369">bug with my solution</a>. I am going to be moving to this from the Download Manager plugin I was using.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyberward.net/blog/2009/01/found-new-file-download-manager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Integrating with WordPress</title>
		<link>http://www.cyberward.net/blog/2008/12/integrating-with-wordpress/</link>
		<comments>http://www.cyberward.net/blog/2008/12/integrating-with-wordpress/#comments</comments>
		<pubDate>Mon, 15 Dec 2008 05:39:36 +0000</pubDate>
		<dc:creator>Chris Ward</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[zenphoto]]></category>

		<guid isPermaLink="false">http://www.cyberward.net/blog/?p=280</guid>
		<description><![CDATA[I probably should be working on the 2.7 upgrade, but instead I started looking at photo gallery options other than Gallery2. It is just too slow. There is too much of it I don&#8217;t use as well. I think I have settled on zenphoto. It seems to work pretty well, with out the feature creep [...]]]></description>
			<content:encoded><![CDATA[<p>I probably should be working on the 2.7 upgrade, but instead I started looking at photo gallery options other than <a href="http://gallery.menalto.com/">Gallery2</a>. It is just too slow. There is too much of it I don&#8217;t use as well. I think I have settled on <a href="http://www.zenphoto.org/">zenphoto</a>. It seems to work pretty well, with out the feature creep that Gallery2 has. I figured I would convert the <a href="http://annieandchris.net">annieandchris.net</a> site to that.</p>
<p>It got me thinking though about how I might integrate it with WordPress. After seeing the tantan <a href="http://tantannoodles.com/toolkit/photo-album/">Flickr</a> plugin, and how well it works, I figured that there must be a plugin for zenphoto. Well, no. Not really. There are a couple that will let you show pictures in the sidebar. And Trung&#8217;s <a href="http://trunghuynh.com/2008/07/trung_presszen-094/">presszen</a> looked promising, but it didn&#8217;t seem to work. I started taking a look at the code for the tantan Flicker plugin, and saw how he was able to take control of a URI to insert his own code in with the current wordpress theme. I stripped out the relevant stuff, and got it to work. This is the code.</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p280code2'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2802"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
</pre></td><td class="code" id="p280code2"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> parse_query<span style="color: #009900;">&#40;</span><span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;</span><span style="color: #000088;">$query</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$query</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>is_404 <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$query</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>did_permalink <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">function</span> request<span style="color: #009900;">&#40;</span><span style="color: #000088;">$query_vars</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$query_vars</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'error'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #000088;">$query_vars</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> cww_template<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	get_header<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'
&lt;div id=&quot;content&quot; class=&quot;narrowcolumn&quot;&gt;
&lt;h2&gt;Zen Integration&lt;/h2&gt;
&lt;/div&gt;
'</span><span style="color: #339933;">;</span>
	get_footer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<a href="http://www.php.net/exit"><span style="color: #990000;">exit</span></a><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;CWW_ZEN_BASEURL&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;/blog/test&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/strpos"><span style="color: #990000;">strpos</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_URI'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> CWW_ZEN_BASEURL<span style="color: #009900;">&#41;</span> <span style="color: #339933;">===</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    status_header<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">200</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    remove_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'template_redirect'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'redirect_canonical'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'request'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'request'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'parse_query'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'parse_query'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'parse_request'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'parse_query'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'template_redirect'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'cww_template'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/strpos"><span style="color: #990000;">strpos</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_URI'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'/'</span><span style="color: #339933;">,</span> CWW_ZEN_BASEURL<span style="color: #009900;">&#41;</span> <span style="color: #339933;">===</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <a href="http://www.php.net/header"><span style="color: #990000;">header</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'location: http://'</span><span style="color: #339933;">.</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'HTTP_HOST'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_URI'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'/'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <a href="http://www.php.net/exit"><span style="color: #990000;">exit</span></a><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>I think that I may take a go at pulling in the zenphoto albums in a plugin, and see how it goes. I like how you create plugins in WordPress, and it is kind of fun poking around. It was frustrating for the longest time when I was trying to get it going, and I was getting the body of the blog showing up at the bottom. I finally realized that I needed to &#8216;exit&#8217; the script to prevent the loop from happening. You would think you could override a WordPress function to prevent that instead.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cyberward.net/blog/2008/12/integrating-with-wordpress/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

