<?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>Aytemir.com &#187; url</title>
	<atom:link href="http://aytemir.com/tag/url/feed/" rel="self" type="application/rss+xml" />
	<link>http://aytemir.com</link>
	<description>Creative Daydreaming</description>
	<lastBuildDate>Wed, 09 Jun 2010 08:28:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>TDO Mini Forms: upload path/URL mini hack</title>
		<link>http://aytemir.com/tdo-mini-forms-upload-pathurl-mini-hack/</link>
		<comments>http://aytemir.com/tdo-mini-forms-upload-pathurl-mini-hack/#comments</comments>
		<pubDate>Fri, 22 May 2009 14:26:34 +0000</pubDate>
		<dc:creator>Tschai</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[develop]]></category>
		<category><![CDATA[fan-tas-tic]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[url]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://aytemir.com/?p=965</guid>
		<description><![CDATA[The TDO Mini Forms WordPress Plugin is simply one of these plugins you&#8217;ll end up using, when you&#8217;ll be using WordPress for more than &#8216;just another blog&#8217;. For my upcoming project I was looking for a fully customizable end user form and after having tried a bunch, TDO mini forms was simply the best. I [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://aytemir.com/wp-content/uploads/2009/05/hack2.jpg" alt="" /></p>
<p>The <a href="http://thedeadone.net/download/tdo-mini-forms-wordpress-plugin/">TDO Mini Forms WordPress Plugin</a> is simply one of these plugins you&#8217;ll end up using, when you&#8217;ll be using WordPress for more than &#8216;just another blog&#8217;.</p>
<p>For my upcoming project I was looking for a fully customizable end user form and after having tried a bunch, TDO mini forms was simply the best.<br />
I still don&#8217;t understand why it is called &#8216;mini&#8217; because it has a ton of options and almost all of them very useful.<br />
<span id="more-965"></span><br />
The only issue I got with it was with the file/image upload widget: It was putting the uploaded files in  <strong>wp-content/uploads/subfolder</strong> where I wanted them in <strong>wp-content/uploads/year/month</strong>.</p>
<p>Although there are usefull hints in <a href="http://thedeadone.net/forum/?cat=8">the support forum</a>, they wont get you there exactly. So here is the hack to solve this issue:<br />
In the plugins folder replace line 552 (up until the line &#8220;// store info about files on post&#8221;) in file <strong>tdomf-upload-functions.php</strong> from this</p>
<pre class="brush: php">
$postdir = $options[&#039;path&#039;].DIRECTORY_SEPARATOR.$post_ID;
</pre>
<p>to this</p>
<pre class="brush: php">
$yearID=date(&quot;Y&quot;);
$monthID=date(&quot;m&quot;);

$postdir = $options[&#039;path&#039;].$yearID.DIRECTORY_SEPARATOR.$monthID;
$postdir2 = $options[&#039;url&#039;].$yearID.&quot;/&quot;.$monthID;

tdomf_recursive_mkdir($postdir,TDOMF_UPLOAD_PERMS);
tdomf_recursive_mkdir($postdir2,TDOMF_UPLOAD_PERMS);
$newpath = $postdir.DIRECTORY_SEPARATOR.$theirfiles[$i][&#039;name&#039;];
$newpath2 = $postdir2.DIRECTORY_SEPARATOR.$theirfiles[$i][&#039;name&#039;];

if(rename($theirfiles[$i][&#039;path&#039;], $newpath)) {

        $newpath = realpath($newpath);
        $newpath2 = realpath($newpath2);
</pre>
<p>Note that a variable 2 is added, just after the original.<br />
Also note, that I&#8217;ve replaced the variable DIRECTORY_SEPARATOR in $postdir2 into &#8220;/&#8221;, cause it was giving me headaches.</p>
<p>In line 564 in the same file add just beneath this line</p>
<pre class="brush: php">
add_post_meta($post_ID,TDOMF_KEY_DOWNLOAD_PATH.$i, $wpdb-&gt;escape($newpath),true);
</pre>
<p>the following</p>
<pre class="brush: php">
add_post_meta($post_ID,ftt_path,$postdir2,true);
</pre>
<p>Make sure you do use $postdir2 here again. Will be using <strong>ftt_path</strong> to retrieve the stored URL, so remember what name you give it here.</p>
<p>And now we&#8217;ll be calling the uploaded files via the URL like this</p>
<pre class="brush: php">
get_post_meta($post-&gt;ID, &quot;ftt_path&quot;,true);
</pre>
<p>instead of this, which will give you only the absolute path</p>
<pre class="brush: php">
get_post_meta($post-&gt;ID, &quot;_tdomf_download_name_0&quot;,true);
</pre>
<p>This way it&#8217;s not even necessary to check &#8216;Organize my uploads into month- and year-based folders&#8217; at your Miscellaneous Settings.</p>
<p>Hope this helps others out also. If you have any other issues with TDO Mini forms, please refer to the <a href="http://thedeadone.net/forum/?cat=8">original support form</a>.</p>
<h3>UPGRADE warnings</h3>
<p>Remember that automatically upgrading the plugin to the newest version will overwrite the hacks above&#8230;so make sure to actually backup before you upgrade!</p>
]]></content:encoded>
			<wfw:commentRss>http://aytemir.com/tdo-mini-forms-upload-pathurl-mini-hack/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>Need a short URL service? Try WordPress!</title>
		<link>http://aytemir.com/need-a-short-url-service-try-wordpress/</link>
		<comments>http://aytemir.com/need-a-short-url-service-try-wordpress/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 19:12:00 +0000</pubDate>
		<dc:creator>Tschai</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[develop]]></category>
		<category><![CDATA[short url]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">http://aytemir.com/?p=939</guid>
		<description><![CDATA[Although I&#8217;m still not &#8216;tweetin&#8217; I do see it&#8217;s potential for promoting the fan-tas-tic project, once it&#8217;s finished. And in my search to do this I stumbled across this article: 10 Exceptional WordPress Hacks. And I noticed a remark in the comments section (#12) about using the built-in default WordPress URL-structure instead of TinyUrl or [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://aytemir.com/wp-content/uploads/2009/04/ShortUrl2.png" alt="Twitter logo courtesy of http://www.hongkiat.com" /><br />
Although I&#8217;m still not &#8216;tweetin&#8217; I do see it&#8217;s potential for promoting the fan-tas-tic project, once it&#8217;s finished.<br />
And in my search to do this I stumbled across this article: <a href="http://www.smashingmagazine.com/2009/04/15/10-exceptional-wordpress-hacks/">10 Exceptional WordPress Hacks</a>. And I noticed a remark in the comments section (#12) about using the built-in default WordPress URL-structure instead of TinyUrl or any other third party service.<br />
I was triggered immediately (comment #25) because I am considering to implement a &#8216;(re)tweet this&#8217; feature and my options until now were <a href="http://www.wprecipes.com/how-to-automatically-provide-tinyurls-for-your-wordpress-blog-posts">automated TinyUrl&#8217;s</a> or a <a href="http://wordpress.org/extend/plugins/short-url-plugin/">ShortUrl plugin</a>.<br />
<span id="more-939"></span><br />
As stated above why not try the default URL of WordPress itself? As long as your own domain is not too long, why not give it a try? After having looked around in codex, the solution seemed very simple:</p>
<pre class="brush: php">&lt;?php echo get_bloginfo(&#039;url&#039;).&quot;/?p=&quot;.$post-&gt;ID; ?&gt;</pre>
<p>For example http://www.fan-tas-tic.com/?p=200 is short enough without the disadvantages of a third party services and your own domain is indexed/searched in twitter and other tools. And you still keep your fancy permalinks. Win, win, win!</p>
<p>So looking for a short Url service for your WordPress blog; why not use WordPress itself?<br />
Now isn&#8217;t this something to tweet about!?</p>
]]></content:encoded>
			<wfw:commentRss>http://aytemir.com/need-a-short-url-service-try-wordpress/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
