<?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 Plugin Organizer 1.0</title>
	<atom:link href="http://imthi.com/blog/programming/wordpress-plugin-organizer-10.php/feed" rel="self" type="application/rss+xml" />
	<link>http://imthi.com/blog/programming/wordpress-plugin-organizer-10.php</link>
	<description>me and stupid works....!!!</description>
	<lastBuildDate>Sun, 14 Mar 2010 17:46:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: MikeD</title>
		<link>http://imthi.com/blog/programming/wordpress-plugin-organizer-10.php/comment-page-3#comment-34351</link>
		<dc:creator>MikeD</dc:creator>
		<pubDate>Tue, 02 Feb 2010 19:33:17 +0000</pubDate>
		<guid isPermaLink="false">http://imthi.com/blog/77/index.php#comment-34351</guid>
		<description>From what I can see, this plugin doesn&#039;t really work 100% for file renaming.

It does rename the file, but it doesn&#039;t replace all instances of the old file name in the database. Here is what I tried:

1. First, delete all old revisions
2. Pick a file, and rename it using Organizer
3. Look for the old name in the database

The result is that 2 entries in wp_postmeta, and one in wp_posts, are not updated properly.

In wp_postmeta: 
_wp_attached_file contains the old name as part of a file path
_wp_attachment_metadata contains the old name as part of a file path

In wp_posts:
the entry for the post contains the old file name in the title tag; the image itself has been renamed. This one is less of an issue however.

I&#039;m unsure how to do the actual database calls, but it would seem to me that updating all entries in the database is the Right Thing To Do.

Or do I misunderstand something?

Another issue that has arising is that any files renamed with this plugin seem to be ignored by the Regenerate Thumbs plugin.

...Mike</description>
		<content:encoded><![CDATA[<p>From what I can see, this plugin doesn&#8217;t really work 100% for file renaming.</p>
<p>It does rename the file, but it doesn&#8217;t replace all instances of the old file name in the database. Here is what I tried:</p>
<p>1. First, delete all old revisions<br />
2. Pick a file, and rename it using Organizer<br />
3. Look for the old name in the database</p>
<p>The result is that 2 entries in wp_postmeta, and one in wp_posts, are not updated properly.</p>
<p>In wp_postmeta:<br />
_wp_attached_file contains the old name as part of a file path<br />
_wp_attachment_metadata contains the old name as part of a file path</p>
<p>In wp_posts:<br />
the entry for the post contains the old file name in the title tag; the image itself has been renamed. This one is less of an issue however.</p>
<p>I&#8217;m unsure how to do the actual database calls, but it would seem to me that updating all entries in the database is the Right Thing To Do.</p>
<p>Or do I misunderstand something?</p>
<p>Another issue that has arising is that any files renamed with this plugin seem to be ignored by the Regenerate Thumbs plugin.</p>
<p>&#8230;Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Stead</title>
		<link>http://imthi.com/blog/programming/wordpress-plugin-organizer-10.php/comment-page-3#comment-33219</link>
		<dc:creator>Tom Stead</dc:creator>
		<pubDate>Thu, 08 Oct 2009 11:57:21 +0000</pubDate>
		<guid isPermaLink="false">http://imthi.com/blog/77/index.php#comment-33219</guid>
		<description>Is there a search facility available within the organiser plugin??

i.e. is there something extra that can be added to the organiser which gives you the ability to use search queries within the organiser?? Just a question if i were to use a vast library of files

ta</description>
		<content:encoded><![CDATA[<p>Is there a search facility available within the organiser plugin??</p>
<p>i.e. is there something extra that can be added to the organiser which gives you the ability to use search queries within the organiser?? Just a question if i were to use a vast library of files</p>
<p>ta</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Markgt</title>
		<link>http://imthi.com/blog/programming/wordpress-plugin-organizer-10.php/comment-page-3#comment-30484</link>
		<dc:creator>Markgt</dc:creator>
		<pubDate>Wed, 20 May 2009 12:40:04 +0000</pubDate>
		<guid isPermaLink="false">http://imthi.com/blog/77/index.php#comment-30484</guid>
		<description>Robert thank you for that fix - worked perfectly first time!</description>
		<content:encoded><![CDATA[<p>Robert thank you for that fix &#8211; worked perfectly first time!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Neuschul</title>
		<link>http://imthi.com/blog/programming/wordpress-plugin-organizer-10.php/comment-page-3#comment-30444</link>
		<dc:creator>Robert Neuschul</dc:creator>
		<pubDate>Tue, 19 May 2009 00:27:40 +0000</pubDate>
		<guid isPermaLink="false">http://imthi.com/blog/77/index.php#comment-30444</guid>
		<description>&lt;a href=&quot;#comment-30442&quot; rel=&quot;nofollow&quot;&gt;@Robert Neuschul&lt;/a&gt; 
Ignore my previous comments about other problems: I&#039;d inadvertently altered an element of the code which caused problems with file upload sizes and user quotas thereby causing settings on Organizer =&gt; Users to be ignored. Having checked this in the original source all works as expected.</description>
		<content:encoded><![CDATA[<p><a href="#comment-30442" rel="nofollow">@Robert Neuschul</a><br />
Ignore my previous comments about other problems: I&#8217;d inadvertently altered an element of the code which caused problems with file upload sizes and user quotas thereby causing settings on Organizer =&gt; Users to be ignored. Having checked this in the original source all works as expected.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Neuschul</title>
		<link>http://imthi.com/blog/programming/wordpress-plugin-organizer-10.php/comment-page-3#comment-30442</link>
		<dc:creator>Robert Neuschul</dc:creator>
		<pubDate>Mon, 18 May 2009 23:00:08 +0000</pubDate>
		<guid isPermaLink="false">http://imthi.com/blog/77/index.php#comment-30442</guid>
		<description>Getting this plugin to work correctly with WP 2.7.1  The more orthodox fix:

1] if you have already uploaded the plugin then make sure it is not activated.

2] For testing purposes,  ensure that in  WP=&gt;Settings=&gt;Miscellaneous the  &quot;Organize uploads by month/year&quot; option is NOT ticked.

3] locally edit plugin_functions.php and replace all 6 instances of get_settings() with get_options() - these occur at lines 33, 34, 56, 64, 242 and 243.

4] save file and upload the file to the plugin directory.

5] Activate and test: uploads, directory creation, deletions etc etc - if all works as expected and you unchecked the Organize Uploads by year/month option at step 2] above and you need it back again then clean out your  upload directory, deactivate plugin, reset Settings=&gt;Miscellaneous as required and reactivate the plugin, then upload files.

Note for the technical: In Wordpress 2.7.n get_settings() is now deprecated: get_option() works as expected; thereafter the plugin also works as expected as well.

*******************************

There is one other problem associated with this plugin which may or may not affect you: the plugin takes various admin and user settings from the WP options table [you can call a display of these settings directly at /wp-admin/options.php] amongst the settings the plugin calls is the max image file size. 

The plugin appears [wrongly]  to use this max file size as an upper limit for ALL file uploads of any file type and also sets a per-user[role based] quota on the number of files they can upload, and has a further &quot;quirk&quot; in which even administrators are limited to a quota. This is wrong.

If you wish to overcome these limitations then comment out lines 53, 54, 57 &amp; 58 of the plugin_function.php before uploading. Be warned though: doing this gives ALL users the rights to upload an infinite number of files of any size they choose.

I&#039;m going to hack around in the classes and functions to see if I can find out why the user/file handling and quotas are broken like this in 2.7.1 - giving all users unlimited upload powers is dangerous. I suspect it&#039;s just as simple as the get_settings/get_options replacement..</description>
		<content:encoded><![CDATA[<p>Getting this plugin to work correctly with WP 2.7.1  The more orthodox fix:</p>
<p>1] if you have already uploaded the plugin then make sure it is not activated.</p>
<p>2] For testing purposes,  ensure that in  WP=&gt;Settings=&gt;Miscellaneous the  &#8220;Organize uploads by month/year&#8221; option is NOT ticked.</p>
<p>3] locally edit plugin_functions.php and replace all 6 instances of get_settings() with get_options() &#8211; these occur at lines 33, 34, 56, 64, 242 and 243.</p>
<p>4] save file and upload the file to the plugin directory.</p>
<p>5] Activate and test: uploads, directory creation, deletions etc etc &#8211; if all works as expected and you unchecked the Organize Uploads by year/month option at step 2] above and you need it back again then clean out your  upload directory, deactivate plugin, reset Settings=&gt;Miscellaneous as required and reactivate the plugin, then upload files.</p>
<p>Note for the technical: In Wordpress 2.7.n get_settings() is now deprecated: get_option() works as expected; thereafter the plugin also works as expected as well.</p>
<p>*******************************</p>
<p>There is one other problem associated with this plugin which may or may not affect you: the plugin takes various admin and user settings from the WP options table [you can call a display of these settings directly at /wp-admin/options.php] amongst the settings the plugin calls is the max image file size. </p>
<p>The plugin appears [wrongly]  to use this max file size as an upper limit for ALL file uploads of any file type and also sets a per-user[role based] quota on the number of files they can upload, and has a further &#8220;quirk&#8221; in which even administrators are limited to a quota. This is wrong.</p>
<p>If you wish to overcome these limitations then comment out lines 53, 54, 57 &amp; 58 of the plugin_function.php before uploading. Be warned though: doing this gives ALL users the rights to upload an infinite number of files of any size they choose.</p>
<p>I&#8217;m going to hack around in the classes and functions to see if I can find out why the user/file handling and quotas are broken like this in 2.7.1 &#8211; giving all users unlimited upload powers is dangerous. I suspect it&#8217;s just as simple as the get_settings/get_options replacement..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jane</title>
		<link>http://imthi.com/blog/programming/wordpress-plugin-organizer-10.php/comment-page-3#comment-29580</link>
		<dc:creator>Jane</dc:creator>
		<pubDate>Thu, 26 Mar 2009 06:46:55 +0000</pubDate>
		<guid isPermaLink="false">http://imthi.com/blog/77/index.php#comment-29580</guid>
		<description>totally awesome! thanks Peter! saved my day :)

Just in case others need help with the above, this is what you need to change:

Line 33 - 37 needs to be commented out, except for the upload directory path, just add the backslashes like so:

//	if(get_settings(&#039;upload_path&#039;)!=&#039;&#039;){
//		$upload_path = get_settings(&#039;upload_path&#039;);
//	}else{
		$upload_path = &#039;wp-content/uploads&#039;;
//	}</description>
		<content:encoded><![CDATA[<p>totally awesome! thanks Peter! saved my day <img src='http://imthi.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Just in case others need help with the above, this is what you need to change:</p>
<p>Line 33 &#8211; 37 needs to be commented out, except for the upload directory path, just add the backslashes like so:</p>
<p>//	if(get_settings(&#8216;upload_path&#8217;)!=&#8221;){<br />
//		$upload_path = get_settings(&#8216;upload_path&#8217;);<br />
//	}else{<br />
		$upload_path = &#8216;wp-content/uploads&#8217;;<br />
//	}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://imthi.com/blog/programming/wordpress-plugin-organizer-10.php/comment-page-3#comment-28197</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Sun, 22 Feb 2009 11:57:22 +0000</pubDate>
		<guid isPermaLink="false">http://imthi.com/blog/77/index.php#comment-28197</guid>
		<description>OK, an update.

First, ignore my comment above about finding your version 2.0. I read more carefully and I see that I do have the most updated version, the one suitable for WordPress 2.0+.

Second, I can offer a solution for anyone else who may need it. I didn&#039;t create it. I asked my son to take a look and even though he has never seen php before, he provided a solution in about 10 minutes. (Mind you, he is a computer engineer.) It is provided in the code below. This is a function contained within plugin_functions.php in the plugin directory. Just use a good text editor like TextPad and you&#039;ll easily find it. 

The code below contains a verbose comment that explains the problem found and solved. Read it carefully. :)  I recommend you select, copy and paste into TextPad because there is line wrapping below that will make it more difficult to read. The function starts on line 29 in the source code.

function organizer_initialize(){
	global $organizer_dirs,$organizer_files_dir,$organizer_files_path,$organizer_path,$user_login;
	global $organizer_upload_limit,$organizer_extensions,$organizer_quota,$upload_path;
	$user_setting = organizer_get_user_setting($user_login);
	//Change by Peter:
	//The ABSPATH variable is the absolute path of wordpress
	//In the latest version of wordpress the get_settings(&#039;upload_path&#039;) contains the full path of wordpress
	//This results in the $organizer_files_dir variable being incorrect.
	//Fix/hack is to force the upload path to be a constant and not to take the upload_path from get_settings function
	//if(get_settings(&#039;upload_path&#039;)!=&#039;&#039;){
	//	$upload_path = get_settings(&#039;upload_path&#039;);
	//}else{
		$upload_path = &#039;wp-content/uploads&#039;;
	//}
	if($user_setting){
		if($user_setting[$user_login][&#039;access&#039;]==0){
			$upload_path_user = $upload_path .&#039;/&#039;.sanitize_title_with_dashes($user_login);
			$upload_path_user_a = organizer_fix_windows_path(ABSPATH.$upload_path_user);
			if(!file_exists($upload_path_user_a)){
				if(is_writable(organizer_fix_windows_path(ABSPATH.$upload_path))){
					@mkdir($upload_path_user_a,0777);
					@chmod($upload_path_user_a,0777);
					$upload_path = $upload_path .&#039;/&#039;.sanitize_title_with_dashes($user_login);
				}
			}else{
				$upload_path = $upload_path .&#039;/&#039;.sanitize_title_with_dashes($user_login);
			}
		}
		$organizer_extensions=$user_setting[$user_login][&#039;extension&#039;];
		$organizer_upload_limit=$user_setting[$user_login][&#039;uploadsize&#039;];
		$organizer_quota=$user_setting[$user_login][&#039;uploadquota&#039;];
	}else{
		$organizer_extensions=get_settings(&#039;organizer_filetypes&#039;);
		$organizer_upload_limit=0;
		$organizer_quota=0;
	}
	$organizer_path =  organizer_fix_windows_path(dirname(__FILE__));
	$organizer_path = str_replace($_SERVER[&#039;DOCUMENT_ROOT&#039;],&quot;&quot;,$organizer_path);
	$organizer_path = organizer_fix_organizer_path(organizer_fix_windows_path($organizer_path));
	$organizer_files_dir = organizer_fix_windows_path(ABSPATH.$upload_path);
	$organizer_upload_dir_url_parts = parse_url(get_settings(&#039;siteurl&#039;).&#039;/&#039;.$upload_path);
	$organizer_files_path = organizer_fix_windows_path($organizer_upload_dir_url_parts[&#039;path&#039;]);
	$organizer_dirs = organizer_get_directories($organizer_files_dir);
}

It&#039;s working for me in WordPress 2.7.1. I hope the above helps.

Cheers,
Peter</description>
		<content:encoded><![CDATA[<p>OK, an update.</p>
<p>First, ignore my comment above about finding your version 2.0. I read more carefully and I see that I do have the most updated version, the one suitable for WordPress 2.0+.</p>
<p>Second, I can offer a solution for anyone else who may need it. I didn&#8217;t create it. I asked my son to take a look and even though he has never seen php before, he provided a solution in about 10 minutes. (Mind you, he is a computer engineer.) It is provided in the code below. This is a function contained within plugin_functions.php in the plugin directory. Just use a good text editor like TextPad and you&#8217;ll easily find it. </p>
<p>The code below contains a verbose comment that explains the problem found and solved. Read it carefully. <img src='http://imthi.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   I recommend you select, copy and paste into TextPad because there is line wrapping below that will make it more difficult to read. The function starts on line 29 in the source code.</p>
<p>function organizer_initialize(){<br />
	global $organizer_dirs,$organizer_files_dir,$organizer_files_path,$organizer_path,$user_login;<br />
	global $organizer_upload_limit,$organizer_extensions,$organizer_quota,$upload_path;<br />
	$user_setting = organizer_get_user_setting($user_login);<br />
	//Change by Peter:<br />
	//The ABSPATH variable is the absolute path of wordpress<br />
	//In the latest version of wordpress the get_settings(&#8216;upload_path&#8217;) contains the full path of wordpress<br />
	//This results in the $organizer_files_dir variable being incorrect.<br />
	//Fix/hack is to force the upload path to be a constant and not to take the upload_path from get_settings function<br />
	//if(get_settings(&#8216;upload_path&#8217;)!=&#8221;){<br />
	//	$upload_path = get_settings(&#8216;upload_path&#8217;);<br />
	//}else{<br />
		$upload_path = &#8216;wp-content/uploads&#8217;;<br />
	//}<br />
	if($user_setting){<br />
		if($user_setting[$user_login]['access']==0){<br />
			$upload_path_user = $upload_path .&#8217;/&#8217;.sanitize_title_with_dashes($user_login);<br />
			$upload_path_user_a = organizer_fix_windows_path(ABSPATH.$upload_path_user);<br />
			if(!file_exists($upload_path_user_a)){<br />
				if(is_writable(organizer_fix_windows_path(ABSPATH.$upload_path))){<br />
					@mkdir($upload_path_user_a,0777);<br />
					@chmod($upload_path_user_a,0777);<br />
					$upload_path = $upload_path .&#8217;/&#8217;.sanitize_title_with_dashes($user_login);<br />
				}<br />
			}else{<br />
				$upload_path = $upload_path .&#8217;/&#8217;.sanitize_title_with_dashes($user_login);<br />
			}<br />
		}<br />
		$organizer_extensions=$user_setting[$user_login]['extension'];<br />
		$organizer_upload_limit=$user_setting[$user_login]['uploadsize'];<br />
		$organizer_quota=$user_setting[$user_login]['uploadquota'];<br />
	}else{<br />
		$organizer_extensions=get_settings(&#8216;organizer_filetypes&#8217;);<br />
		$organizer_upload_limit=0;<br />
		$organizer_quota=0;<br />
	}<br />
	$organizer_path =  organizer_fix_windows_path(dirname(__FILE__));<br />
	$organizer_path = str_replace($_SERVER['DOCUMENT_ROOT'],&#8221;",$organizer_path);<br />
	$organizer_path = organizer_fix_organizer_path(organizer_fix_windows_path($organizer_path));<br />
	$organizer_files_dir = organizer_fix_windows_path(ABSPATH.$upload_path);<br />
	$organizer_upload_dir_url_parts = parse_url(get_settings(&#8217;siteurl&#8217;).&#8217;/&#8217;.$upload_path);<br />
	$organizer_files_path = organizer_fix_windows_path($organizer_upload_dir_url_parts['path']);<br />
	$organizer_dirs = organizer_get_directories($organizer_files_dir);<br />
}</p>
<p>It&#8217;s working for me in WordPress 2.7.1. I hope the above helps.</p>
<p>Cheers,<br />
Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://imthi.com/blog/programming/wordpress-plugin-organizer-10.php/comment-page-3#comment-28191</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Sun, 22 Feb 2009 07:44:35 +0000</pubDate>
		<guid isPermaLink="false">http://imthi.com/blog/77/index.php#comment-28191</guid>
		<description>Great plugin, been using it for quite a while. Thanks :)

Just updated to 2.7.1 and have the problem mentioned above by Cori &amp; Sebastian. Any fix?

Will this great plugin be made compatible with 2.7.1?

How do I actually download your version 2.0? The link seem to just give version 1.

Thanks</description>
		<content:encoded><![CDATA[<p>Great plugin, been using it for quite a while. Thanks <img src='http://imthi.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Just updated to 2.7.1 and have the problem mentioned above by Cori &amp; Sebastian. Any fix?</p>
<p>Will this great plugin be made compatible with 2.7.1?</p>
<p>How do I actually download your version 2.0? The link seem to just give version 1.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebastian</title>
		<link>http://imthi.com/blog/programming/wordpress-plugin-organizer-10.php/comment-page-3#comment-21332</link>
		<dc:creator>Sebastian</dc:creator>
		<pubDate>Wed, 17 Sep 2008 12:07:14 +0000</pubDate>
		<guid isPermaLink="false">http://imthi.com/blog/77/index.php#comment-21332</guid>
		<description>@ Cori 
I have the same problem,
do you have any solution?

It would be cool, if you can send me an e-mail. 
zabcontact3 [at] yahoo [dot] Germany

cheers,
Sebastian</description>
		<content:encoded><![CDATA[<p>@ Cori<br />
I have the same problem,<br />
do you have any solution?</p>
<p>It would be cool, if you can send me an e-mail.<br />
zabcontact3 [at] yahoo [dot] Germany</p>
<p>cheers,<br />
Sebastian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shun</title>
		<link>http://imthi.com/blog/programming/wordpress-plugin-organizer-10.php/comment-page-3#comment-20771</link>
		<dc:creator>shun</dc:creator>
		<pubDate>Tue, 26 Aug 2008 01:36:14 +0000</pubDate>
		<guid isPermaLink="false">http://imthi.com/blog/77/index.php#comment-20771</guid>
		<description>thanks for the plugin! :)</description>
		<content:encoded><![CDATA[<p>thanks for the plugin! <img src='http://imthi.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
