<?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: v0.12.7 of TDO Mini Forms just released</title>
	<atom:link href="http://thedeadone.net/blog/v0127-of-tdo-mini-forms-just-released/feed/" rel="self" type="application/rss+xml" />
	<link>http://thedeadone.net/blog/v0127-of-tdo-mini-forms-just-released/</link>
	<description></description>
	<lastBuildDate>Mon, 26 Mar 2012 01:24:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: Ionut</title>
		<link>http://thedeadone.net/blog/v0127-of-tdo-mini-forms-just-released/comment-page-1/#comment-196248</link>
		<dc:creator>Ionut</dc:creator>
		<pubDate>Sat, 28 May 2011 11:02:39 +0000</pubDate>
		<guid isPermaLink="false">http://thedeadone.net/?p=656#comment-196248</guid>
		<description>Hi, thank you for this one, it&#039;s working!

I also tried to insert in posts the uploaded images in &quot;large&quot; size. 

I&#039;ve done that with a small change in tdomf-upload-functions.php on line 799

from this:                                $thumburi = $options[&#039;url&#039;].&quot;/$post_ID/&quot;.$attachment_metadata[&#039;sizes&#039;][&#039;thumbnail&#039;][&#039;file&#039;];

to:

Hi, thank you for this one, it&#039;s working!

I also tried to insert in posts the uploaded images in &quot;large&quot; size. 

I&#039;ve done that with a smoall change in tdomf-upload-functions.php on line 799

                                $thumburi = $options[&#039;url&#039;].&quot;/$post_ID/&quot;.$attachment_metadata[&#039;sizes&#039;][&#039;large&#039;][&#039;file&#039;];


But when the uploade file size is smaller than the large size i get a broken link like src=&quot;www.site.com/post_id/&quot; 

Any ideas how to tell it to fall back and display the original file or the thumbnail?</description>
		<content:encoded><![CDATA[<p><!-- google_ad_section_start --><br />
<!--INFOLINKS_ON--></p>
<p>Hi, thank you for this one, it&#8217;s working!</p>
<p>I also tried to insert in posts the uploaded images in &#8220;large&#8221; size. </p>
<p>I&#8217;ve done that with a small change in tdomf-upload-functions.php on line 799</p>
<p>from this:                                $thumburi = $options['url'].&#8221;/$post_ID/&#8221;.$attachment_metadata['sizes']['thumbnail']['file'];</p>
<p>to:</p>
<p>Hi, thank you for this one, it&#8217;s working!</p>
<p>I also tried to insert in posts the uploaded images in &#8220;large&#8221; size. </p>
<p>I&#8217;ve done that with a smoall change in tdomf-upload-functions.php on line 799</p>
<p>                                $thumburi = $options['url'].&#8221;/$post_ID/&#8221;.$attachment_metadata['sizes']['large']['file'];</p>
<p>But when the uploade file size is smaller than the large size i get a broken link like src=&#8221;www.site.com/post_id/&#8221; </p>
<p>Any ideas how to tell it to fall back and display the original file or the thumbnail?<br />
<!--INFOLINKS_OFF--><br />
<!-- google_ad_section_end --></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bery</title>
		<link>http://thedeadone.net/blog/v0127-of-tdo-mini-forms-just-released/comment-page-1/#comment-196202</link>
		<dc:creator>bery</dc:creator>
		<pubDate>Fri, 29 Apr 2011 14:04:22 +0000</pubDate>
		<guid isPermaLink="false">http://thedeadone.net/?p=656#comment-196202</guid>
		<description>solution tested with wordpress 3.1.1 and TDO 0.13.9 (build 56),

in tdomf-upload-inline.php, on line 179 replace :

$upload_file_name = $_FILES[&quot;uploadfile&quot;.$form_id.&#039;_&#039;.$index.&quot;_&quot;.$i][&#039;name&#039;];

with

$upload_file_name = sanitize_file_name($_FILES[&quot;uploadfile&quot;.$form_id.&#039;_&#039;.$index.&quot;_&quot;.$i][&#039;name&#039;]);


using the wordpress function sanitize_file_name() the filename get&#039;s cleaned, you see it directly after the file is uploaded and the form still submitted and everything goes perfect, keep up the good work with this plug, it&#039;s awesome :D

http://codex.wordpress.org/Function_Reference/sanitize_file_name</description>
		<content:encoded><![CDATA[<p><!-- google_ad_section_start --><br />
<!--INFOLINKS_ON--></p>
<p>solution tested with wordpress 3.1.1 and TDO 0.13.9 (build 56),</p>
<p>in tdomf-upload-inline.php, on line 179 replace :</p>
<p>$upload_file_name = $_FILES["uploadfile".$form_id.'_'.$index."_".$i]['name'];</p>
<p>with</p>
<p>$upload_file_name = sanitize_file_name($_FILES["uploadfile".$form_id.'_'.$index."_".$i]['name']);</p>
<p>using the wordpress function sanitize_file_name() the filename get&#8217;s cleaned, you see it directly after the file is uploaded and the form still submitted and everything goes perfect, keep up the good work with this plug, it&#8217;s awesome <img src='http://thedeadone.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><a href="http://codex.wordpress.org/Function_Reference/sanitize_file_name" rel="nofollow">http://codex.wordpress.org/Function_Reference/sanitize_file_name</a><br />
<!--INFOLINKS_OFF--><br />
<!-- google_ad_section_end --></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ionut</title>
		<link>http://thedeadone.net/blog/v0127-of-tdo-mini-forms-just-released/comment-page-1/#comment-182174</link>
		<dc:creator>Ionut</dc:creator>
		<pubDate>Mon, 07 Dec 2009 02:31:42 +0000</pubDate>
		<guid isPermaLink="false">http://thedeadone.net/?p=656#comment-182174</guid>
		<description>Hi Mark, many Wordpress plugins created to resize or manage images don&#039;t take in consideration filenames with spaces. I really think this compatibility issue must be resolved for TDO Mini Forms and not asking all other authors to take in consideration images with spaces in filename. Please try to fix this in your next releases</description>
		<content:encoded><![CDATA[<p><!-- google_ad_section_start --><br />
<!--INFOLINKS_ON--></p>
<p>Hi Mark, many WordPress plugins created to resize or manage images don&#8217;t take in consideration filenames with spaces. I really think this compatibility issue must be resolved for TDO Mini Forms and not asking all other authors to take in consideration images with spaces in filename. Please try to fix this in your next releases<br />
<!--INFOLINKS_OFF--><br />
<!-- google_ad_section_end --></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iwtw</title>
		<link>http://thedeadone.net/blog/v0127-of-tdo-mini-forms-just-released/comment-page-1/#comment-181934</link>
		<dc:creator>iwtw</dc:creator>
		<pubDate>Tue, 18 Aug 2009 18:07:35 +0000</pubDate>
		<guid isPermaLink="false">http://thedeadone.net/?p=656#comment-181934</guid>
		<description>I think it just needs something like this adding in the
tdomf-upload-inline.php around line 184 but i carnt get it to work :( 

Really need it as it breaks my site when people upload with whitespace in the filename :(

//strip the whitespace
$upload_file_name = $_FILES[&#039;file&#039;][&#039;name&#039;];
$upload_file_name = preg_replace(&quot;/[^a-zA-Z0-9]/&quot;, &quot;&quot;, $upload_file_name);</description>
		<content:encoded><![CDATA[<p><!-- google_ad_section_start --><br />
<!--INFOLINKS_ON--></p>
<p>I think it just needs something like this adding in the<br />
tdomf-upload-inline.php around line 184 but i carnt get it to work <img src='http://thedeadone.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  </p>
<p>Really need it as it breaks my site when people upload with whitespace in the filename <img src='http://thedeadone.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>//strip the whitespace<br />
$upload_file_name = $_FILES['file']['name'];<br />
$upload_file_name = preg_replace(&#8220;/[^a-zA-Z0-9]/&#8221;, &#8220;&#8221;, $upload_file_name);<br />
<!--INFOLINKS_OFF--><br />
<!-- google_ad_section_end --></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iwtw</title>
		<link>http://thedeadone.net/blog/v0127-of-tdo-mini-forms-just-released/comment-page-1/#comment-181927</link>
		<dc:creator>iwtw</dc:creator>
		<pubDate>Wed, 12 Aug 2009 20:38:27 +0000</pubDate>
		<guid isPermaLink="false">http://thedeadone.net/?p=656#comment-181927</guid>
		<description>Actually the blank spaces stop TDO Mini Forms template functions from showing the image. If you have a custom loop this is a huge problem!

Is there any way of stripping the spaces or replacing them with &#039;-&#039;</description>
		<content:encoded><![CDATA[<p><!-- google_ad_section_start --><br />
<!--INFOLINKS_ON--></p>
<p>Actually the blank spaces stop TDO Mini Forms template functions from showing the image. If you have a custom loop this is a huge problem!</p>
<p>Is there any way of stripping the spaces or replacing them with &#8216;-&#8217;<br />
<!--INFOLINKS_OFF--><br />
<!-- google_ad_section_end --></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Cunningham</title>
		<link>http://thedeadone.net/blog/v0127-of-tdo-mini-forms-just-released/comment-page-1/#comment-181618</link>
		<dc:creator>Mark Cunningham</dc:creator>
		<pubDate>Fri, 13 Mar 2009 16:46:58 +0000</pubDate>
		<guid isPermaLink="false">http://thedeadone.net/?p=656#comment-181618</guid>
		<description>Would this not be a problem with phpThumb not supporting a valid filename? Filenames can have spaces and while it&#039;s nice that Wordpress sanatizes it a bit, it&#039;s still a valid name. Has the author of phpThumb said anything about it?

I don&#039;t think I&#039;ll get such a change into the next release, a lot of stuff is changing already.</description>
		<content:encoded><![CDATA[<p><!-- google_ad_section_start --><br />
<!--INFOLINKS_ON--></p>
<p>Would this not be a problem with phpThumb not supporting a valid filename? Filenames can have spaces and while it&#8217;s nice that WordPress sanatizes it a bit, it&#8217;s still a valid name. Has the author of phpThumb said anything about it?</p>
<p>I don&#8217;t think I&#8217;ll get such a change into the next release, a lot of stuff is changing already.<br />
<!--INFOLINKS_OFF--><br />
<!-- google_ad_section_end --></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ionut</title>
		<link>http://thedeadone.net/blog/v0127-of-tdo-mini-forms-just-released/comment-page-1/#comment-181601</link>
		<dc:creator>Ionut</dc:creator>
		<pubDate>Sat, 07 Mar 2009 05:38:19 +0000</pubDate>
		<guid isPermaLink="false">http://thedeadone.net/?p=656#comment-181601</guid>
		<description>Hi, I want to report maybe a small bug for most of you but for me is very annoying. When image files are uploaded with spaces in their names TDO Mini Forms does not change the space with &quot;-&quot; as Wordpress does. In consequence, these files cannot be used by plugins as phpThumb or Post Thumb for Wordpress with the functionality to resize the image to the dimensions want. Please repair this in your next version. Thank you!</description>
		<content:encoded><![CDATA[<p><!-- google_ad_section_start --><br />
<!--INFOLINKS_ON--></p>
<p>Hi, I want to report maybe a small bug for most of you but for me is very annoying. When image files are uploaded with spaces in their names TDO Mini Forms does not change the space with &#8220;-&#8221; as WordPress does. In consequence, these files cannot be used by plugins as phpThumb or Post Thumb for WordPress with the functionality to resize the image to the dimensions want. Please repair this in your next version. Thank you!<br />
<!--INFOLINKS_OFF--><br />
<!-- google_ad_section_end --></p>
]]></content:encoded>
	</item>
</channel>
</rss>

