Archive for May, 2005

getting batch categories to work with Word press 1.5.1.1

May 27th, 2005 by Shiva | Comments | Filed in Tips & Tricks

I simply love that plugin - Batch categories, like a myriad of other wordpress users. (A thousand thanks to Stephanie Booth wouldn’t suffice ;) ), but I had problems getting it to work in 1.5.1

Lots of results out there, that explain how to fix it, but none that lets a newbie get it up quickly. I know this is a repetition, but it still took my more than a day to get it fixed (mebbe it’s my dull head.. but then again)

If you are brand new to Word press, here it. As simple as it gets (or atleast I think so… do get back in case you have doubts)

1. Download and install Batch-categories (0.9) from here.
2. Installing implies, that you copy the batch-categories.php file to /wp-admin/
3. Edit
/wp-admin/batch-categories.php and do the modifications as detailed below

Change this:

$title = __(’Batch Categories’);
$parent_file = ‘edit.php’;
require_once(’admin-header.php’);

to this:

$title = __(’Batch Categories’);
$parent_file = ‘edit.php’;
require_once(’admin.php’);
require_once(’admin-header.php’);

Save batch-categories.php. Now launching it in your browser directly, will give you the required functionality (batch editing categories ie )

4. If you want to include it as part of your admin screen, then open /wp-admin/menu.php

Below this:

$submenu['edit.php'][30] = array(__(’Files’), 8, ‘templates.php’);

Add this:

$submenu['edit.php'][40] = array(__(’Batch Categories’), 1, ‘batch-categories.php’);

5. Edit /wp-admin/batch-categories.php and delete the following:

< ul id="adminmenu2?>
< li>< a href="edit.php">< /a>< /li>
< li>< a href="edit-comments.php">< ?php _e('Comments') ?>< /a>< /li>
< li>< a href="moderation.php">< ?php _e('Awaiting Moderation') ?>< /a>< /li>
< li class="last">< a href="batch-categories.php" class="current">< ?php _e('Batch Categories') ?>< /a>< /li>
< /ul>

Well, I always beleive that if you want to learn, then you need to do things the hardest way possible. Then, the next time around you can eliminate that way and go on to more efficient ways. On that note, if you don’t want to do all the editing yourself. You can find the files here. Just download them and put them in you wp-admin directory, and enjoy! Ofcourse, you better take all the backups required and don’t spam me if something is screwed up in your database.

Note: 1. Do not use left-click on the above link. Use right-click and “Save Link As..”/”Save Target As..” and rename the file to *.php instead of *.php.txt
2. The above files are valid for 1.5.1 Wordpress only. Please follow the manual procedure for later versions

Wishlist for batch categories(BC)
Since we are discussing BC here, I thought I’ll jot down a couple things that would make BC really kewl

  • Display categories already assigned
  • Instead of a combo, use a multiple listbox
  • report category names instead of IDs
  • UI for options like number of posts,etc
  • Paging - displays all posts, but on different pages.

Maybe I should get in touch with steph about this, but then before that I need start exploring php (I’m a total novice on that)

roaches kill laser printers

May 26th, 2005 by Shiva | Comments | Filed in Technology

Roaches have attacked the toner in laser printers .. or so some judges claim! however the infrastructure team claim that they have found yet another effective way of dealing with them.. the heat and the laser killing the roaches!?

Now how weird is that. Check it out here

What’s next, the spider that weaves a web that disconnects the US and Asia and disrupts outsourcing ?! ;) (touch wood)

Hurrah! to Wordpress

May 26th, 2005 by Shiva | Comments | Filed in Short updates

Hip hip hurrah! (applause ..) I finally managed to get my site up using wordpress. A truly wondeful peice of software. Thanks to all those developers and plugin-authors for their wonderful contribution to the world of blogging! I know that blogs are becoming less fashionable, but I have always been more into what is functional than fashionable.. It server my needs and that’s all I care about. I’m trying to make it look more static, like a normal website, but that is beside the point.

Anyway, I still need to get the main page going, and also transfer my photos, to this interface. I also, am not very content with the way photo organisation is handled by most of the plugins.. Looks like the start of learning another scripting language. I’m kinda occupied now, with the preparation for my CCNP switching exam.. but let us see how it goes. Meanwhile, I need to learn to blog a lot more!

btw, just in case I forget, I need to setup up a new section for the what’s happening in my life right now (books being read, etc), also a section for orkut , yahoo, etc profiles and integrate orkut into my site. (Another plugin? ) today must be some kind of a light blub day!! ;)