-
Website
http://climbtothestars.org -
Original page
http://climbtothestars.org/archives/2004/07/13/batch-categories-09/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
zstock
1 comment · 11548 points
-
Dan Dickinson
4 comments · 1 points
-
Scott Jarkoff
4 comments · 5 points
-
michelv
3 comments · 1 points
-
Thejesh GN
2 comments · 3 points
-
-
Popular Threads
Does this help?
. I've tried on my home server and my internet server but it's exactly the same on both! any ideas?
Cheers!
- pj
Reset all posts to default.
Asked plugin to display the default (this was a mistake on my part asking it to do so much work), and then recat'd the posts in several huge chunks.
No crashes, no oddness, worked wonderfully - great stuff !
Thank you !
Just got it tweaked nicely into my admin panel. Thank you. This Brings me one step closer to my migration from Blogger to WP.
Nick // SC
I was cleaning up some categories I had duplicated. I just finished batch changing all the posts. I went into the Categories screen, went to the sub-category to be removed. The categories I was working on looked something like this:
WWW
- Spamming
- - Referral
- - Comment
All three categories had posts that I moved to a different category that better fit. I had just finished removing the 'Spamming' category from posts that had them when I went to delete the Spamming category.
When I deleted the 'Spamming' category, the admin pages died. The site was still OK, but I got errors when trying to access WP's Admin pages. It was reporting a php error saying something about the fact that some headers were attempting to be loaded when index.php had already loaded them or something like that. It mentioned batch-access.php, so I deleted that file from the plugins folder and tried reloading the admin pages.
I was able to reload the pages at that point. Whew! I uploaded the batch-access.php file and re-activated the plugin. Everything still works.
The two sub-categories that were under 'Spamming' were now sub-categories of 'WWW'. So I deleted them without incident.
I am assuming that by attempting to delete a sub-category that had sub-categories of its own was not a good thing.
I'm still going to use this plugin often, I just know I'll need to move things around again. I'll just stay away from deleting the category I had just batch moved if it has sub-categories of it's own. :)
Just thought you might want to know in case you can reproduce it.
The file you really want is batch-categories.php (don't worry about the other one). Just drop it in your wp-admin directory, then point your browser to it (something like http://example.com/wp-admin/batch-categories.php).
I'm not sure if it'll work in 1.5 -- I haven't tried. Be really careful to back up your database if you do so, and let me know the result!
Hope this helps.
It works like a charm with 1.5 with no trauma, so far....
I'll make a link from the manage window, but it would be nice it you could make it like a plugin so it would automatically make a link appear. Wonderful!
When I try to use the "num=N" variable in the URL, it doesn't work. Also the "Update" button doesn't work. Any pointers?
Errors stopped as soon as I deactivated Batch Categories and refreshed the page.
Would be extremely nice if you and the Post Levels author could collaborate on a fix so both plugins will co-exist on one WP installation. Thanks!
You can try accessing batch-categories.php directly by typing the address of the file in your browser. I am really not sure if it will work or not with 1.5 -- so if you do try it, please:
a) back up your database
b) let me know how it went
I will be converting Batch Categories into a real 1.5 plugin at some point, but I just have too much other stuff to deal with now.
With everyone switching to 1.5 now (well, billions of folks at least - hee hee), this is too valuable a tool to let slide off the map. I think it should be part of the WordPress package - what a contribution!
I really need this to work. It was working up until the new CVS....not happy.
As I might have mentioned, I'm swamped right now. If nobody does it before me, I'll adapt it to 1.5 at some point. If anybody feels like doing it, just go ahead! I really don't care if it's me or somebody else who writes the 1.5 version of Batch Categories.
require_once('admin.php');
require_once('admin-header.php');
That should be all you need.
-Kaf
http://mu.wordpress.org/
Has anyone had any success?
Cheers Mark
Only thing I could hope for now is to figure out how to call the routine with just one post
ie: wp-admin/batchcategories.php?post=134
That would make it perfect - since I could easily update categories without the 'post_modified' date changing.
I have written a tutorial on the changes that need to be made to get it working in 1.5.1, and also appear on the admin menu.
I also have hosted the changed files for download. If you have any objections to it, let me know and I will remove it.
I also have a couple of ideas for improving the work flow
Check my post at http://shvelmur.com/wpress/?p=54
I had this error, too
Warning: Cannot modify header information - headers already sent by (output started [...]
The files had trailing spaces at the end, remove them and it'll work.
ciao
Grendel
http://unfilterednewsnetwork.com/North_South_Blog/
Because the wordpress blogs are installed in a subfolder, I think I am having some weird errors. What code do I need to fix to get this to work? Here are the errors:
Warning: Cannot modify header information - headers already sent by (output started at /home/unfilter/public_html/North_South_Blog/wp-content/plugins/batch-access.php:11) in /home/unfilter/public_html/North_South_Blog/wp-admin/admin.php on line 10
Warning: Cannot modify header information - headers already sent by (output started at /home/unfilter/public_html/North_South_Blog/wp-content/plugins/batch-access.php:11) in /home/unfilter/public_html/North_South_Blog/wp-admin/admin.php on line 11
Warning: Cannot modify header information - headers already sent by (output started at /home/unfilter/public_html/North_South_Blog/wp-content/plugins/batch-access.php:11) in /home/unfilter/public_html/North_South_Blog/wp-admin/admin.php on line 12
Warning: Cannot modify header information - headers already sent by (output started at /home/unfilter/public_html/North_South_Blog/wp-content/plugins/batch-access.php:11) in /home/unfilter/public_html/North_South_Blog/wp-admin/admin.php on line 13
When I click on the plugin URI per instructions, I get this:
Warning: main(North_South_Blog/wp-admin/admin-header.php): failed to open stream: No such file or directory in /home/unfilter/public_html/North_South_Blog/wp-admin/batch-categories.php on line 16
Fatal error: main(): Failed opening required 'North_South_Blog/wp-admin/admin-header.php' (include_path='.:/usr/local/lib/php') in /home/unfilter/public_html/North_South_Blog/wp-admin/batch-categories.php on line 16
This script is over 1 year old. I hope somebody can update it for Wordpress version 1.5.2 or later.
i get that error when activating the theme ...
All the same, it still doesn't work for me. batch-categories.php brings up a totally blank window, and when yo view the source, it's blank too.
I've just added a little hack to this wonderful admin panel (which unfortunatly generates lots of warning on WP 1.5.2
Add this code (copied from wp-admin/edit.php)
<pre>
get_results("SELECT DISTINCT YEAR(post_date) AS yyear, MONTH(post_date) AS mmonth FROM $wpdb->posts ORDER BY post_date DESC");
foreach ($arc_result as $arc_row) {
$arc_year = $arc_row->yyear;
$arc_month = $arc_row->mmonth;
if( isset($_GET['m']) && $arc_year . zeroise($arc_month, 2) == (int) $_GET['m'] )
$default = 'selected="selected"';
else
$default = null;
echo "';
echo $month[zeroise($arc_month, 2)] . " $arc_year";
echo "\n";
}
?>
" />
</pre>
Just after the category selector, and you'll have a month selector for your batch moves.
It works really smooth. Thanks a lot Stephanie !
Will you be adding support for Wordpress 2.0?
I would also like to encourage you to upgrade this plugin for wordpress 2.0. I've enjoyed using it.
WP2.0 support would be fantastic!
I would love it if there was 2.0 support for this
jep, i would also like to get wordpress 2.0 support for this plugin :)
ups, i just now read your other post .. please ignore my other comment.
I'm in need of a plugin like this for WP 2.0. Please update!!
Thanks
I also posted this over at as days pass by...
“All the batch changes work properly with the hack above, but the update’ feature does not work due to an incorrect ID #. I’m going to see if I can figure out why.”
I am actually having a similar problem with WordPress 1.5.2. I can make batch changes to the entire group, but pressing the “Update” button next to each post has no effect. There’s no error message or anything — it just reloads the page without making any changes.
Just for the heck of it, I tried Myles’s workaround, even though it was designed for a different version of WP… but it had no effect. Any ideas?
WP 2.0 support would be awesome...
Please, I need the compatible version with WP 2.0
We would love if this supported WP 2.0!
Thanks for your hard work
Just another voice in favor of mass category management for WP 2.0 ;)
All I am getting is a blank page when I use batch-access.php to get to the batch-category.php file. I've looked for extra spaces and such (removed them) but like I said, I'm not seeing this page.
Please help?
Ahh...great plugin. I would love to use it but I'm currently on Wordpress 2.0. Hope you're working on a compatible version!
For anyone interested, I've released a plugin that allows ajax-y mass category management under WP 2.0: http://uwmike.com/wordpress/wp-cats/</p>
cool! I'll give it a try when I get around to cleaning my categories!
Plugin looks great but unfortunately doesn't work with wordpress 2.0.3 :(
Mike - Any chance of making your plugin so you can do more then one at a time?
Very nice functionality (exactly what I was looking for)!
I've changed the plugin a bit so it would work with WP 2.0, if you want I can send you the code.
Do publish it on your blog and send a trackback here!
Please Baastian, publish the hack! Thanks :)
HELP! Support for 2.0 pleeeease!
This plugin is exactly what I have been looking for. But looks like it doesn't work in WP2. Any plans of making it work in WP2 in the near future?
Thanks!
This looks like what I need for my WordPress too — going through many articles and categorizing them is such a chore! I read talk of a WP 2.0-compatible version up there, is this out somewhere? Please advise, I'd love to know! Thanx!
I'll join the crowd in asking for a version of your plugin that works in Wrodpress 2.
Thanks!
Hi,
I got problems getting the php-script running, it just gives out the php-code (nice coloured)
Take a look:
http://the-barcelona-tourist-information.com/wp...
I tried it with the original (ext phps) and it questioned if it should be downloaded.
And when I copy the PHPS in the Plugins-Folder (original or renamed to php) it ignores it.
I think it´s a small thing I forgot, but I would be happy about support.
Thanks
David
Hi,
I have installed the plugin on a 2.0.5 WP install.
When I click the link nothing happens? I get a blank white screen which states "Done" in the browser status bar.
I uploaded the files as per the instructions. Possibly not compatible with 2.0.5?
I want to use batch-categories and in hurry therefore I save a page
of ur code as batch-categories.php and drop it in wp-admin folder then
when I try to access
"http://pindaal.com/blog/wp-admin/batch-categories.php" then code
appeared. What shud I do?
Use this updated version which works with 2.0: http://robm.me.uk/2006/12/13/batch-categories/</p>
Very nice plugin - already in use at my blog. Thank you!
Thanks for the previous works. Looking for upgrades. I'm using wordpress 2.3.
Unfortunately, after pointing my browser to the php file, I receive this error:
Warning: require_once(../wp-includes/wp-l10n.php) [function.require-once]: failed to open stream: No such file or directory in /home/thebeach/public_html/blog/wp-admin/batch-categories.php on line 12
Fatal error: require_once() [function.require]: Failed opening required '../wp-includes/wp-l10n.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/usr/local/ioncube') in /home/thebeach/public_html/blog/wp-admin/batch-categories.php on line 12
I did not notice a wp-l10n.php file in the includes folder. However, there was a l10n.php file. After renaming it and refreshing the browser, I still got the same errors.
Thanks for any help! :-)