<?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 for Code is poetry</title>
	<atom:link href="http://savitasoni.com/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://savitasoni.com</link>
	<description>about all I have done and doing ....</description>
	<lastBuildDate>Sat, 18 Feb 2012 01:16:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on setting ajax response to a variable by a</title>
		<link>http://savitasoni.com/setting-ajax-response-to-a-variable/comment-page-1#comment-542</link>
		<dc:creator>a</dc:creator>
		<pubDate>Sat, 18 Feb 2012 01:16:15 +0000</pubDate>
		<guid isPermaLink="false">http://savitasoni.com/?p=5047#comment-542</guid>
		<description>Using async:false is bad practice. It locks up the UI! Use a callback function instead and do whatever you want do with the result in that function.</description>
		<content:encoded><![CDATA[<p>Using async:false is bad practice. It locks up the UI! Use a callback function instead and do whatever you want do with the result in that function.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Code snipped: Image uploading inside your plugin using wordpress file uploader by savitas</title>
		<link>http://savitasoni.com/code-snipped-image-uploading-inside-your-plugin-using-wordpress-file-uploader/comment-page-1#comment-534</link>
		<dc:creator>savitas</dc:creator>
		<pubDate>Wed, 25 Jan 2012 07:22:16 +0000</pubDate>
		<guid isPermaLink="false">http://savitasoni.com/?p=5257#comment-534</guid>
		<description>May be you are using wordpress 3.3 and when I had written this code button id was what I have used, so it was working that time. 

Thanks for pointing I will add a note in the post for upgraded version.</description>
		<content:encoded><![CDATA[<p>May be you are using wordpress 3.3 and when I had written this code button id was what I have used, so it was working that time. </p>
<p>Thanks for pointing I will add a note in the post for upgraded version.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Code snipped: Image uploading inside your plugin using wordpress file uploader by mohan</title>
		<link>http://savitasoni.com/code-snipped-image-uploading-inside-your-plugin-using-wordpress-file-uploader/comment-page-1#comment-533</link>
		<dc:creator>mohan</dc:creator>
		<pubDate>Wed, 25 Jan 2012 07:15:50 +0000</pubDate>
		<guid isPermaLink="false">http://savitasoni.com/?p=5257#comment-533</guid>
		<description>Hi, 
now uploading thickbox opening well, But you have a mistake in your code ...
you have a button like this


and javascript code like this 
jQuery(&#039;#upload_image_button&#039;).click(function() 

the id of button is not same . 
that is why i have to face the problem . 


Now its working fine 
thank you</description>
		<content:encoded><![CDATA[<p>Hi,<br />
now uploading thickbox opening well, But you have a mistake in your code &#8230;<br />
you have a button like this</p>
<p>and javascript code like this<br />
jQuery(&#8216;#upload_image_button&#8217;).click(function() </p>
<p>the id of button is not same .<br />
that is why i have to face the problem . </p>
<p>Now its working fine<br />
thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Code snipped: Image uploading inside your plugin using wordpress file uploader by savitas</title>
		<link>http://savitasoni.com/code-snipped-image-uploading-inside-your-plugin-using-wordpress-file-uploader/comment-page-1#comment-532</link>
		<dc:creator>savitas</dc:creator>
		<pubDate>Wed, 25 Jan 2012 07:10:47 +0000</pubDate>
		<guid isPermaLink="false">http://savitasoni.com/?p=5257#comment-532</guid>
		<description>What exactly is not working in the above code. I can&#039;t see any &lt;script&gt; tag in your plugin function code.</description>
		<content:encoded><![CDATA[<p>What exactly is not working in the above code. I can&#8217;t see any <script> tag in your plugin function code.</script></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Code snipped: Image uploading inside your plugin using wordpress file uploader by mohan</title>
		<link>http://savitasoni.com/code-snipped-image-uploading-inside-your-plugin-using-wordpress-file-uploader/comment-page-1#comment-531</link>
		<dc:creator>mohan</dc:creator>
		<pubDate>Wed, 25 Jan 2012 07:04:49 +0000</pubDate>
		<guid isPermaLink="false">http://savitasoni.com/?p=5257#comment-531</guid>
		<description>I am using your code in my functions.php file, not in any plugin. 
First of all i have create a new option for my theme using this code 

add_action(&#039;admin_menu&#039;, &#039;my_plugin_menu&#039;);


function my_plugin_menu() {
	add_theme_page(&#039;My Plugin Theme&#039;, &#039;My Theme options&#039;, &#039;administrator&#039;, &#039;my-unique-identifier&#039;, &#039;my_plugin_function&#039;);
	wp_enqueue_script(&quot;jquery&quot;);
	wp_enqueue_script(&#039;media-upload&#039;);
	wp_enqueue_script(&#039;thickbox&#039;);
	wp_enqueue_style(&#039;thickbox&#039;);
	
}
function my_plugin_function(){


	?&gt;
		
		
		
			jQuery(&#039;#upload_image_button&#039;).click(function() {
				formfield = jQuery(&#039;#company_logo&#039;).attr(&#039;name&#039;);
				tb_show(&#039;&#039;, &#039;media-upload.php?type=image&amp;TB_iframe=true&#039;);
				return false;
			});
			
			window.send_to_editor = function(html) {
				imgurl = jQuery(&#039;img&#039;,html).attr(&#039;src&#039;);
				jQuery(&#039;#company_logo&#039;).val(imgurl);
				tb_remove();
			}
		
	

} 

but this is not working ...
please help me 
Thanks</description>
		<content:encoded><![CDATA[<p>I am using your code in my functions.php file, not in any plugin.<br />
First of all i have create a new option for my theme using this code </p>
<p>add_action(&#8216;admin_menu&#8217;, &#8216;my_plugin_menu&#8217;);</p>
<p>function my_plugin_menu() {<br />
	add_theme_page(&#8216;My Plugin Theme&#8217;, &#8216;My Theme options&#8217;, &#8216;administrator&#8217;, &#8216;my-unique-identifier&#8217;, &#8216;my_plugin_function&#8217;);<br />
	wp_enqueue_script(&#8220;jquery&#8221;);<br />
	wp_enqueue_script(&#8216;media-upload&#8217;);<br />
	wp_enqueue_script(&#8216;thickbox&#8217;);<br />
	wp_enqueue_style(&#8216;thickbox&#8217;);</p>
<p>}<br />
function my_plugin_function(){</p>
<p>	?&gt;</p>
<p>			jQuery(&#8216;#upload_image_button&#8217;).click(function() {<br />
				formfield = jQuery(&#8216;#company_logo&#8217;).attr(&#8216;name&#8217;);<br />
				tb_show(&#8221;, &#8216;media-upload.php?type=image&amp;TB_iframe=true&#8217;);<br />
				return false;<br />
			});</p>
<p>			window.send_to_editor = function(html) {<br />
				imgurl = jQuery(&#8216;img&#8217;,html).attr(&#8216;src&#8217;);<br />
				jQuery(&#8216;#company_logo&#8217;).val(imgurl);<br />
				tb_remove();<br />
			}</p>
<p>} </p>
<p>but this is not working &#8230;<br />
please help me<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Code snipped: Image uploading inside your plugin using wordpress file uploader by savitas</title>
		<link>http://savitasoni.com/code-snipped-image-uploading-inside-your-plugin-using-wordpress-file-uploader/comment-page-1#comment-529</link>
		<dc:creator>savitas</dc:creator>
		<pubDate>Tue, 24 Jan 2012 09:28:19 +0000</pubDate>
		<guid isPermaLink="false">http://savitasoni.com/?p=5257#comment-529</guid>
		<description>Below function return with html, id, caption, title, url etc
function image_to_editor($html, $id, $caption, $title, $align, $url, $size, $alt)
{
update_option(&#039;company_logo_id&#039;, $id);
return $html;
}
So I think you can use url part if required.</description>
		<content:encoded><![CDATA[<p>Below function return with html, id, caption, title, url etc<br />
function image_to_editor($html, $id, $caption, $title, $align, $url, $size, $alt)<br />
{<br />
update_option(&#8216;company_logo_id&#8217;, $id);<br />
return $html;<br />
}<br />
So I think you can use url part if required.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Code snipped: Image uploading inside your plugin using wordpress file uploader by Sergio</title>
		<link>http://savitasoni.com/code-snipped-image-uploading-inside-your-plugin-using-wordpress-file-uploader/comment-page-1#comment-528</link>
		<dc:creator>Sergio</dc:creator>
		<pubDate>Tue, 24 Jan 2012 09:22:16 +0000</pubDate>
		<guid isPermaLink="false">http://savitasoni.com/?p=5257#comment-528</guid>
		<description>Sorry, the input tag was stripped from my previous post. I was talking about input type=file</description>
		<content:encoded><![CDATA[<p>Sorry, the input tag was stripped from my previous post. I was talking about input type=file</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Code snipped: Image uploading inside your plugin using wordpress file uploader by Sergio</title>
		<link>http://savitasoni.com/code-snipped-image-uploading-inside-your-plugin-using-wordpress-file-uploader/comment-page-1#comment-527</link>
		<dc:creator>Sergio</dc:creator>
		<pubDate>Tue, 24 Jan 2012 09:21:19 +0000</pubDate>
		<guid isPermaLink="false">http://savitasoni.com/?p=5257#comment-527</guid>
		<description>Thanks for reply.
What about uploading an image file from user&#039;s PC using  to Wordpress&#039; gallery? If it&#039;s possible, the script could return a link to uploaded image so I can wrap it and send to editor.</description>
		<content:encoded><![CDATA[<p>Thanks for reply.<br />
What about uploading an image file from user&#8217;s PC using  to WordPress&#8217; gallery? If it&#8217;s possible, the script could return a link to uploaded image so I can wrap it and send to editor.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Code snipped: Image uploading inside your plugin using wordpress file uploader by savitas</title>
		<link>http://savitasoni.com/code-snipped-image-uploading-inside-your-plugin-using-wordpress-file-uploader/comment-page-1#comment-526</link>
		<dc:creator>savitas</dc:creator>
		<pubDate>Tue, 24 Jan 2012 09:04:38 +0000</pubDate>
		<guid isPermaLink="false">http://savitasoni.com/?p=5257#comment-526</guid>
		<description>No I don&#039;t think so its possible.</description>
		<content:encoded><![CDATA[<p>No I don&#8217;t think so its possible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Code snipped: Image uploading inside your plugin using wordpress file uploader by Sergio</title>
		<link>http://savitasoni.com/code-snipped-image-uploading-inside-your-plugin-using-wordpress-file-uploader/comment-page-1#comment-525</link>
		<dc:creator>Sergio</dc:creator>
		<pubDate>Tue, 24 Jan 2012 08:56:53 +0000</pubDate>
		<guid isPermaLink="false">http://savitasoni.com/?p=5257#comment-525</guid>
		<description>Is there any way to load image uploading form whithout overlay? Just inside current document&#039;s body for example.</description>
		<content:encoded><![CDATA[<p>Is there any way to load image uploading form whithout overlay? Just inside current document&#8217;s body for example.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

