<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: WordPress: adding a custom option box and developing file upload plugin</title>
	<atom:link href="http://www.tanzilo.com/2009/01/15/wordpress-adding-a-custom-option-box-and-developing-file-upload-plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tanzilo.com/2009/01/15/wordpress-adding-a-custom-option-box-and-developing-file-upload-plugin/</link>
	<description>Talks on Web Technology and Better Product Development</description>
	<lastBuildDate>Mon, 06 Feb 2012 02:05:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Bohdan</title>
		<link>http://www.tanzilo.com/2009/01/15/wordpress-adding-a-custom-option-box-and-developing-file-upload-plugin/comment-page-1/#comment-880</link>
		<dc:creator>Bohdan</dc:creator>
		<pubDate>Sun, 14 Aug 2011 18:44:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.tanzilo.com/?p=70#comment-880</guid>
		<description>Thank you! :)</description>
		<content:encoded><![CDATA[<p>Thank you! <img src='http://www.tanzilo.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sony</title>
		<link>http://www.tanzilo.com/2009/01/15/wordpress-adding-a-custom-option-box-and-developing-file-upload-plugin/comment-page-1/#comment-767</link>
		<dc:creator>sony</dc:creator>
		<pubDate>Mon, 22 Nov 2010 18:11:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.tanzilo.com/?p=70#comment-767</guid>
		<description>I written the detail and simple code to upload file through add_meta_box function. check the following article.
http://wordpressapi.com/2010/11/22/file-upload-with-add_meta_box-or-custom_post_type-in-wordpress/</description>
		<content:encoded><![CDATA[<p>I written the detail and simple code to upload file through add_meta_box function. check the following article.<br />
<a href="http://wordpressapi.com/2010/11/22/file-upload-with-add_meta_box-or-custom_post_type-in-wordpress/" rel="nofollow">http://wordpressapi.com/2010/11/22/file-upload-with-add_meta_box-or-custom_post_type-in-wordpress/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jarrod</title>
		<link>http://www.tanzilo.com/2009/01/15/wordpress-adding-a-custom-option-box-and-developing-file-upload-plugin/comment-page-1/#comment-757</link>
		<dc:creator>Jarrod</dc:creator>
		<pubDate>Tue, 19 Oct 2010 23:31:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.tanzilo.com/?p=70#comment-757</guid>
		<description>Couple things I noticed. In the newest wordpress upgrade, you can add strings to the form code without editing core files. All you need to do is add:
function post_edit_form_tag( ) {
    echo &#039; enctype=&quot;multipart/form-data&quot;&#039;;
}
to your functions.php of your theme.

Also, I am getting the bad directory error that several other people have gotten. I&#039;ve changed the name of the dir to &quot;bag_thumb&quot; and I&#039;ve added the dir to every folder in my site. Still doesn&#039;t work. What am I doing wrong?

Thanks in advance, this plugin is very useful. Cheers.</description>
		<content:encoded><![CDATA[<p>Couple things I noticed. In the newest wordpress upgrade, you can add strings to the form code without editing core files. All you need to do is add:<br />
function post_edit_form_tag( ) {<br />
    echo &#8216; enctype=&#8221;multipart/form-data&#8221;&#8216;;<br />
}<br />
to your functions.php of your theme.</p>
<p>Also, I am getting the bad directory error that several other people have gotten. I&#8217;ve changed the name of the dir to &#8220;bag_thumb&#8221; and I&#8217;ve added the dir to every folder in my site. Still doesn&#8217;t work. What am I doing wrong?</p>
<p>Thanks in advance, this plugin is very useful. Cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prestashop Themes</title>
		<link>http://www.tanzilo.com/2009/01/15/wordpress-adding-a-custom-option-box-and-developing-file-upload-plugin/comment-page-1/#comment-755</link>
		<dc:creator>Prestashop Themes</dc:creator>
		<pubDate>Sat, 25 Sep 2010 00:40:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.tanzilo.com/?p=70#comment-755</guid>
		<description>thanks for sharing it. regards from Indonesia.</description>
		<content:encoded><![CDATA[<p>thanks for sharing it. regards from Indonesia.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rohan Sehgal</title>
		<link>http://www.tanzilo.com/2009/01/15/wordpress-adding-a-custom-option-box-and-developing-file-upload-plugin/comment-page-1/#comment-741</link>
		<dc:creator>Rohan Sehgal</dc:creator>
		<pubDate>Tue, 17 Aug 2010 05:40:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.tanzilo.com/?p=70#comment-741</guid>
		<description>Nice post,

Thanks a lot for sharing this valuable plugin and your ideas. It&#039;s really informative to the wordpress lovers. I am using few lines of your code to develop my own image gallery plugin.

Thanks a  lot......keep posting..
Rohan</description>
		<content:encoded><![CDATA[<p>Nice post,</p>
<p>Thanks a lot for sharing this valuable plugin and your ideas. It&#8217;s really informative to the wordpress lovers. I am using few lines of your code to develop my own image gallery plugin.</p>
<p>Thanks a  lot&#8230;&#8230;keep posting..<br />
Rohan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Ballweg</title>
		<link>http://www.tanzilo.com/2009/01/15/wordpress-adding-a-custom-option-box-and-developing-file-upload-plugin/comment-page-1/#comment-723</link>
		<dc:creator>Jeff Ballweg</dc:creator>
		<pubDate>Thu, 17 Jun 2010 01:02:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.tanzilo.com/?p=70#comment-723</guid>
		<description>1. Definitely the best way to add enctype=”multipart/form-data” is to add it with jQuery. In my case, I made an upload control, that is added to the Post page, and the jQuery is executed there.

2. You don&#039;t need to do all that stuff directly on the database, unless you have a massive need to. Try:
   add_post_meta($post_id, &#039;_your_option_name&#039;, &#039;your option value&#039;)
This will save it as a custom field attached to the post. Retrieve the value with
   get_post_meta($post_id, &#039;_your_option_name&#039;)

3. You might find that hooking &#039;save_post&#039; is going to fire your event twice, which might have an upload error on the second attempt (and, in your method, definitely go through a second series of database transactions) set a global flag and check for it.. eg,
     global $flag =0;
     if($flag == 0) {
        // do you code
        $flag = 1;
     }

Cheers from New Zealand.</description>
		<content:encoded><![CDATA[<p>1. Definitely the best way to add enctype=”multipart/form-data” is to add it with jQuery. In my case, I made an upload control, that is added to the Post page, and the jQuery is executed there.</p>
<p>2. You don&#8217;t need to do all that stuff directly on the database, unless you have a massive need to. Try:<br />
   add_post_meta($post_id, &#8216;_your_option_name&#8217;, &#8216;your option value&#8217;)<br />
This will save it as a custom field attached to the post. Retrieve the value with<br />
   get_post_meta($post_id, &#8216;_your_option_name&#8217;)</p>
<p>3. You might find that hooking &#8216;save_post&#8217; is going to fire your event twice, which might have an upload error on the second attempt (and, in your method, definitely go through a second series of database transactions) set a global flag and check for it.. eg,<br />
     global $flag =0;<br />
     if($flag == 0) {<br />
        // do you code<br />
        $flag = 1;<br />
     }</p>
<p>Cheers from New Zealand.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Jowell</title>
		<link>http://www.tanzilo.com/2009/01/15/wordpress-adding-a-custom-option-box-and-developing-file-upload-plugin/comment-page-1/#comment-717</link>
		<dc:creator>Adam Jowell</dc:creator>
		<pubDate>Wed, 12 May 2010 08:49:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.tanzilo.com/?p=70#comment-717</guid>
		<description>Sorry, did not mean for you to do it. Was wondering if it were possible with the existing script.</description>
		<content:encoded><![CDATA[<p>Sorry, did not mean for you to do it. Was wondering if it were possible with the existing script.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.tanzilo.com/2009/01/15/wordpress-adding-a-custom-option-box-and-developing-file-upload-plugin/comment-page-1/#comment-716</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 12 May 2010 08:47:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.tanzilo.com/?p=70#comment-716</guid>
		<description>@ Adam

May be.
But I am too busy to do that.
Sorry.</description>
		<content:encoded><![CDATA[<p>@ Adam</p>
<p>May be.<br />
But I am too busy to do that.<br />
Sorry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Jowell</title>
		<link>http://www.tanzilo.com/2009/01/15/wordpress-adding-a-custom-option-box-and-developing-file-upload-plugin/comment-page-1/#comment-715</link>
		<dc:creator>Adam Jowell</dc:creator>
		<pubDate>Wed, 12 May 2010 07:53:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.tanzilo.com/?p=70#comment-715</guid>
		<description>Can you make that into a front-end public form??</description>
		<content:encoded><![CDATA[<p>Can you make that into a front-end public form??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://www.tanzilo.com/2009/01/15/wordpress-adding-a-custom-option-box-and-developing-file-upload-plugin/comment-page-1/#comment-707</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Mon, 22 Mar 2010 10:29:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.tanzilo.com/?p=70#comment-707</guid>
		<description>hey guys

love the idea of this plugin but as mentioned above I get this error and don&#039;t know how to fix it:

Warning: opendir(../bag_thumb/) [function.opendir]: failed to open dir: No such file or directory in /home/websitename/public_html/wp-content/plugins/bag-thumb/bag-thumb.php on line 47

Any idea?

Thanks

Andy</description>
		<content:encoded><![CDATA[<p>hey guys</p>
<p>love the idea of this plugin but as mentioned above I get this error and don&#8217;t know how to fix it:</p>
<p>Warning: opendir(../bag_thumb/) [function.opendir]: failed to open dir: No such file or directory in /home/websitename/public_html/wp-content/plugins/bag-thumb/bag-thumb.php on line 47</p>
<p>Any idea?</p>
<p>Thanks</p>
<p>Andy</p>
]]></content:encoded>
	</item>
</channel>
</rss>

